]> 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)
commit49395f76f9d64a85a2a038eb51f3f8bead983cc3
treeef646184b967a134c527ff94ba2e4dfa7778933a
parent19dcb3dad70dc20f140a9d1d035c815b0ce3b796
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