net: dropreason: propagate drop_reason to skb_release_data()
authorEric Dumazet <edumazet@google.com>
Sat, 29 Oct 2022 15:45:17 +0000 (15:45 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Nov 2022 03:14:26 +0000 (20:14 -0700)
commit511a3eda2f8d4719114ee3f2c781c37233bd171f
tree282b5a8e26191ab402639cbfb29e1686867fc9cb
parent0e84afe8ebfbb9eade3f4f6de4720887bf908e26
net: dropreason: propagate drop_reason to skb_release_data()

When an skb with a frag list is consumed, we currently
pretend all skbs in the frag list were dropped.

In order to fix this, add a @reason argument to skb_release_data()
and skb_release_all().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/skbuff.c