aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be.h
diff options
context:
space:
mode:
authorAjit Khaparde <ajitk@serverengines.com>2010-07-22 21:50:34 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-23 15:40:53 -0400
commit64600ea5f389858e183d3739776f4667265cc77f (patch)
tree48ae1fda8c3a4628438ceba78418e65d2deb7e34 /drivers/net/benet/be.h
parent9cd9000bdee9131ffd2ce92ca6ef9c86467edd25 (diff)
be2net: add support to get vf config
Signed-off-by: Ajit Khaparde <ajitk@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, 7 insertions, 2 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h
index c730bd64628a..a8e95da23f7b 100644
--- a/drivers/net/benet/be.h
+++ b/drivers/net/benet/be.h
@@ -220,6 +220,12 @@ struct be_rx_obj {
220 struct be_rx_page_info page_info_tbl[RX_Q_LEN]; 220 struct be_rx_page_info page_info_tbl[RX_Q_LEN];
221}; 221};
222 222
223struct be_vf_cfg {
224 unsigned char vf_mac_addr[ETH_ALEN];
225 u32 vf_if_handle;
226 u32 vf_pmac_id;
227};
228
223#define BE_NUM_MSIX_VECTORS 2 /* 1 each for Tx and Rx */ 229#define BE_NUM_MSIX_VECTORS 2 /* 1 each for Tx and Rx */
224#define BE_INVALID_PMAC_ID 0xffffffff 230#define BE_INVALID_PMAC_ID 0xffffffff
225struct be_adapter { 231struct be_adapter {
@@ -289,8 +295,7 @@ struct be_adapter {
289 struct completion flash_compl; 295 struct completion flash_compl;
290 296
291 bool sriov_enabled; 297 bool sriov_enabled;
292 u32 vf_if_handle[BE_MAX_VF]; 298 struct be_vf_cfg vf_cfg[BE_MAX_VF];
293 u32 vf_pmac_id[BE_MAX_VF];
294 u8 base_eq_id; 299 u8 base_eq_id;
295 u8 is_virtfn; 300 u8 is_virtfn;
296}; 301};