lkml.org 
[lkml]   [2021]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [net-next, v2, 3/7] net: dsa: free skb->cb usage in core driver
    On Mon, Apr 26, 2021 at 05:37:58PM +0800, Yangbo Lu wrote:
    > @@ -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

    \
     
     \ /
      Last update: 2021-04-26 15:39    [W:4.149 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site