]> git.ipfire.org Git - thirdparty/linux.git/commit
net: napi: Make gro_flush_timeout per-NAPI
authorJoe Damato <jdamato@fastly.com>
Fri, 11 Oct 2024 18:44:58 +0000 (18:44 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Oct 2024 00:54:29 +0000 (17:54 -0700)
commitacb8d4ed5661d05f794ef2ce34fd11e699e9ca32
treecbe084d2694728cd0ce5c230af56381983c5a9b6
parent516010460011ae74ac3b7383cf90ed27e2711cd6
net: napi: Make gro_flush_timeout per-NAPI

Allow per-NAPI gro_flush_timeout setting.

The existing sysfs parameter is respected; writes to sysfs will write to
all NAPI structs for the device and the net_device gro_flush_timeout
field. Reads from sysfs will read from the net_device field.

The ability to set gro_flush_timeout on specific NAPI instances will be
added in a later commit, via netdev-genl.

Signed-off-by: Joe Damato <jdamato@fastly.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Link: https://patch.msgid.link/20241011184527.16393-4-jdamato@fastly.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/net_cachelines/net_device.rst
include/linux/netdevice.h
net/core/dev.c
net/core/dev.h
net/core/net-sysfs.c