Home
last modified time | relevance | path

Searched hist:"0 e84afe8" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/net/
H A Ddropreason.h0e84afe8 Sat Oct 29 10:45:16 CDT 2022 Eric Dumazet <edumazet@google.com> 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>
/openbmc/linux/net/core/
H A Dskbuff.c0e84afe8 Sat Oct 29 10:45:16 CDT 2022 Eric Dumazet <edumazet@google.com> 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>