net/enic: fix Rx queue index when not using Rx scatter
authorNelson Escobar <neescoba@cisco.com>
Wed, 12 Oct 2016 20:11:28 +0000 (13:11 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Wed, 26 Oct 2016 17:38:18 +0000 (19:38 +0200)
commite8a71c46055a81f7d0b43515ebaf4763a6b419b9
treea90c7eac1c2932c953e94077234f6f15baac77f5
parent0a0060e3969bf2be983da8e4e4f74e66725da0ec
net/enic: fix Rx queue index when not using Rx scatter

The Rx scatter patch was accidentally setting the index of the
secondary receive queue in the primary receive queue's initialization
when the secondary receive queue wasn't needed and was disabled.  This
caused some misleading hardware counters in some situations.

Fixes: 856d7ba7ed22 ("net/enic: support scattered Rx")

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