diff options
author | Shradha Shah <sshah@solarflare.com> | 2015-05-06 01:00:07 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-09 16:16:48 -0400 |
commit | 6f7f8aa69acb391ba98f5186ca09434d9d0f52ee (patch) | |
tree | 16500baca83529192384801660c9473a45603da1 /drivers/net/ethernet/sfc/net_driver.h | |
parent | 267c01571bd38ea807bae1da93788d3b577661cf (diff) | |
download | linux-6f7f8aa69acb391ba98f5186ca09434d9d0f52ee.tar.gz linux-6f7f8aa69acb391ba98f5186ca09434d9d0f52ee.tar.bz2 linux-6f7f8aa69acb391ba98f5186ca09434d9d0f52ee.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
-rw-r--r-- | drivers/net/ethernet/sfc/net_driver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h index 9498a427887d..031a3385ad4b 100644 --- a/drivers/net/ethernet/sfc/net_driver.h +++ b/drivers/net/ethernet/sfc/net_driver.h @@ -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); |