All of lore.kernel.org
 help / color / mirror / Atom feed
* RFC [PATCH net-2.6 4/6] net: softRSS sysctls
@ 2008-03-05 20:51 Tom Herbert
  0 siblings, 0 replies; only message in thread
From: Tom Herbert @ 2008-03-05 20:51 UTC (permalink / raw)
  To: davem, netdev

This patch adds sysctls for enabling/disabling software RSS.

Signed-off-by: Tom Herbert <therbert@google.com>

---

diff -uprN -X /tmp/donts/rss_2 net-2.6/include/linux/sysctl.h net-2.6.patch/include/linux/sysctl.h
--- net-2.6/include/linux/sysctl.h	2008-03-05 09:03:23.482838000 -0800
+++ net-2.6.patch/include/linux/sysctl.h	2008-03-05 09:25:33.573767000 -0800
@@ -285,6 +285,8 @@ enum
 	NET_CORE_AEVENT_ETIME=20,
 	NET_CORE_AEVENT_RSEQTH=21,
 	NET_CORE_WARNINGS=22,
+	NET_CORE_NAPI_RSS=23,
+	NET_CORE_SOFT_RSS=24,
 };
 
 /* /proc/sys/net/ethernet */
diff -uprN -X /tmp/donts/rss_2 net-2.6/net/core/sysctl_net_core.c net-2.6.patch/net/core/sysctl_net_core.c
--- net-2.6/net/core/sysctl_net_core.c	2008-03-05 09:03:28.270548000 -0800
+++ net-2.6.patch/net/core/sysctl_net_core.c	2008-03-05 09:25:33.644759000 -0800
@@ -148,6 +148,26 @@ static struct ctl_table net_core_table[]
 		.mode		= 0644,
 		.proc_handler	= &proc_dointvec
 	},
+#ifdef CONFIG_NET_NAPI_RSS
+	{
+		.ctl_name	= NET_CORE_NAPI_RSS,
+		.procname	= "napi_rss",
+		.data		= &sysctl_napi_rss,
+		.maxlen		= sizeof(int),
+		.mode		= 0644,
+		.proc_handler	= &proc_dointvec
+	},
+#endif /* CONFIG_NET_NAPI_RSS */
+#ifdef CONFIG_NET_SOFTRSS
+	{
+		.ctl_name	= NET_CORE_SOFT_RSS,
+		.procname	= "soft_rss",
+		.data		= &sysctl_soft_rss,
+		.maxlen		= sizeof(int),
+		.mode		= 0644,
+		.proc_handler	= &proc_dointvec
+	},
+#endif /* CONFIG_NET_SOFTRSS */
 	{ .ctl_name = 0 }
 };
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-05 20:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-05 20:51 RFC [PATCH net-2.6 4/6] net: softRSS sysctls Tom Herbert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.