summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/tehuti/tn40.h
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2024-07-06 08:43:24 +0200
committerPaolo Abeni <pabeni@redhat.com>2024-07-09 13:26:57 +0200
commit6c2a4c2f70e5b6c9c57d6d8adc893c55ba318613 (patch)
tree1a1094fd3bf42005c7c6c054be5392738656eb78 /drivers/net/ethernet/tehuti/tn40.h
parentsctp: Fix typos and improve comments (diff)
downloadlinux-6c2a4c2f70e5b6c9c57d6d8adc893c55ba318613.tar.xz
linux-6c2a4c2f70e5b6c9c57d6d8adc893c55ba318613.zip
net: tn40xx: add per queue netdev-genl stats support
Add support for the netdev-genl per queue stats API. ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/netdev.yaml \ --dump qstats-get --json '{"scope":"queue"}' [{'ifindex': 4, 'queue-id': 0, 'queue-type': 'rx', 'rx-alloc-fail': 0, 'rx-bytes': 266613, 'rx-packets': 3325}, {'ifindex': 4, 'queue-id': 0, 'queue-type': 'tx', 'tx-bytes': 142823367, 'tx-packets': 2387}] Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Link: https://patch.msgid.link/20240706064324.137574-1-fujita.tomonori@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/tehuti/tn40.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/tehuti/tn40.h b/drivers/net/ethernet/tehuti/tn40.h
index 10368264f7b7..490781fe5120 100644
--- a/drivers/net/ethernet/tehuti/tn40.h
+++ b/drivers/net/ethernet/tehuti/tn40.h
@@ -123,6 +123,7 @@ struct tn40_priv {
int stats_flag;
struct rtnl_link_stats64 stats;
+ u64 alloc_fail;
struct u64_stats_sync syncp;
u8 txd_size;