]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: Support 4 queue RSS on VFs with 1 or 2 queue RSS on PF
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 8 Sep 2016 03:28:24 +0000 (20:28 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 25 Feb 2017 05:48:04 +0000 (21:48 -0800)
commit490fa04f4a4a158683e0e2e3ae93a31d46aa2d1a
tree119cd59555b985c1910945981e103f852e0170d3
parentdbc68ca095db74d45af8c73bc39ef88353a667b3
ixgbe: Support 4 queue RSS on VFs with 1 or 2 queue RSS on PF

Orabug: 24568240

Instead of limiting the VFs if we don't use 4 queues for RSS in the PF we
can instead just limit the RSS queues used to a power of 2.  By doing this
we can support use cases where VFs are using more queues than the PF is
currently using and can support RSS if so desired.

The only limitation on this is that we cannot support 3 queues of RSS in
the PF or VF.  In either of these cases we should fall back to 2 queues in
order to be able to use the power of 2 masking provided by the psrtype
register.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit e24fcf28959298e07cae9ee19eb9a4b2b399b4fb)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c