i40evf: correctly program RSS HLUT table
authorMitch Williams <mitch.a.williams@intel.com>
Tue, 11 Feb 2014 08:27:50 +0000 (08:27 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 19 Mar 2014 23:57:45 +0000 (16:57 -0700)
commit96d477045388c03a03041c382f19e122046c0afd
tree7cf60761af99fbd08b287979a806132e717855cb
parent588aefa081cb13d80240c8b4fc656acda480d7dd
i40evf: correctly program RSS HLUT table

The HLUT programming loop in in i40evf_configure_rss was a) overly-
complicated, and b) just plain broken. Most of the entries ended up being
not written at all, so most of the flows ended up at queue zero.

Refactor the HLUT programming loop to simply walk through the registers
and write four values to each one, incrementing through the number of
available queues.

Change-ID: I75766179bc67e4e997187794f3144e28c83fd00d
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c