]> git.baikalelectronics.ru Git - kernel.git/commit
txhash: Make rethinking txhash behavior configurable via sysctl
authorAkhmat Karakotov <hmukos@yandex-team.ru>
Mon, 31 Jan 2022 13:31:21 +0000 (16:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Jan 2022 15:05:24 +0000 (15:05 +0000)
commite187013abeb4c2a7ec8a4bb978844c7e92a1a6ec
treef5514fabb36ce2897eeb1db3f6f8d6f7d0357d64
parent678dfd5280341d877ca646499bfdc82a3d8b4356
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>
include/net/netns/core.h
include/net/sock.h
include/uapi/linux/socket.h
net/core/net_namespace.c
net/core/sysctl_net_core.c