diff options
author | Menglong Dong <imagedong@tencent.com> | 2022-03-04 09:00:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-04 15:17:11 +0300 |
commit | 7faef0547f4c29031a68d058918b031a8e520d49 (patch) | |
tree | ccd4d6b5a1643c62514cf24f6423433c713857e7 /include/trace/events/skb.h | |
parent | 215b0f1963d4e34fccac6992b3debe26f78a6eb8 (diff) | |
download | linux-7faef0547f4c29031a68d058918b031a8e520d49.tar.xz |
net: dev: add skb drop reasons to __dev_xmit_skb()
Add reasons for skb drops to __dev_xmit_skb() by replacing
kfree_skb_list() with kfree_skb_list_reason(). The drop reason of
SKB_DROP_REASON_QDISC_DROP is introduced for qdisc enqueue fails.
Signed-off-by: Menglong Dong <imagedong@tencent.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/trace/events/skb.h')
-rw-r--r-- | include/trace/events/skb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/trace/events/skb.h b/include/trace/events/skb.h index 53755e8191a1..dbf3e2e3c1b4 100644 --- a/include/trace/events/skb.h +++ b/include/trace/events/skb.h @@ -46,6 +46,7 @@ EM(SKB_DROP_REASON_NEIGH_QUEUEFULL, NEIGH_QUEUEFULL) \ EM(SKB_DROP_REASON_NEIGH_DEAD, NEIGH_DEAD) \ EM(SKB_DROP_REASON_TC_EGRESS, TC_EGRESS) \ + EM(SKB_DROP_REASON_QDISC_DROP, QDISC_DROP) \ EMe(SKB_DROP_REASON_MAX, MAX) #undef EM |