Re: [PATCH v8 net-next 2/7] net: add low latency socket poll
flat view
From: Amir Vadai <hidden>
Date: 2013-06-03 12:24:30
Also in:
lkml
On 03/06/2013 11:01, Eliezer Tamir wrote:
quoted hunk ↗ jump to hunk
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c index 741db5fc..ae98c95 100644 --- a/net/core/sysctl_net_core.c +++ b/net/core/sysctl_net_core.c@@ -19,6 +19,7 @@ #include <net/ip.h> #include <net/sock.h> #include <net/net_ratelimit.h> +#include <net/ll_poll.h> static int one = 1;@@ -284,6 +285,15 @@ static struct ctl_table net_core_table[] = { .proc_handler = flow_limit_table_len_sysctl }, #endif /* CONFIG_NET_FLOW_LIMIT */ +#ifdef CONFIG_NET_LL_RX_POLL + { + .procname = "low_latency_poll", + .data = &sysctl_net_ll_poll, + .maxlen = sizeof(unsigned long),
One more thing I just noticed: should be 'sizeof(int)'. Because proc_dointvec is expecting an int, sizeof(unsigned long) will produce an array of two ints.
quoted hunk ↗ jump to hunk
+ .mode = 0644, + .proc_handler = proc_dointvec + }, +#endif #endif /* CONFIG_NET */ { .procname = "netdev_budget",
------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ E1000-devel mailing list E1000-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired