Re: [PATCH net-next v4 1/6] net: move ARFS rmap management to core

From
Simon Horman <horms@kernel.org>
Date
2025-01-10 11:59:29
Also in
intel-wired-lan
Reply to
Ahmed Zaki, 2025-01-09
On Thu, Jan 09, 2025 at 04:31:02PM -0700, Ahmed Zaki wrote:
Add a new netdev flag "rx_cpu_rmap_auto". Drivers supporting ARFS should
set the flag via netif_enable_cpu_rmap() and core will allocate and manage
the ARFS rmap. Freeing the rmap is also done by core when the netdev is
freed.

Signed-off-by: Ahmed Zaki <redacted>
...
quoted hunk ↗ jump to hunk
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 1812564b5204..acf20191e114 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2398,6 +2398,9 @@ struct net_device {
 	struct lock_class_key	*qdisc_tx_busylock;
 	bool			proto_down;
 	bool			threaded;
+#ifdef CONFIG_RFS_ACCEL
+	bool			rx_cpu_rmap_auto;
+#endif
nit: rx_cpu_rmap_auto should also be added to the Kernel doc for
     struct net_device.
 
 	/* priv_flags_slow, ungrouped to save space */
 	unsigned long		see_all_hwtstamp_requests:1;
...
Thread (13 messages) 13 messages, 3 authors, last reply 2025-01-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help