diff options
| author | Paolo Abeni <pabeni@redhat.com> | 2023-05-25 14:20:47 +0300 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2023-05-25 14:20:48 +0300 |
| commit | e8f8b3323039e4c60c626ce853eca7b36b0aaa8f (patch) | |
| tree | d7f96fb0f8de6cadd9f3d429fe8425f9caf6987c /include | |
| parent | ae4899bb486f73e6d3d55a82b40482b2c5529a98 (diff) | |
| parent | 7016eb738651ed1dfeef2bbf266bc7dac734067d (diff) | |
| download | linux-e8f8b3323039e4c60c626ce853eca7b36b0aaa8f.tar.xz | |
Merge branch 'net-tcp-make-txhash-use-consistent-for-ipv4'
Antoine Tenart says:
====================
net: tcp: make txhash use consistent for IPv4
Series is divided in two parts. First two commits make the txhash (used
for the skb hash in TCP) to be consistent for all IPv4/TCP packets (IPv6
doesn't have the same issue). Last commit improve a hash-related doc.
One example is when using OvS with dp_hash, which uses skb->hash, to
select a path. We'd like packets from the same flow to be consistent, as
well as the hash being stable over time when using net.core.txrehash=0.
Same applies for kernel ECMP which also can use skb->hash.
====================
Link: https://lore.kernel.org/r/20230523161453.196094-1-atenart@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/ip.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index 8a3860a916dc..2982dd13cf16 100644 --- a/include/net/ip.h +++ b/include/net/ip.h @@ -286,7 +286,7 @@ void ip_send_unicast_reply(struct sock *sk, struct sk_buff *skb, const struct ip_options *sopt, __be32 daddr, __be32 saddr, const struct ip_reply_arg *arg, - unsigned int len, u64 transmit_time); + unsigned int len, u64 transmit_time, u32 txhash); #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) #define __IP_INC_STATS(net, field) __SNMP_INC_STATS64((net)->mib.ip_statistics, field) |
