diff options
author | Florian Westphal <fw@strlen.de> | 2019-09-26 20:37:05 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-27 20:40:19 +0200 |
commit | 174e23810cd3183dc2ca3f5166ef965a55eaaf54 (patch) | |
tree | a9ffbf41f4c75ccef3332330253b37e21a84104f /net/ipv6 | |
parent | 6b3656a60f2067738d1a423328199720806f0c44 (diff) |
sk_buff: drop all skb extensions on free and skb scrubbing
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: 95a7233c452a ("net: openvswitch: Set OvS recirc_id from tc chain index")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions