]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fm10k: re-map all possible VF queues after a VFLR
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 3 Jun 2015 23:31:08 +0000 (16:31 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:03:04 +0000 (22:03 -0800)
commit620b79fb464de8acadade94d0fe0f84fa123d762
tree39f78711eb520484dc400d37ff4aa1dbd367111d
parent1c7b0700adf7497552624c680184782498374a2b
fm10k: re-map all possible VF queues after a VFLR

During initialization, the VF counts its rings by walking the TQDLOC
registers. This works only if the TQMAP/RQMAP registers are set to map
all of the out-of-bound rings back to the first one. This allows the VF
to cleanly detect when it has run out of queues. Update the PF code so
that it resets the empty TQMAP/RQMAP registers post-VFLR to prevent
innocent VF drivers from triggering malicious driver events.

Signed-off-by: Matthew Vick <matthew.vick@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Orabug: 25394529
(cherry picked from commit fba341d5cab38db68eed061cf20e161d967795c6)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k_pf.c