aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be.h
diff options
context:
space:
mode:
authorSarveshwar Bandi <sarveshwarb@serverengines.com>2010-03-30 22:56:12 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-01 22:53:14 -0400
commitba343c7736b36d62d276e20383588bcf9403d6c6 (patch)
tree3b157ff000be3ef3ead1a07d038e5afd23d03e53 /drivers/net/benet/be.h
parentf64e96973a1fa885ce6e4f7e3fdbae83de98fcab (diff)
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.h9
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)
83 83
84#define FW_VER_LEN 32 84#define FW_VER_LEN 32
85 85
86#define BE_MAX_VF 32
87
86struct be_dma_mem { 88struct be_dma_mem {
87 void *va; 89 void *va;
88 dma_addr_t dma; 90 dma_addr_t dma;
@@ -280,8 +282,15 @@ struct be_adapter {
280 u8 port_type; 282 u8 port_type;
281 u8 transceiver; 283 u8 transceiver;
282 u8 generation; /* BladeEngine ASIC generation */ 284 u8 generation; /* BladeEngine ASIC generation */
285
286 bool sriov_enabled;
287 u32 vf_if_handle[BE_MAX_VF];
288 u32 vf_pmac_id[BE_MAX_VF];
289 u8 base_eq_id;
283}; 290};
284 291
292#define be_physfn(adapter) (!adapter->pdev->is_virtfn)
293
285/* BladeEngine Generation numbers */ 294/* BladeEngine Generation numbers */
286#define BE_GEN2 2 295#define BE_GEN2 2
287#define BE_GEN3 3 296#define BE_GEN3 3