diff options
author | 2024-10-11 18:44:59 +0000 | |
---|---|---|
committer | 2024-10-14 17:54:29 -0700 | |
commit | 0137891e74576f77a7901718dc0ce08ca074ae74 (patch) | |
tree | b0dd697c9d006c084c4b1c558fb8dba130d16f95 /net/core/netdev-genl.c | |
parent | net: napi: Make gro_flush_timeout per-NAPI (diff) | |
download | wireguard-linux-0137891e74576f77a7901718dc0ce08ca074ae74.tar.xz wireguard-linux-0137891e74576f77a7901718dc0ce08ca074ae74.zip |
netdev-genl: Dump gro_flush_timeout
Support dumping gro_flush_timeout for a NAPI ID.
Signed-off-by: Joe Damato <jdamato@fastly.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20241011184527.16393-5-jdamato@fastly.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/netdev-genl.c')
-rw-r--r-- | net/core/netdev-genl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/core/netdev-genl.c b/net/core/netdev-genl.c index f98e5d1d0d21..ac19f2e6cfbe 100644 --- a/net/core/netdev-genl.c +++ b/net/core/netdev-genl.c @@ -161,6 +161,7 @@ static int netdev_nl_napi_fill_one(struct sk_buff *rsp, struct napi_struct *napi, const struct genl_info *info) { + unsigned long gro_flush_timeout; u32 napi_defer_hard_irqs; void *hdr; pid_t pid; @@ -195,6 +196,11 @@ netdev_nl_napi_fill_one(struct sk_buff *rsp, struct napi_struct *napi, napi_defer_hard_irqs)) goto nla_put_failure; + gro_flush_timeout = napi_get_gro_flush_timeout(napi); + if (nla_put_uint(rsp, NETDEV_A_NAPI_GRO_FLUSH_TIMEOUT, + gro_flush_timeout)) + goto nla_put_failure; + genlmsg_end(rsp, hdr); return 0; |