]> git.baikalelectronics.ru Git - kernel.git/commit
net: dev: use kfree_skb_reason() for enqueue_to_backlog()
authorMenglong Dong <imagedong@tencent.com>
Fri, 4 Mar 2022 06:00:43 +0000 (14:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Mar 2022 12:17:11 +0000 (12:17 +0000)
commit7f423aa4b491a4946856cd12abefeac77c9b9db7
tree3cd93d933de81e188ba8fd4589011b70ad88f891
parent376800c57ad251a1a136f681cec8b2c75b866e98
net: dev: use kfree_skb_reason() for enqueue_to_backlog()

Replace kfree_skb() used in enqueue_to_backlog() with
kfree_skb_reason(). The skb rop reason SKB_DROP_REASON_CPU_BACKLOG is
introduced for the case of failing to enqueue the skb to the per CPU
backlog queue. The further reason can be backlog queue full or RPS
flow limition, and I think we needn't to make further distinctions.

Signed-off-by: Menglong Dong <imagedong@tencent.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/trace/events/skb.h
net/core/dev.c