]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: move sk_validate_xmit_skb() to net/core/dev.c
authorDaniel Zahka <daniel.zahka@gmail.com>
Wed, 17 Sep 2025 00:09:33 +0000 (17:09 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Sep 2025 10:32:06 +0000 (12:32 +0200)
commit8c511c1df380780b8a81050767dbfe7ca518d3a2
tree00c009f1f3284857566375c3d35b3d0a25dee164
parent117f02a49b7719b210d154a0d0e728001bf4af06
net: move sk_validate_xmit_skb() to net/core/dev.c

Move definition of sk_validate_xmit_skb() from net/core/sock.c to
net/core/dev.c.

This change is in preparation of the next patch, where
sk_validate_xmit_skb() will need to cast sk to a tcp_timewait_sock *,
and access member fields. Including linux/tcp.h from linux/sock.h
creates a circular dependency, and dev.c is the only current call site
of this function.

Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250917000954.859376-7-daniel.zahka@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/sock.h
net/core/dev.c