diff options
author | 2022-10-29 15:45:16 +0000 | |
---|---|---|
committer | 2022-10-31 20:14:26 -0700 | |
commit | 0e84afe8ebfbb9eade3f4f6de4720887bf908e26 (patch) | |
tree | eb5dc52d4d2f25a53ab9de06b33e9729d871849a /net/netfilter/nft_objref.c | |
parent | net: systemport: Add support for RDMA overflow statistic counter (diff) | |
download | wireguard-linux-0e84afe8ebfbb9eade3f4f6de4720887bf908e26.tar.xz wireguard-linux-0e84afe8ebfbb9eade3f4f6de4720887bf908e26.zip |
net: dropreason: add SKB_CONSUMED reason
This will allow to simply use in the future:
kfree_skb_reason(skb, reason);
Instead of repeating sequences like:
if (dropped)
kfree_skb_reason(skb, reason);
else
consume_skb(skb);
For instance, following patch in the series is adding
@reason to skb_release_data() and skb_release_all(),
so that we can propagate a meaningful @reason whenever
consume_skb()/kfree_skb() have to take care of a potential frag_list.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/netfilter/nft_objref.c')
0 files changed, 0 insertions, 0 deletions