net/enic: fix Rx scatter with multiple queues
authorNelson Escobar <neescoba@cisco.com>
Tue, 28 Jun 2016 18:49:11 +0000 (11:49 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Wed, 29 Jun 2016 10:46:31 +0000 (12:46 +0200)
commit16dba07133bd354adc9e99223595dffbbe8f1649
treef467391b4d4caf5af160efabcc0b65e0995b68a7
parent714b319f1168f77e551d7772a0bb7ecc99cf03cf
net/enic: fix Rx scatter with multiple queues

The Rx scatter patch failed to make a few changes and resulted in
problems when using multiple receive queues (RQs) in DPDK (ie RSS)
since the wrong adapter resources were being used.

- get and use the correct completion queue index associated with a
  receive queue.
- set the correct receive queue index when using RSS

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/enic.h
drivers/net/enic/enic_main.c