diff options
author | Akhmat Karakotov <hmukos@yandex-team.ru> | 2022-01-31 14:31:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-31 16:05:25 +0100 |
commit | 26859240e4ee701e0379f08634957adaff67e43a (patch) | |
tree | 8f5b6f3e487f59496ec6a089b3e57d3beac1aab2 /include/uapi/asm-generic | |
parent | txhash: Make rethinking txhash behavior configurable via sysctl (diff) | |
download | linux-26859240e4ee701e0379f08634957adaff67e43a.tar.xz linux-26859240e4ee701e0379f08634957adaff67e43a.zip |
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/asm-generic')
-rw-r--r-- | include/uapi/asm-generic/socket.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/asm-generic/socket.h b/include/uapi/asm-generic/socket.h index c77a1313b3b0..467ca2f28760 100644 --- a/include/uapi/asm-generic/socket.h +++ b/include/uapi/asm-generic/socket.h @@ -128,6 +128,8 @@ #define SO_RESERVE_MEM 73 +#define SO_TXREHASH 74 + #if !defined(__KERNEL__) #if __BITS_PER_LONG == 64 || (defined(__x86_64__) && defined(__ILP32__)) |