Re: [PATCH v8 net-next 2/7] net: add low latency socket poll

From: Amir Vadai
Date: Mon Jun 03 2013 - 08:24:33 EST


On 03/06/2013 11:01, Eliezer Tamir wrote:
> 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.


> + .mode = 0644,
> + .proc_handler = proc_dointvec
> + },
> +#endif
> #endif /* CONFIG_NET */
> {
> .procname = "netdev_budget",

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/