]> git.baikalelectronics.ru Git - kernel.git/commit
i40e/i40evf: take into account queue map from vf when handling queues
authorHarshitha Ramamurthy <harshitha.ramamurthy@intel.com>
Fri, 20 Apr 2018 08:41:39 +0000 (01:41 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 30 Apr 2018 16:32:54 +0000 (09:32 -0700)
commitd4aa06698d5084f49e6cd289367e2a1ee74ce209
treeef646184b967a134c527ff94ba2e4dfa7778933a
parent1ac6c738b83b628ca197a7d4f1ab0c8004888333
i40e/i40evf: take into account queue map from vf when handling queues

The expectation of the ops VIRTCHNL_OP_ENABLE_QUEUES and
VIRTCHNL_OP_DISABLE_QUEUES is that the queue map sent by
the VF is taken into account when enabling/disabling
queues in the VF VSI. This patch makes sure that happens.

By breaking out the individual queue set up functions so
that they can be called directly from the i40e_virtchnl_pf.c
file, only the queues as specified by the queue bit map that
accompanies the enable/disable queues ops will be handled.

Signed-off-by: Harshitha Ramamurthy <harshitha.ramamurthy@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c