net/enic: fix packet loss after MTU change
authorJohn Daley <johndale@cisco.com>
Mon, 23 Oct 2017 20:23:00 +0000 (13:23 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000 (02:33 +0200)
commitea5f15b1c49a687eaa57d435a8bf68e553b50b30
tree445effb8bb881f635c4babd552015608a10b67a7
parent920b4e545efe05f33ca30ad3816220ad393de4c6
net/enic: fix packet loss after MTU change

If multiple Rx queues and Rx Scatter are used and the MTU is
modified so that the number of mbufs per packet changes, packet
loss is possible.

The enic completion queue index was miscalculated leaving the
upper half of the queues uninitialized after an MTU change, possibly
leading to completions on those queues not getting processed.

Fixes: c3e09182bcd6 ("net/enic: support scatter Rx in MTU update")
Cc: stable@dpdk.org
Signed-off-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_main.c