net/enic: fix Rx queue init after restarting a device
authorJohn Daley <johndale@cisco.com>
Wed, 29 Jun 2016 23:03:21 +0000 (16:03 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 5 Jul 2016 13:39:08 +0000 (15:39 +0200)
commit04f976899ff1add55c531e72aa06ff954f1093c1
treedd0fb8b944ea51ca0d61a008f4334d47e9065025
parenta3d5f0c92a72addbd6719d783c320ce7e2789241
net/enic: fix Rx queue init after restarting a device

If you stop, then start a port that had already received some packets,
the NIC could fetch discriptors from the wrong location. This could
effectivly reduce the size of the Rx queue by a random amount and
cause packet drop or reduced performance.

Reset the NIC fetch index to 0 when allocating and posting mbuf
addresses to the NIC.

Fixes: 947d860c821f ("enic: improve Rx performance")

Signed-off-by: John Daley <johndale@cisco.com>
Reviewed-by: Nelson Escobar <neescoba@cisco.com>
drivers/net/enic/enic_main.c