OpenCloudOS-Kernel/drivers/net/ethernet/intel/i40e
Mitch Williams 7efa84b7ab i40e: support VFs on PFs other than 0
When communicating with VF devices over the AQ, the FW refers to the
VF by its global VF ID, not local the VF ID with reference to its
parent PF. Since the global and local VF IDs are identical for PF 0,
the code worked correctly on PF 0.

However, we cannot just use global IDs throughout the code as most of
the other references to the VF (VSI setup, register offsets, etc.)
require the local VF ID. Instead, we just add or subtract our base VF
ID when sending and receiving AQ messages.

Change-Id: I92f4332b4876bc68b2f9af9ebf48761f63b6bd97
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2014-01-06 02:46:49 -08:00
..
Makefile i40e: include i40e in kernel proper 2013-09-11 02:28:40 -07:00
i40e.h i40e: Remove unnecessary prototypes 2014-01-05 01:38:03 -08:00
i40e_adminq.c i40e: keep allocated memory in structs 2014-01-04 23:46:24 -08:00
i40e_adminq.h i40e: keep allocated memory in structs 2014-01-04 23:46:24 -08:00
i40e_adminq_cmd.h i40e: Implementation of VXLAN ndo's 2014-01-03 20:11:44 -08:00
i40e_alloc.h i40e: init code and hardware support 2013-09-11 02:12:25 -07:00
i40e_common.c i40e: fix mac address checking 2014-01-04 22:13:45 -08:00
i40e_debugfs.c i40e: fix whitespace 2014-01-06 02:00:10 -08:00
i40e_diag.c i40e: trivial fixes 2013-12-16 00:49:22 -08:00
i40e_diag.h i40e: loopback info and set loopback fix 2013-12-10 01:27:30 -08:00
i40e_ethtool.c i40e: Change the ethtool NVM read method to use AQ 2014-01-04 22:22:26 -08:00
i40e_hmc.c i40e: trivial fixes 2013-12-16 00:49:22 -08:00
i40e_hmc.h i40e: init code and hardware support 2013-09-11 02:12:25 -07:00
i40e_lan_hmc.c i40e: init code and hardware support 2013-09-11 02:12:25 -07:00
i40e_lan_hmc.h i40e: sync header files with hardware 2013-12-05 23:25:17 -08:00
i40e_main.c i40e: don't allocate zero size 2014-01-06 02:32:26 -08:00
i40e_nvm.c i40e: init code and hardware support 2013-09-11 02:12:25 -07:00
i40e_osdep.h i40e: driver core headers 2013-09-11 01:58:15 -07:00
i40e_prototype.h i40e: fix mac address checking 2014-01-04 22:13:45 -08:00
i40e_register.h i40e: whitespace 2013-12-06 16:41:50 -08:00
i40e_status.h i40e: init code and hardware support 2013-09-11 02:12:25 -07:00
i40e_txrx.c i40e: Record dma buffer info for dummy packets 2014-01-05 18:20:28 -08:00
i40e_txrx.h i40e: add header file flag _I40E_TXRX_H_ 2014-01-04 22:44:37 -08:00
i40e_type.h i40e: Rx checksum offload for VXLAN 2014-01-03 20:20:09 -08:00
i40e_virtchnl.h i40e: implement virtual device interface 2013-09-11 02:04:56 -07:00
i40e_virtchnl_pf.c i40e: support VFs on PFs other than 0 2014-01-06 02:46:49 -08:00
i40e_virtchnl_pf.h i40e: Fix SR-IOV VF port VLAN 2014-01-05 20:59:01 -08:00