sfc: Bind the sfc driver to any available VF's
Add the device ID of the VF to the PCI device ID table. Added a boolean flag is_vf in efx_nic_type to differentiate between a VF and PF at probe time. This flag is useful in later patches while setting MAC address specially in the PCI-passthrough case. Signed-off-by: Shradha Shah <sshah@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
267c01571b
commit
6f7f8aa69a
@@ -1224,6 +1224,7 @@ struct efx_mtd_partition {
|
||||
* @hwtstamp_filters: Mask of hardware timestamp filter types supported
|
||||
*/
|
||||
struct efx_nic_type {
|
||||
bool is_vf;
|
||||
unsigned int mem_bar;
|
||||
unsigned int (*mem_map_size)(struct efx_nic *efx);
|
||||
int (*probe)(struct efx_nic *efx);
|
||||
|
Reference in New Issue
Block a user