tcp: defer sacked assignment
authorEric Dumazet <edumazet@google.com>
Wed, 17 Aug 2016 14:48:36 +0000 (07:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 06:27:27 +0000 (23:27 -0700)
commitdca0aaf8472f15836a68bbed8a0ef9ea39e783aa
tree37be0e35a1db4350a50307ec21c2a24e59a13b7a
parent53e43f3905f44366acbb5ff6f295d64996fbf6a3
tcp: defer sacked assignment

While chasing tcp_xmit_retransmit_queue() kasan issue, I found
that we could avoid reading sacked field of skb that we wont send,
possibly removing one cache line miss.

Very minor change in slow path, but why not ? ;)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c