summaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be.h
diff options
context:
space:
mode:
authorAjit Khaparde <ajitk@serverengines.com>2010-07-23 01:50:34 +0000
committerDavid S. Miller <davem@davemloft.net>2010-07-23 12:40:53 -0700
commit64600ea5f389858e183d3739776f4667265cc77f (patch)
tree48ae1fda8c3a4628438ceba78418e65d2deb7e34 /drivers/net/benet/be.h
parent9cd9000bdee9131ffd2ce92ca6ef9c86467edd25 (diff)
downloadlinux-stable-64600ea5f389858e183d3739776f4667265cc77f.tar.gz
linux-stable-64600ea5f389858e183d3739776f4667265cc77f.tar.bz2
linux-stable-64600ea5f389858e183d3739776f4667265cc77f.zip
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 {
struct be_rx_page_info page_info_tbl[RX_Q_LEN];
};
+struct be_vf_cfg {
+ unsigned char vf_mac_addr[ETH_ALEN];
+ u32 vf_if_handle;
+ u32 vf_pmac_id;
+};
+
#define BE_NUM_MSIX_VECTORS 2 /* 1 each for Tx and Rx */
#define BE_INVALID_PMAC_ID 0xffffffff
struct be_adapter {
@@ -289,8 +295,7 @@ struct be_adapter {
struct completion flash_compl;
bool sriov_enabled;
- u32 vf_if_handle[BE_MAX_VF];
- u32 vf_pmac_id[BE_MAX_VF];
+ struct be_vf_cfg vf_cfg[BE_MAX_VF];
u8 base_eq_id;
u8 is_virtfn;
};