diff options
author | Dongli Zhang <[email protected]> | 2022-03-04 06:55:07 -0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-03-06 11:04:01 +0000 |
commit | 4b4f052e2d89c2eb7e13ee28ba9e85f8097aef3d (patch) | |
tree | 55ae97b17bc598e205cf4908021040685f8a4a7b /drivers/fpga/fpga-bridge.c | |
parent | 45a15d89fbcd280571eba8e5ca309e14ba6afa8f (diff) |
net: tun: track dropped skb via kfree_skb_reason()
The TUN can be used as vhost-net backend. E.g, the tun_net_xmit() is the
interface to forward the skb from TUN to vhost-net/virtio-net.
However, there are many "goto drop" in the TUN 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_DEV_READY
- SKB_DROP_REASON_NOMEM
- SKB_DROP_REASON_HDR_TRUNC
- SKB_DROP_REASON_TAP_FILTER
- SKB_DROP_REASON_TAP_TXFILTER
Cc: Joao Martins <[email protected]>
Cc: Joe Jin <[email protected]>
Signed-off-by: Dongli Zhang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions