Read the whole thread, 21 messages PreviousNext Re: [net-next, v2, 3/7] net: dsa: free skb->cb usage in core driver FromRichard Cochran <richardcochran@gmail.com> Date2021-04-26 13:38:54 Also inlinux-doc, lkmlReply toYangbo Lu, 2021-04-26 On Mon, Apr 26, 2021 at 05:37:58PM +0800, Yangbo Lu wrote:quoted hunk ↗ jump to hunk@@ -624,7 +623,7 @@ static netdev_tx_t dsa_slave_xmit(struct sk_buff *skb, struct net_device *dev) dev_sw_netstats_tx_add(dev, 1, skb->len); - DSA_SKB_CB(skb)->clone = NULL; + memset(skb->cb, 0, 48); Replace hard coded 48 with sizeof() please. Thanks, Richard
Keyboard shortcuts hback out one level jnext message in thread / next series-diff position kprevious message in thread / previous series-diff position ldrill in Escclose help / fold thread tree ?toggle this help