]> git.baikalelectronics.ru Git - kernel.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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 17 Jun 2015 21:21:18 +0000 (14:21 -0700)
commit3c9327663997fa2e295a8b62eb5e5b7bc097787e
tree0baf674407f547efb993b7d33431b155c7a0fa73
parentabb069cc6d8c3901945ddb726f5d66cb49014d46
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>
drivers/net/ethernet/intel/fm10k/fm10k_pf.c