diff options
author | Eric Dumazet <edumazet@google.com> | 2023-02-23 08:38:45 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-02-24 11:02:07 +0000 |
commit | ac3ad19584b26fae9ac86e4faebe790becc74491 (patch) | |
tree | d4ace3fdc1fb1a4351fd90ff37185dea2ec54f75 /drivers/gpu/drm/omapdrm/omap_irq.c | |
parent | 1862de92c81c2a74ff05819aca20b0b83192c83b (diff) |
net: fix __dev_kfree_skb_any() vs drop monitor
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>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_irq.c')
0 files changed, 0 insertions, 0 deletions