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 /Documentation/sysctl | |
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 'Documentation/sysctl')
-rw-r--r-- | Documentation/sysctl/net.txt | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Documentation/sysctl/net.txt b/Documentation/sysctl/net.txt index d69e14c9002c..1c15043aaee4 100644 --- a/Documentation/sysctl/net.txt +++ b/Documentation/sysctl/net.txt | |||
@@ -50,26 +50,27 @@ The maximum number of packets that kernel can handle on a NAPI interrupt, | |||
50 | it's a Per-CPU variable. | 50 | it's a Per-CPU variable. |
51 | Default: 64 | 51 | Default: 64 |
52 | 52 | ||
53 | low_latency_read | 53 | busy_read |
54 | ---------------- | 54 | ---------------- |
55 | Low latency busy poll timeout for socket reads. (needs CONFIG_NET_LL_RX_POLL) | 55 | Low latency busy poll timeout for socket reads. (needs CONFIG_NET_LL_RX_POLL) |
56 | Approximate time in us to busy loop waiting for packets on the device queue. | 56 | Approximate time in us to busy loop waiting for packets on the device queue. |
57 | This sets the default value of the SO_LL socket option. | 57 | This sets the default value of the SO_BUSY_POLL socket option. |
58 | Can be set or overridden per socket by setting socket option SO_LL, which is | 58 | Can be set or overridden per socket by setting socket option SO_BUSY_POLL, |
59 | the preferred method of enabling. | 59 | which is the preferred method of enabling. If you need to enable the feature |
60 | If you need to enable the feature globally via sysctl, a value of 50 is recommended. | 60 | globally via sysctl, a value of 50 is recommended. |
61 | Will increase power usage. | 61 | Will increase power usage. |
62 | Default: 0 (off) | 62 | Default: 0 (off) |
63 | 63 | ||
64 | low_latency_poll | 64 | busy_poll |
65 | ---------------- | 65 | ---------------- |
66 | Low latency busy poll timeout for poll and select. (needs CONFIG_NET_LL_RX_POLL) | 66 | Low latency busy poll timeout for poll and select. (needs CONFIG_NET_LL_RX_POLL) |
67 | Approximate time in us to busy loop waiting for events. | 67 | Approximate time in us to busy loop waiting for events. |
68 | Recommended value depends on the number of sockets you poll on. | 68 | Recommended value depends on the number of sockets you poll on. |
69 | For several sockets 50, for several hundreds 100. | 69 | For several sockets 50, for several hundreds 100. |
70 | For more than that you probably want to use epoll. | 70 | For more than that you probably want to use epoll. |
71 | Note that only sockets with SO_LL set will be busy polled, so you want to either | 71 | Note that only sockets with SO_BUSY_POLL set will be busy polled, |
72 | selectively set SO_LL on those sockets or set sysctl.net.low_latency_read globally. | 72 | so you want to either selectively set SO_BUSY_POLL on those sockets or set |
73 | sysctl.net.busy_read globally. | ||
73 | Will increase power usage. | 74 | Will increase power usage. |
74 | Default: 0 (off) | 75 | Default: 0 (off) |
75 | 76 | ||