aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/ipv4/ip_output.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2020-06-19 12:12:34 -0700
committerDavid S. Miller <davem@davemloft.net>2020-06-20 17:47:53 -0700
commit05e22e8395058745bd0312bc488b522197852aff (patch)
tree62d1ab4974d59015979fb24e1d823df5b3b825b2 /net/ipv4/ip_output.c
parentof: mdio: preserve phy dev_flags in of_phy_connect() (diff)
downloadwireguard-linux-05e22e8395058745bd0312bc488b522197852aff.tar.xz
wireguard-linux-05e22e8395058745bd0312bc488b522197852aff.zip
tcp: remove indirect calls for icsk->icsk_af_ops->queue_xmit
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 'net/ipv4/ip_output.c')
-rw-r--r--net/ipv4/ip_output.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 090d3097ee15..d946356187ed 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -539,6 +539,12 @@ no_route:
}
EXPORT_SYMBOL(__ip_queue_xmit);
+int ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl)
+{
+ return __ip_queue_xmit(sk, skb, fl, inet_sk(sk)->tos);
+}
+EXPORT_SYMBOL(ip_queue_xmit);
+
static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from)
{
to->pkt_type = from->pkt_type;