]> git.ipfire.org Git - thirdparty/linux.git/commit
mptcp: Align mptcp_inet6_sk with other protocols
authorPedro Falcato <pfalcato@suse.de>
Wed, 30 Apr 2025 15:45:41 +0000 (16:45 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 3 May 2025 01:28:21 +0000 (18:28 -0700)
commita2f6476ed18a3e96e65d47a757d5755421ae8f91
tree26b121524eff9753ce12239bacf3361e155e2977
parentb88c382bed1ca90a82334b60564270d1eddc6066
mptcp: Align mptcp_inet6_sk with other protocols

Ever since commit f5f80e32de12 ("ipv6: remove hard coded limitation on
ipv6_pinfo") that protocols stopped using the old "obj_size -
sizeof(struct ipv6_pinfo)" way of grabbing ipv6_pinfo, that severely
restricted struct layout and caused fun, hard to see issues.

However, mptcp_inet6_sk wasn't fixed (unlike tcp_inet6_sk). Do so.
The non-cloned sockets already do the right thing using
ipv6_pinfo_offset + the generic IPv6 code.

Signed-off-by: Pedro Falcato <pfalcato@suse.de>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250430154541.1038561-1-pfalcato@suse.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c