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 | |
| 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>
| -rw-r--r-- | Documentation/sysctl/net.txt | 17 | ||||
| -rw-r--r-- | arch/alpha/include/uapi/asm/socket.h | 2 | ||||
| -rw-r--r-- | arch/avr32/include/uapi/asm/socket.h | 2 | ||||
| -rw-r--r-- | arch/cris/include/uapi/asm/socket.h | 2 | ||||
| -rw-r--r-- | arch/frv/include/uapi/asm/socket.h | 2 | ||||
| -rw-r--r-- | arch/h8300/include/uapi/asm/socket.h | 2 | ||||
| -rw-r--r-- | arch/ia64/include/uapi/asm/socket.h | 2 | ||||
| -rw-r--r-- | arch/m32r/include/uapi/asm/socket.h | 2 | ||||
| -rw-r--r-- | arch/mips/include/uapi/asm/socket.h | 2 | ||||
| -rw-r--r-- | arch/mn10300/include/uapi/asm/socket.h | 2 | ||||
| -rw-r--r-- | arch/parisc/include/uapi/asm/socket.h | 2 | ||||
| -rw-r--r-- | arch/powerpc/include/uapi/asm/socket.h | 2 | ||||
| -rw-r--r-- | arch/s390/include/uapi/asm/socket.h | 2 | ||||
| -rw-r--r-- | arch/sparc/include/uapi/asm/socket.h | 2 | ||||
| -rw-r--r-- | arch/xtensa/include/uapi/asm/socket.h | 2 | ||||
| -rw-r--r-- | include/net/busy_poll.h | 8 | ||||
| -rw-r--r-- | include/uapi/asm-generic/socket.h | 2 | ||||
| -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 |
20 files changed, 37 insertions, 36 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 | ||
diff --git a/arch/alpha/include/uapi/asm/socket.h b/arch/alpha/include/uapi/asm/socket.h index 4885825e498d..467de010ea7e 100644 --- a/arch/alpha/include/uapi/asm/socket.h +++ b/arch/alpha/include/uapi/asm/socket.h | |||
| @@ -81,6 +81,6 @@ | |||
| 81 | 81 | ||
| 82 | #define SO_SELECT_ERR_QUEUE 45 | 82 | #define SO_SELECT_ERR_QUEUE 45 |
| 83 | 83 | ||
| 84 | #define SO_LL 46 | 84 | #define SO_BUSY_POLL 46 |
| 85 | 85 | ||
| 86 | #endif /* _UAPI_ASM_SOCKET_H */ | 86 | #endif /* _UAPI_ASM_SOCKET_H */ |
diff --git a/arch/avr32/include/uapi/asm/socket.h b/arch/avr32/include/uapi/asm/socket.h index 79b61798ebf8..11c4259c62fb 100644 --- a/arch/avr32/include/uapi/asm/socket.h +++ b/arch/avr32/include/uapi/asm/socket.h | |||
| @@ -74,6 +74,6 @@ | |||
| 74 | 74 | ||
| 75 | #define SO_SELECT_ERR_QUEUE 45 | 75 | #define SO_SELECT_ERR_QUEUE 45 |
| 76 | 76 | ||
| 77 | #define SO_LL 46 | 77 | #define SO_BUSY_POLL 46 |
| 78 | 78 | ||
| 79 | #endif /* __ASM_AVR32_SOCKET_H */ | 79 | #endif /* __ASM_AVR32_SOCKET_H */ |
diff --git a/arch/cris/include/uapi/asm/socket.h b/arch/cris/include/uapi/asm/socket.h index 47b1ec55092d..eb723e51554e 100644 --- a/arch/cris/include/uapi/asm/socket.h +++ b/arch/cris/include/uapi/asm/socket.h | |||
| @@ -76,7 +76,7 @@ | |||
| 76 | 76 | ||
| 77 | #define SO_SELECT_ERR_QUEUE 45 | 77 | #define SO_SELECT_ERR_QUEUE 45 |
| 78 | 78 | ||
| 79 | #define SO_LL 46 | 79 | #define SO_BUSY_POLL 46 |
| 80 | 80 | ||
| 81 | #endif /* _ASM_SOCKET_H */ | 81 | #endif /* _ASM_SOCKET_H */ |
| 82 | 82 | ||
diff --git a/arch/frv/include/uapi/asm/socket.h b/arch/frv/include/uapi/asm/socket.h index dbc08520f22c..f0cb1c341163 100644 --- a/arch/frv/include/uapi/asm/socket.h +++ b/arch/frv/include/uapi/asm/socket.h | |||
| @@ -74,7 +74,7 @@ | |||
| 74 | 74 | ||
| 75 | #define SO_SELECT_ERR_QUEUE 45 | 75 | #define SO_SELECT_ERR_QUEUE 45 |
| 76 | 76 | ||
| 77 | #define SO_LL 46 | 77 | #define SO_BUSY_POLL 46 |
| 78 | 78 | ||
| 79 | #endif /* _ASM_SOCKET_H */ | 79 | #endif /* _ASM_SOCKET_H */ |
| 80 | 80 | ||
diff --git a/arch/h8300/include/uapi/asm/socket.h b/arch/h8300/include/uapi/asm/socket.h index a38d38a6520b..9490758c5e2b 100644 --- a/arch/h8300/include/uapi/asm/socket.h +++ b/arch/h8300/include/uapi/asm/socket.h | |||
| @@ -74,6 +74,6 @@ | |||
| 74 | 74 | ||
| 75 | #define SO_SELECT_ERR_QUEUE 45 | 75 | #define SO_SELECT_ERR_QUEUE 45 |
| 76 | 76 | ||
| 77 | #define SO_LL 46 | 77 | #define SO_BUSY_POLL 46 |
| 78 | 78 | ||
| 79 | #endif /* _ASM_SOCKET_H */ | 79 | #endif /* _ASM_SOCKET_H */ |
diff --git a/arch/ia64/include/uapi/asm/socket.h b/arch/ia64/include/uapi/asm/socket.h index d3358b760681..556d0701a155 100644 --- a/arch/ia64/include/uapi/asm/socket.h +++ b/arch/ia64/include/uapi/asm/socket.h | |||
| @@ -83,6 +83,6 @@ | |||
| 83 | 83 | ||
| 84 | #define SO_SELECT_ERR_QUEUE 45 | 84 | #define SO_SELECT_ERR_QUEUE 45 |
| 85 | 85 | ||
| 86 | #define SO_LL 46 | 86 | #define SO_BUSY_POLL 46 |
| 87 | 87 | ||
| 88 | #endif /* _ASM_IA64_SOCKET_H */ | 88 | #endif /* _ASM_IA64_SOCKET_H */ |
diff --git a/arch/m32r/include/uapi/asm/socket.h b/arch/m32r/include/uapi/asm/socket.h index 44aaf4639a4a..24be7c8da86a 100644 --- a/arch/m32r/include/uapi/asm/socket.h +++ b/arch/m32r/include/uapi/asm/socket.h | |||
| @@ -74,6 +74,6 @@ | |||
| 74 | 74 | ||
| 75 | #define SO_SELECT_ERR_QUEUE 45 | 75 | #define SO_SELECT_ERR_QUEUE 45 |
| 76 | 76 | ||
| 77 | #define SO_LL 46 | 77 | #define SO_BUSY_POLL 46 |
| 78 | 78 | ||
| 79 | #endif /* _ASM_M32R_SOCKET_H */ | 79 | #endif /* _ASM_M32R_SOCKET_H */ |
diff --git a/arch/mips/include/uapi/asm/socket.h b/arch/mips/include/uapi/asm/socket.h index 6a07992ba6c6..61c01f054d1b 100644 --- a/arch/mips/include/uapi/asm/socket.h +++ b/arch/mips/include/uapi/asm/socket.h | |||
| @@ -92,6 +92,6 @@ | |||
| 92 | 92 | ||
| 93 | #define SO_SELECT_ERR_QUEUE 45 | 93 | #define SO_SELECT_ERR_QUEUE 45 |
| 94 | 94 | ||
| 95 | #define SO_LL 46 | 95 | #define SO_BUSY_POLL 46 |
| 96 | 96 | ||
| 97 | #endif /* _UAPI_ASM_SOCKET_H */ | 97 | #endif /* _UAPI_ASM_SOCKET_H */ |
diff --git a/arch/mn10300/include/uapi/asm/socket.h b/arch/mn10300/include/uapi/asm/socket.h index db80fd3e398b..e2a2b203eb00 100644 --- a/arch/mn10300/include/uapi/asm/socket.h +++ b/arch/mn10300/include/uapi/asm/socket.h | |||
| @@ -74,6 +74,6 @@ | |||
| 74 | 74 | ||
| 75 | #define SO_SELECT_ERR_QUEUE 45 | 75 | #define SO_SELECT_ERR_QUEUE 45 |
| 76 | 76 | ||
| 77 | #define SO_LL 46 | 77 | #define SO_BUSY_POLL 46 |
| 78 | 78 | ||
| 79 | #endif /* _ASM_SOCKET_H */ | 79 | #endif /* _ASM_SOCKET_H */ |
diff --git a/arch/parisc/include/uapi/asm/socket.h b/arch/parisc/include/uapi/asm/socket.h index f866fff9a004..71700e636a8e 100644 --- a/arch/parisc/include/uapi/asm/socket.h +++ b/arch/parisc/include/uapi/asm/socket.h | |||
| @@ -73,7 +73,7 @@ | |||
| 73 | 73 | ||
| 74 | #define SO_SELECT_ERR_QUEUE 0x4026 | 74 | #define SO_SELECT_ERR_QUEUE 0x4026 |
| 75 | 75 | ||
| 76 | #define SO_LL 0x4027 | 76 | #define SO_BUSY_POLL 0x4027 |
| 77 | |||
