net: add skb_queue_purge_reason and __skb_queue_purge_reason
authorEric Dumazet <edumazet@google.com>
Fri, 18 Aug 2023 09:40:39 +0000 (09:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Aug 2023 14:30:15 +0000 (15:30 +0100)
commit4025d3e73abde4f65f4b04d4b1d8449b00e31473
tree5df10d7dc158df683039b2cf1b1097a3fc2246ee
parent5b0a1414e0b0de1efbeeb14083b9a2f2ddef85a0
net: add skb_queue_purge_reason and __skb_queue_purge_reason

skb_queue_purge() and __skb_queue_purge() become wrappers
around the new generic functions.

New SKB_DROP_REASON_QUEUE_PURGE drop reason is added,
but users can start adding more specific reasons.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/net/dropreason-core.h
net/core/skbuff.c