Skip to content
  • Florian Westphal's avatar
    sk_buff: drop all skb extensions on free and skb scrubbing · 174e2381
    Florian Westphal authored
    Now that we have a 3rd extension, add a new helper that drops the
    extension space and use it when we need to scrub an sk_buff.
    
    At this time, scrubbing clears secpath and bridge netfilter data, but
    retains the tc skb extension, after this patch all three get cleared.
    
    NAPI reuse/free assumes we can only have a secpath attached to skb, but
    it seems better to clear all extensions there as well.
    
    v2: add unlikely hint (Eric Dumazet)
    
    Fixes: 95a7233c
    
     ("net: openvswitch: Set OvS recirc_id from tc chain index")
    Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    174e2381