diff options
| author | Alexei Starovoitov <ast@kernel.org> | 2020-07-14 01:32:56 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2020-07-14 01:33:48 +0300 |
| commit | 7c4bf5fe55ccd106e9c87553e95ea46dcc04c854 (patch) | |
| tree | e623617e4cb293fd0a0c98047493c580de65f9a6 /include/net | |
| parent | 24a38b7c0c2c17f7b86c29f82beb7f2779704ca3 (diff) | |
| parent | 0d80cb4612aa32dc0faa17fa3ab6f96f33e2b4a7 (diff) | |
| download | linux-7c4bf5fe55ccd106e9c87553e95ea46dcc04c854.tar.xz | |
Merge branch 'af_xdp-stats'
Ciara Loftus says:
====================
This series introduces new statistics for af_xdp:
1. drops due to rx ring being full
2. drops due to fill ring being empty
3. failures pulling an item from the tx ring
These statistics should assist users debugging and troubleshooting
peformance issues and packet drops.
The statistics are made available though the getsockopt and xsk_diag
interfaces, and the ability to dump these extended statistics is made
available in the xdpsock application via the --extra-stats or -x flag.
A separate patch which will add ss/iproute2 support will follow.
====================
Acked-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/xdp_sock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/xdp_sock.h b/include/net/xdp_sock.h index 96bfc5f5f24e..c9d87cc40c11 100644 --- a/include/net/xdp_sock.h +++ b/include/net/xdp_sock.h @@ -69,7 +69,11 @@ struct xdp_sock { spinlock_t tx_completion_lock; /* Protects generic receive. */ spinlock_t rx_lock; + + /* Statistics */ u64 rx_dropped; + u64 rx_queue_full; + struct list_head map_list; /* Protects map_list */ spinlock_t map_list_lock; |
