summaryrefslogtreecommitdiff
path: root/include/uapi/linux/socket.h
diff options
context:
space:
mode:
authorAkhmat Karakotov <hmukos@yandex-team.ru>2022-01-31 16:31:22 +0300
committerDavid S. Miller <davem@davemloft.net>2022-01-31 18:05:25 +0300
commit26859240e4ee701e0379f08634957adaff67e43a (patch)
tree8f5b6f3e487f59496ec6a089b3e57d3beac1aab2 /include/uapi/linux/socket.h
parente187013abeb4c2a7ec8a4bb978844c7e92a1a6ec (diff)
downloadlinux-26859240e4ee701e0379f08634957adaff67e43a.tar.xz
txhash: Add socket option to control TX hash rethink behavior
Add the SO_TXREHASH socket option to control hash rethink behavior per socket. When default mode is set, sockets disable rehash at initialization and use sysctl option when entering listen state. setsockopt() overrides default behavior. Signed-off-by: Akhmat Karakotov <hmukos@yandex-team.ru> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/socket.h')
-rw-r--r--include/uapi/linux/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/socket.h b/include/uapi/linux/socket.h
index 0accd6102ece..51d6bb2f6765 100644
--- a/include/uapi/linux/socket.h
+++ b/include/uapi/linux/socket.h
@@ -31,6 +31,7 @@ struct __kernel_sockaddr_storage {
#define SOCK_BUF_LOCK_MASK (SOCK_SNDBUF_LOCK | SOCK_RCVBUF_LOCK)
+#define SOCK_TXREHASH_DEFAULT ((u8)-1)
#define SOCK_TXREHASH_DISABLED 0
#define SOCK_TXREHASH_ENABLED 1