diff options
author | Eric Dumazet <edumazet@google.com> | 2023-02-23 11:38:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-11 18:40:12 +0300 |
commit | 82a0c1fe1fe0a0b9957e8f6a0b99884f64ba0ba4 (patch) | |
tree | 78272d16a982dc25b9fd688d88291a4d29dc53e9 /net/9p | |
parent | 8ee401f89cdb10f39098c0656d695b2bc4052100 (diff) | |
download | linux-82a0c1fe1fe0a0b9957e8f6a0b99884f64ba0ba4.tar.xz |
net: fix __dev_kfree_skb_any() vs drop monitor
[ Upstream commit ac3ad19584b26fae9ac86e4faebe790becc74491 ]
dev_kfree_skb() is aliased to consume_skb().
When a driver is dropping a packet by calling dev_kfree_skb_any()
we should propagate the drop reason instead of pretending
the packet was consumed.
Note: Now we have enum skb_drop_reason we could remove
enum skb_free_reason (for linux-6.4)
v2: added an unlikely(), suggested by Yunsheng Lin.
Fixes: e6247027e517 ("net: introduce dev_consume_skb_any()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Yunsheng Lin <linyunsheng@huawei.com>
Reviewed-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/9p')
0 files changed, 0 insertions, 0 deletions