summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2026-04-10 20:49:50 +0300
committerJakub Kicinski <kuba@kernel.org>2026-04-12 19:17:03 +0300
commit29703d7813f991e4ef80741ee15fe30e529a2192 (patch)
tree6cb307a4b19f5eb34ecc2098169d0b607115576f /include/net
parent59818773bab657f629a60ca534d198b85944417f (diff)
downloadlinux-29703d7813f991e4ef80741ee15fe30e529a2192.tar.xz
tcp: add indirect call wrapper in tcp_conn_request()
Small improvement in SYN processing, to directly call tcp_v6_init_seq_and_ts_off() or tcp_v4_init_seq_and_ts_off(). Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20260410174950.745670-1-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/tcp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index fce4b653c23e..23ce0329b230 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -3084,4 +3084,10 @@ static inline int tcp_recv_should_stop(struct sock *sk)
signal_pending(current);
}
+INDIRECT_CALLABLE_DECLARE(union tcp_seq_and_ts_off
+ tcp_v4_init_seq_and_ts_off(const struct net *net,
+ const struct sk_buff *skb));
+INDIRECT_CALLABLE_DECLARE(union tcp_seq_and_ts_off
+ tcp_v6_init_seq_and_ts_off(const struct net *net,
+ const struct sk_buff *skb));
#endif /* _TCP_H */