mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
net: Add napi_struct parameter irq_suspend_timeout
Add a per-NAPI IRQ suspension parameter, which can be get/set with netdev-genl. This patch doesn't change any behavior but prepares the code for other changes in the following commits which use irq_suspend_timeout as a timeout for IRQ suspension. Signed-off-by: Martin Karsten <mkarsten@uwaterloo.ca> Co-developed-by: Joe Damato <jdamato@fastly.com> Signed-off-by: Joe Damato <jdamato@fastly.com> Tested-by: Joe Damato <jdamato@fastly.com> Tested-by: Martin Karsten <mkarsten@uwaterloo.ca> Acked-by: Stanislav Fomichev <sdf@fomichev.me> Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com> Link: https://patch.msgid.link/20241109050245.191288-2-jdamato@fastly.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
f0fe51a043
commit
5dc51ec86d
@@ -348,6 +348,7 @@ struct gro_list {
|
||||
*/
|
||||
struct napi_config {
|
||||
u64 gro_flush_timeout;
|
||||
u64 irq_suspend_timeout;
|
||||
u32 defer_hard_irqs;
|
||||
unsigned int napi_id;
|
||||
};
|
||||
@@ -384,6 +385,7 @@ struct napi_struct {
|
||||
struct hrtimer timer;
|
||||
struct task_struct *thread;
|
||||
unsigned long gro_flush_timeout;
|
||||
unsigned long irq_suspend_timeout;
|
||||
u32 defer_hard_irqs;
|
||||
/* control-path-only fields follow */
|
||||
struct list_head dev_list;
|
||||
|
||||
Reference in New Issue
Block a user