Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64b0dc51 authored by Eliezer Tamir's avatar Eliezer Tamir Committed by David S. Miller
Browse files

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: default avatarEliezer Tamir <eliezer.tamir@linux.intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8b80cda5
Loading
Loading
Loading
Loading
+9 −8
Original line number Original line Diff line number Diff line
@@ -50,26 +50,27 @@ The maximum number of packets that kernel can handle on a NAPI interrupt,
it's a Per-CPU variable.
it's a Per-CPU variable.
Default: 64
Default: 64


low_latency_read
busy_read
----------------
----------------
Low latency busy poll timeout for socket reads. (needs CONFIG_NET_LL_RX_POLL)
Low latency busy poll timeout for socket reads. (needs CONFIG_NET_LL_RX_POLL)
Approximate time in us to busy loop waiting for packets on the device queue.
Approximate time in us to busy loop waiting for packets on the device queue.
This sets the default value of the SO_LL socket option.
This sets the default value of the SO_BUSY_POLL socket option.
Can be set or overridden per socket by setting socket option SO_LL, which is
Can be set or overridden per socket by setting socket option SO_BUSY_POLL,
the preferred method of enabling.
which is the preferred method of enabling. If you need to enable the feature
If you need to enable the feature globally via sysctl, a value of 50 is recommended.
globally via sysctl, a value of 50 is recommended.
Will increase power usage.
Will increase power usage.
Default: 0 (off)
Default: 0 (off)


low_latency_poll
busy_poll
----------------
----------------
Low latency busy poll timeout for poll and select. (needs CONFIG_NET_LL_RX_POLL)
Low latency busy poll timeout for poll and select. (needs CONFIG_NET_LL_RX_POLL)
Approximate time in us to busy loop waiting for events.
Approximate time in us to busy loop waiting for events.
Recommended value depends on the number of sockets you poll on.
Recommended value depends on the number of sockets you poll on.
For several sockets 50, for several hundreds 100.
For several sockets 50, for several hundreds 100.
For more than that you probably want to use epoll.
For more than that you probably want to use epoll.
Note that only sockets with SO_LL set will be busy polled, so you want to either
Note that only sockets with SO_BUSY_POLL set will be busy polled,
selectively set SO_LL on those sockets or set sysctl.net.low_latency_read globally.
so you want to either selectively set SO_BUSY_POLL on those sockets or set
sysctl.net.busy_read globally.
Will increase power usage.
Will increase power usage.
Default: 0 (off)
Default: 0 (off)


+1 −1
Original line number Original line Diff line number Diff line
@@ -81,6 +81,6 @@


#define SO_SELECT_ERR_QUEUE	45
#define SO_SELECT_ERR_QUEUE	45


#define SO_LL			46
#define SO_BUSY_POLL			46


#endif /* _UAPI_ASM_SOCKET_H */
#endif /* _UAPI_ASM_SOCKET_H */
+1 −1
Original line number Original line Diff line number Diff line
@@ -74,6 +74,6 @@


#define SO_SELECT_ERR_QUEUE	45
#define SO_SELECT_ERR_QUEUE	45


#define SO_LL			46
#define SO_BUSY_POLL		46


#endif /* __ASM_AVR32_SOCKET_H */
#endif /* __ASM_AVR32_SOCKET_H */
+1 −1
Original line number Original line Diff line number Diff line
@@ -76,7 +76,7 @@


#define SO_SELECT_ERR_QUEUE	45
#define SO_SELECT_ERR_QUEUE	45


#define SO_LL			46
#define SO_BUSY_POLL		46


#endif /* _ASM_SOCKET_H */
#endif /* _ASM_SOCKET_H */


+1 −1
Original line number Original line Diff line number Diff line
@@ -74,7 +74,7 @@


#define SO_SELECT_ERR_QUEUE	45
#define SO_SELECT_ERR_QUEUE	45


#define SO_LL			46
#define SO_BUSY_POLL		46


#endif /* _ASM_SOCKET_H */
#endif /* _ASM_SOCKET_H */
Loading