Skip to content

Commit 50d1784

Browse files
edumazetdavem330
authored andcommitted
net: fix multiqueue selection
commit 416186f ("net: Split core bits of netdev_pick_tx into __netdev_pick_tx") added a bug that disables caching of queue index in the socket. This is the source of packet reorders for TCP flows, and again this is happening more often when using FQ pacing. Old code was doing if (queue_index != old_index) sk_tx_queue_set(sk, queue_index); Alexander renamed the variables but forgot to change sk_tx_queue_set() 2nd parameter. if (queue_index != new_index) sk_tx_queue_set(sk, queue_index); This means we store -1 over and over in sk->sk_tx_queue_mapping Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Alexander Duyck <alexander.h.duyck@intel.com> Acked-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 88362ad commit 50d1784

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/core/flow_dissector.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ u16 __netdev_pick_tx(struct net_device *dev, struct sk_buff *skb)
352352

353353
if (queue_index != new_index && sk &&
354354
rcu_access_pointer(sk->sk_dst_cache))
355-
sk_tx_queue_set(sk, queue_index);
355+
sk_tx_queue_set(sk, new_index);
356356

357357
queue_index = new_index;
358358
}

0 commit comments

Comments
 (0)