]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tcp: Restrict SO_TXREHASH to TCP socket.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Mon, 19 May 2025 20:57:55 +0000 (13:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 May 2025 09:24:18 +0000 (10:24 +0100)
commitae4f2f59e1f9c7c9cab1641a3c9645e587f0bc72
tree312fb2dd1cdc980a88eeea8fb45b744b5ffda06a
parent38b95d588f8fd07027ad8dbca3e1d2b5c13413ae
tcp: Restrict SO_TXREHASH to TCP socket.

sk->sk_txrehash is only used for TCP.

Let's restrict SO_TXREHASH to TCP to reflect this.

Later, we will make sk_txrehash a part of the union for other
protocol families.

Note that we need to modify BPF selftest not to get/set
SO_TEREHASH for non-TCP sockets.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c
tools/testing/selftests/bpf/progs/setget_sockopt.c