]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: __pskb_pull_tail() & pskb_carve_frag_list() drop_monitor friends
authorEric Dumazet <edumazet@google.com>
Sun, 20 Feb 2022 15:40:52 +0000 (07:40 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 23 Feb 2022 00:32:35 +0000 (16:32 -0800)
commitef527f968ae05c6717c39f49c8709a7e2c19183a
treed98aa6319a89901b551710445e26e381ffadd2da
parent5663b85462a66821fc314c5bf9ffd427d1ad71cc
net: __pskb_pull_tail() & pskb_carve_frag_list() drop_monitor friends

Whenever one of these functions pull all data from an skb in a frag_list,
use consume_skb() instead of kfree_skb() to avoid polluting drop
monitoring.

Fixes: 6fa01ccd8830 ("skbuff: Add pskb_extract() helper function")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220220154052.1308469-1-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/skbuff.c