mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
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>
This commit is contained in:
committed by
Jakub Kicinski
parent
5160104600
commit
acb8d4ed56
@@ -373,6 +373,7 @@ struct napi_struct {
|
||||
unsigned int napi_id;
|
||||
struct hrtimer timer;
|
||||
struct task_struct *thread;
|
||||
unsigned long gro_flush_timeout;
|
||||
u32 defer_hard_irqs;
|
||||
/* control-path-only fields follow */
|
||||
struct list_head dev_list;
|
||||
@@ -2085,7 +2086,6 @@ struct net_device {
|
||||
int ifindex;
|
||||
unsigned int real_num_rx_queues;
|
||||
struct netdev_rx_queue *_rx;
|
||||
unsigned long gro_flush_timeout;
|
||||
unsigned int gro_max_size;
|
||||
unsigned int gro_ipv4_max_size;
|
||||
rx_handler_func_t __rcu *rx_handler;
|
||||
@@ -2413,6 +2413,7 @@ struct net_device {
|
||||
struct dim_irq_moder *irq_moder;
|
||||
|
||||
u64 max_pacing_offload_horizon;
|
||||
unsigned long gro_flush_timeout;
|
||||
u32 napi_defer_hard_irqs;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user