Files
linux/include/trace/events
Dongli Zhang 736f16de75 net: tap: track dropped skb via kfree_skb_reason()
The TAP can be used as vhost-net backend. E.g., the tap_handle_frame() is
the interface to forward the skb from TAP to vhost-net/virtio-net.

However, there are many "goto drop" in the TAP driver. Therefore, the
kfree_skb_reason() is involved at each "goto drop" to help userspace
ftrace/ebpf to track the reason for the loss of packets.

The below reasons are introduced:

- SKB_DROP_REASON_SKB_CSUM
- SKB_DROP_REASON_SKB_GSO_SEG
- SKB_DROP_REASON_SKB_UCOPY_FAULT
- SKB_DROP_REASON_DEV_HDR
- SKB_DROP_REASON_FULL_RING

Cc: Joao Martins <joao.m.martins@oracle.com>
Cc: Joe Jin <joe.jin@oracle.com>
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-03-06 11:04:01 +00:00
..
2021-11-10 21:16:56 +00:00
2020-11-30 12:54:01 +00:00
2021-06-29 10:53:52 -07:00
2021-11-02 14:39:20 -05:00
2019-11-08 11:23:37 +01:00
2021-06-29 10:53:52 -07:00
2020-04-22 12:55:54 -07:00
2021-05-12 12:10:23 -07:00
2021-05-31 22:48:24 -04:00
2021-06-29 11:28:21 -07:00
2021-05-14 15:26:03 -07:00
2021-03-23 14:08:18 -04:00