summaryrefslogtreecommitdiff
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2020-06-19 22:12:35 +0300
committerDavid S. Miller <davem@davemloft.net>2020-06-21 03:47:53 +0300
commitdd2e0b86fc4ee146ac8f3275833d0187efeb950a (patch)
tree6c91f581ec5db35d4d77554be9d293b2ae57a776 /include/net/tcp.h
parent05e22e8395058745bd0312bc488b522197852aff (diff)
downloadlinux-dd2e0b86fc4ee146ac8f3275833d0187efeb950a.tar.xz
tcp: remove indirect calls for icsk->icsk_af_ops->send_check
Mitigate RETPOLINE costs in __tcp_transmit_skb() by using INDIRECT_CALL_INET() wrapper. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index e5d7e0b09924..cd9cc348dbf9 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -932,6 +932,9 @@ static inline int tcp_v6_sdif(const struct sk_buff *skb)
#endif
return 0;
}
+
+INDIRECT_CALLABLE_DECLARE(void tcp_v6_send_check(struct sock *sk, struct sk_buff *skb));
+
#endif
static inline bool inet_exact_dif_match(struct net *net, struct sk_buff *skb)