netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: therbert@google.com (Tom Herbert)
To: davem@davemloft.net, netdev@vger.kernel.org
Subject: RFC [PATCH net-2.6 4/6] net: softRSS sysctls
Date: Wed,  5 Mar 2008 12:51:16 -0800 (PST)	[thread overview]
Message-ID: <20080305205116.5FDAB412791@localhost> (raw)

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 }
 };
 

                 reply	other threads:[~2008-03-05 20:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080305205116.5FDAB412791@localhost \
    --to=therbert@google.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).