]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: assign skb hash after tcp_event_data_sent
authorYuchung Cheng <ycheng@google.com>
Mon, 11 Jan 2021 23:05:52 +0000 (15:05 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Jan 2021 03:36:51 +0000 (19:36 -0800)
commitb77baaa373c7c5e1678c4e1b074b793bb1bf611b
treefd2231b28ea82432b95b7dd3e1b1a0e23402a7b3
parent0258e96f88fbd62c96a3cc3e919028b3a02c8c2d
tcp: assign skb hash after tcp_event_data_sent

Move skb_set_hash_from_sk s.t. it's called after instead of before
tcp_event_data_sent is called. This enables congestion control
modules to change the socket hash right before restarting from
idle (via the TX_START congestion event).

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Link: https://lore.kernel.org/r/20210111230552.2704579-1-ycheng@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_output.c