diff options
author | Akhmat Karakotov <hmukos@yandex-team.ru> | 2022-01-31 16:31:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-31 15:05:24 +0000 |
commit | e187013abeb4c2a7ec8a4bb978844c7e92a1a6ec (patch) | |
tree | f5514fabb36ce2897eeb1db3f6f8d6f7d0357d64 /include/uapi/linux/socket.h | |
parent | 678dfd5280341d877ca646499bfdc82a3d8b4356 (diff) |
txhash: Make rethinking txhash behavior configurable via sysctl
Add a per ns sysctl that controls the txhash rethink behavior:
net.core.txrehash. When enabled, the same behavior is retained,
when disabled, rethink is not performed. Sysctl is enabled by default.
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/socket.h b/include/uapi/linux/socket.h index eb0a9a5b6e71..0accd6102ece 100644 --- a/include/uapi/linux/socket.h +++ b/include/uapi/linux/socket.h @@ -31,4 +31,7 @@ struct __kernel_sockaddr_storage { #define SOCK_BUF_LOCK_MASK (SOCK_SNDBUF_LOCK | SOCK_RCVBUF_LOCK) +#define SOCK_TXREHASH_DISABLED 0 +#define SOCK_TXREHASH_ENABLED 1 + #endif /* _UAPI_LINUX_SOCKET_H */ |