• E
    tcp: provide skb->hash to synack packets · 58d607d3
    Eric Dumazet 提交于
    In commit b73c3d0e ("net: Save TX flow hash in sock and set in skbuf
    on xmit"), Tom provided a l4 hash to most outgoing TCP packets.
    
    We'd like to provide one as well for SYNACK packets, so that all packets
    of a given flow share same txhash, to later enable bonding driver to
    also use skb->hash to perform slave selection.
    
    Note that a SYNACK retransmit shuffles the tx hash, as Tom did
    in commit 265f94ff ("net: Recompute sk_txhash on negative routing
    advice") for established sockets.
    
    This has nice effect making TCP flows resilient to some kind of black
    holes, even at connection establish phase.
    Signed-off-by: NEric Dumazet <edumazet@google.com>
    Cc: Tom Herbert <tom@herbertland.com>
    Cc: Mahesh Bandewar <maheshb@google.com>
    Acked-by: NTom Herbert <tom@herbertland.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    58d607d3
tcp_ipv4.c 61.9 KB