diff options
author | Sarveshwar Bandi <sarveshwarb@serverengines.com> | 2010-03-31 02:56:12 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-01 19:53:14 -0700 |
commit | ba343c7736b36d62d276e20383588bcf9403d6c6 (patch) | |
tree | 3b157ff000be3ef3ead1a07d038e5afd23d03e53 /drivers/net/benet/be.h | |
parent | f64e96973a1fa885ce6e4f7e3fdbae83de98fcab (diff) | |
download | linux-stable-ba343c7736b36d62d276e20383588bcf9403d6c6.tar.gz linux-stable-ba343c7736b36d62d276e20383588bcf9403d6c6.tar.bz2 linux-stable-ba343c7736b36d62d276e20383588bcf9403d6c6.zip |
be2net: Adding PCI SRIOV support
- Patch adds support to enable PCI SRIOV in the driver and changes to handle initialization of PCI virtual functions.
- Function handler to change mac addresses for VF from its corresponding PF.
Signed-off-by: Sarveshwar Bandi <sarveshwarb@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be.h')
-rw-r--r-- | drivers/net/benet/be.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h index 8f0752553681..20842c5fd8fb 100644 --- a/drivers/net/benet/be.h +++ b/drivers/net/benet/be.h @@ -83,6 +83,8 @@ static inline char *nic_name(struct pci_dev *pdev) #define FW_VER_LEN 32 +#define BE_MAX_VF 32 + struct be_dma_mem { void *va; dma_addr_t dma; @@ -280,8 +282,15 @@ struct be_adapter { u8 port_type; u8 transceiver; u8 generation; /* BladeEngine ASIC generation */ + + bool sriov_enabled; + u32 vf_if_handle[BE_MAX_VF]; + u32 vf_pmac_id[BE_MAX_VF]; + u8 base_eq_id; }; +#define be_physfn(adapter) (!adapter->pdev->is_virtfn) + /* BladeEngine Generation numbers */ #define BE_GEN2 2 #define BE_GEN3 3 |