tcp: xps: fix reordering issues
authorEric Dumazet <edumazet@google.com>
Thu, 23 May 2013 07:44:20 +0000 (07:44 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jun 2013 18:27:32 +0000 (11:27 -0700)
commitfa17eb7500ff1857fba3a01846e32c599cd332c3
tree45fca889d94b5aa5b81e0ec3c58758ae9cfb83ab
parent2d73733f3539c18e09345a0988c44a23a75b42f3
tcp: xps: fix reordering issues

[ Upstream commit 547669d483e5783d722772af1483fa474da7caf9 ]

commit 3853b5841c01a ("xps: Improvements in TX queue selection")
introduced ooo_okay flag, but the condition to set it is slightly wrong.

In our traces, we have seen ACK packets being received out of order,
and RST packets sent in response.

We should test if we have any packets still in host queue.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Tom Herbert <therbert@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_output.c