mbox series

[net-next,v2,0/3] net: tcp: make txhash use consistent for IPv4

Message ID 20230523161453.196094-1-atenart@kernel.org (mailing list archive)
Headers show
Series net: tcp: make txhash use consistent for IPv4 | expand

Message

Antoine Tenart May 23, 2023, 4:14 p.m. UTC
Hello,

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.

Thanks!
Antoine

Since v1:
- Rebased on top of latest net-next (one minor conflict).
- Dropped patch 4/4 ("net: skbuff: fix l4_hash comment") as we didn't
  come to an agreement, thread for reference:
  https://lore.kernel.org/all/20230511093456.672221-5-atenart@kernel.org/

Antoine Tenart (3):
  net: tcp: make the txhash available in TIME_WAIT sockets for IPv4 too
  net: ipv4: use consistent txhash in TIME_WAIT and SYN_RECV
  Documentation: net: net.core.txrehash is not specific to listening
    sockets

 Documentation/admin-guide/sysctl/net.rst |  4 ++--
 include/net/ip.h                         |  2 +-
 net/ipv4/ip_output.c                     |  4 +++-
 net/ipv4/tcp_ipv4.c                      | 14 +++++++++-----
 net/ipv4/tcp_minisocks.c                 |  2 +-
 5 files changed, 16 insertions(+), 10 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org May 25, 2023, 11:40 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Tue, 23 May 2023 18:14:50 +0200 you wrote:
> Hello,
> 
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next,v2,1/3] net: tcp: make the txhash available in TIME_WAIT sockets for IPv4 too
    https://git.kernel.org/netdev/net-next/c/4fbfde4e2720
  - [net-next,v2,2/3] net: ipv4: use consistent txhash in TIME_WAIT and SYN_RECV
    https://git.kernel.org/netdev/net-next/c/c0a8966e2bc7
  - [net-next,v2,3/3] Documentation: net: net.core.txrehash is not specific to listening sockets
    https://git.kernel.org/netdev/net-next/c/7016eb738651

You are awesome, thank you!