diff options
author | Eliezer Tamir <eliezer.tamir@linux.intel.com> | 2013-07-10 10:13:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-10 20:08:27 -0400 |
commit | 64b0dc517ea1b35d02565a779e6cb77ae9045685 (patch) | |
tree | f4701c62374a44db9f3be2d46f9420a328cd49ee /net | |
parent | 8b80cda536ea9bceec0364e897868a30ee13b992 (diff) |
net: rename busy poll socket op and globals
Rename LL_SO to BUSY_POLL_SO
Rename sysctl_net_ll_{read,poll} to sysctl_busy_{read,poll}
Fix up users of these variables.
Fix documentation for sysctl.
a patch for the socket.7 man page will follow separately,
because of limitations of my mail setup.
Signed-off-by: Eliezer Tamir <eliezer.tamir@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/sock.c | 6 | ||||
-rw-r--r-- | net/core/sysctl_net_core.c | 8 | ||||
-rw-r--r-- | net/socket.c | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 9bfe83f4d670..548d716c5f62 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -901,7 +901,7 @@ set_rcvbuf: | |||
901 | break; | 901 | break; |
902 | 902 | ||
903 | #ifdef CONFIG_NET_LL_RX_POLL | 903 | #ifdef CONFIG_NET_LL_RX_POLL |
904 | case SO_LL: | 904 | case SO_BUSY_POLL: |
905 | /* allow unprivileged users to decrease the value */ | 905 | /* allow unprivileged users to decrease the value */ |
906 | if ((val > sk->sk_ll_usec) && !capable(CAP_NET_ADMIN)) | 906 | if ((val > sk->sk_ll_usec) && !capable(CAP_NET_ADMIN)) |
907 | ret = -EPERM; | 907 | ret = -EPERM; |
@@ -1171,7 +1171,7 @@ int sock_getsockopt(struct socket *sock, int level, int optname, | |||
1171 | break; | 1171 | break; |
1172 | 1172 | ||
1173 | #ifdef CONFIG_NET_LL_RX_POLL | 1173 | #ifdef CONFIG_NET_LL_RX_POLL |
1174 | case SO_LL: | 1174 | case SO_BUSY_POLL: |
1175 | v.val = sk->sk_ll_usec; | 1175 | v.val = sk->sk_ll_usec; |
1176 | break; | 1176 | break; |
1177 | #endif | 1177 | #endif |
@@ -2294,7 +2294,7 @@ void sock_init_data(struct socket *sock, struct sock *sk) | |||
2294 | 2294 | ||
2295 | #ifdef CONFIG_NET_LL_RX_POLL | 2295 | #ifdef CONFIG_NET_LL_RX_POLL |
2296 | sk->sk_napi_id = 0; | 2296 | sk->sk_napi_id = 0; |
2297 | sk->sk_ll_usec = sysctl_net_ll_read; | 2297 | sk->sk_ll_usec = sysctl_net_busy_read; |
2298 | #endif | 2298 | #endif |
2299 | 2299 | ||
2300 | /* | 2300 | /* |
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c index 1a298cb3daee..660968616637 100644 --- a/net/core/sysctl_net_core.c +++ b/net/core/sysctl_net_core.c | |||
@@ -300,15 +300,15 @@ static struct ctl_table net_core_table[] = { | |||
300 | #endif /* CONFIG_NET_FLOW_LIMIT */ | 300 | #endif /* CONFIG_NET_FLOW_LIMIT */ |
301 | #ifdef CONFIG_NET_LL_RX_POLL | 301 | #ifdef CONFIG_NET_LL_RX_POLL |
302 | { | 302 | { |
303 | .procname = "low_latency_poll", | 303 | .procname = "busy_poll", |
304 | .data = &sysctl_net_ll_poll, | 304 | .data = &sysctl_net_busy_poll, |
305 | .maxlen = sizeof(unsigned int), | 305 | .maxlen = sizeof(unsigned int), |
306 | .mode = 0644, | 306 | .mode = 0644, |
307 | .proc_handler = proc_dointvec | 307 | .proc_handler = proc_dointvec |
308 | }, | 308 | }, |
309 | { | 309 | { |
310 | .procname = "low_latency_read", | 310 | .procname = "busy_read", |
311 | .data = &sysctl_net_ll_read, | 311 | .data = &sysctl_net_busy_read, |
312 | .maxlen = sizeof(unsigned int), | 312 | .maxlen = sizeof(unsigned int), |
313 | .mode = 0644, | 313 | .mode = 0644, |
314 | .proc_handler = proc_dointvec | 314 | .proc_handler = proc_dointvec |
diff --git a/net/socket.c b/net/socket.c index 6a3e9a3f50ad..829b460acb87 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -107,8 +107,8 @@ | |||
107 | #include <net/busy_poll.h> | 107 | #include <net/busy_poll.h> |
108 | 108 | ||
109 | #ifdef CONFIG_NET_LL_RX_POLL | 109 | #ifdef CONFIG_NET_LL_RX_POLL |
110 | unsigned int sysctl_net_ll_read __read_mostly; | 110 | unsigned int sysctl_net_busy_read __read_mostly; |
111 | unsigned int sysctl_net_ll_poll __read_mostly; | 111 | unsigned int sysctl_net_busy_poll __read_mostly; |
112 | #endif | 112 | #endif |
113 | 113 | ||
114 | static int sock_no_open(struct inode *irrelevant, struct file *dontcare); | 114 | static int sock_no_open(struct inode *irrelevant, struct file *dontcare); |