tcp: xps: fix reordering issues
authorEric Dumazet <edumazet@google.com>
Thu, 23 May 2013 07:44:20 +0000 (07:44 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 29 Jun 2013 03:06:38 +0000 (04:06 +0100)
commitbe25f0fd74914963cd2b0ee8e4eefb1f596f0b05
treee060d4374210462758bfac3d9aabd652a6a6da64
parent3cf40360f431d9124eba331403631a68f295b620
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: Ben Hutchings <ben@decadent.org.uk>
net/ipv4/tcp_output.c