Kuniyuki Iwashima
0f681b0ecd
net: ena: Support persistent per-NAPI config.
Let's pass the queue index to netif_napi_add_config() to preserve
per-NAPI config.
Test:
Set 100 to defer-hard-irqs (default is 0) and check the value after
link down & up.
$ cat /sys/class/net/enp39s0/napi_defer_hard_irqs
0
$ ./tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/netdev.yaml \
--dump napi-get --json='{"ifindex": 2}'
[{'defer-hard-irqs': 0,
'gro-flush-timeout': 0,
'id': 65,
'ifindex': 2,
'irq': 29,
'irq-suspend-timeout': 0}]
$ sudo ./tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/netdev.yaml \
--do napi-set --json='{"id": 65, "defer-hard-irqs": 100}'
$ sudo ip link set enp39s0 down && sudo ip link set enp39s0 up
Without patch:
$ ./tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/netdev.yaml \
--dump napi-get --json='{"ifindex": 2}'
[{'defer-hard-irqs': 0, <------------------- Reset to 0
'gro-flush-timeout': 0,
'id': 66, <------------------------------- New ID
'ifindex': 2,
'irq': 29,
'irq-suspend-timeout': 0}]
With patch:
$ ./tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/netdev.yaml \
--dump napi-get --json='{"ifindex": 2}'
[{'defer-hard-irqs': 100, <--------------+-- Preserved
'gro-flush-timeout': 0, |
'id': 65, <----------------------------'
'ifindex': 2,
'irq': 29,
'irq-suspend-timeout': 0}]
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Reviewed-by: Arthur Kiyanovski <akiyano@amazon.com>
Link: https://patch.msgid.link/20250407164802.25184-1-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-04-08 12:34:32 -07:00
..
2025-04-01 11:02:03 -07:00
2025-04-02 20:27:18 -07:00
2025-03-11 14:05:43 +01:00
2025-03-10 07:31:51 +01:00
2025-04-01 10:06:52 -07:00
2025-03-10 18:03:02 +02:00
2025-04-02 20:04:43 -07:00
2025-04-03 15:48:58 -07:00
2025-03-25 15:22:17 -04:00
2025-04-04 09:06:32 -07:00
2025-03-20 09:11:09 +01:00
2025-04-01 11:26:08 -07:00
2025-04-03 12:21:44 -07:00
2025-03-29 12:47:09 -07:00
2025-04-02 18:03:34 -07:00
2025-04-02 15:22:22 -07:00
2025-03-25 20:40:51 -07:00
2025-03-29 10:01:55 -07:00
2025-04-02 20:04:43 -07:00
2025-03-17 22:06:41 -07:00
2025-04-01 12:57:14 -07:00
2025-03-20 21:38:01 +01:00
2025-03-25 14:00:26 -07:00
2025-03-16 09:32:30 +09:00
2025-04-04 07:05:33 -07:00
2025-03-21 20:57:55 -03:00
2025-03-26 21:48:21 -07:00
2025-04-04 07:12:26 -07:00
2025-03-26 13:56:38 +01:00
2025-04-01 09:29:18 -07:00
2025-03-26 09:54:40 -07:00
2025-03-21 17:12:04 -05:00
2025-04-01 11:26:08 -07:00
2025-04-01 14:21:02 -07:00
2025-03-31 11:44:00 +02:00
2025-03-25 15:00:18 -07:00
2025-04-01 11:26:08 -07:00
2025-04-03 21:12:48 -07:00
2025-04-04 09:06:32 -07:00
2025-04-01 18:03:46 -07:00
2025-03-28 19:36:53 -07:00
2025-03-29 14:42:59 -07:00
2025-03-29 18:25:34 -07:00
2025-04-02 21:27:59 -07:00
2025-04-02 10:30:10 -07:00
2025-03-27 09:05:55 -07:00
2025-03-26 18:08:55 -07:00
2025-03-26 19:57:34 -07:00
2025-03-29 14:33:13 -07:00
2025-04-02 12:35:49 -07:00
2025-03-27 09:05:55 -07:00
2025-03-26 18:08:55 -07:00
2025-04-08 12:34:32 -07:00
2025-03-28 11:22:54 -07:00
2025-04-02 20:27:18 -07:00
2025-04-03 16:04:38 -07:00
2025-03-19 19:17:58 +01:00
2025-03-29 11:23:16 -07:00
2025-03-09 22:27:54 +01:00
2025-04-01 18:03:46 -07:00
2025-03-28 19:36:53 -07:00
2025-04-01 12:47:11 -07:00
2025-03-29 16:59:16 -07:00
2025-04-04 09:00:49 -07:00
2025-03-17 11:12:01 +01:00
2025-04-02 18:09:17 -07:00
2025-04-01 14:21:02 -07:00
2025-03-25 15:00:18 -07:00
2025-04-01 11:26:08 -07:00
2025-03-20 08:50:03 +01:00
2025-03-29 16:59:16 -07:00
2025-03-10 17:37:25 +01:00
2025-04-02 10:30:10 -07:00
2025-03-22 08:42:39 -05:00
2025-03-29 17:18:50 -07:00
2025-04-03 15:31:14 -07:00
2025-04-01 09:29:18 -07:00
2025-03-26 19:57:34 -07:00
2025-03-11 10:41:18 +01:00
2025-04-04 09:06:32 -07:00
2025-04-01 12:43:13 -07:00
2025-04-04 09:09:34 -07:00
2025-04-02 18:17:33 -07:00
2025-03-26 19:57:34 -07:00
2025-04-01 16:51:44 -07:00
2025-04-02 18:23:31 -07:00
2025-04-02 18:17:33 -07:00
2025-03-28 11:22:54 -07:00
2025-04-02 18:23:31 -07:00
2025-04-01 19:35:19 -07:00
2025-04-01 18:52:54 -07:00
2025-04-01 09:29:18 -07:00
2025-03-19 11:03:06 +01:00
2025-04-01 18:52:54 -07:00
2025-04-01 16:33:36 -07:00
2025-04-01 09:29:18 -07:00