diff options
author | Yuval Mintz <Yuval.Mintz@qlogic.com> | 2014-03-23 20:12:23 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-26 05:07:03 +0400 |
commit | 42f8277f56cf4a9570b1f0fe10a4fec3f48c832a (patch) | |
tree | b67d08a313491f4da5bf72e61fbe3c47dc063ec2 /drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | |
parent | 869f273911dd37ed9086d6ab25ef832d10813ccd (diff) | |
download | linux-42f8277f56cf4a9570b1f0fe10a4fec3f48c832a.tar.xz |
bnx2x: Support mng. request for driver version
This adds support in a new management feature which needs the driver versions
(bnx2x, bnx2fc and bnx2i) loaded for each interface.
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h index 722160940ab9..f33fab6abb95 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h @@ -1413,6 +1413,7 @@ enum sp_rtnl_flag { BNX2X_SP_RTNL_RX_MODE, BNX2X_SP_RTNL_HYPERVISOR_VLAN, BNX2X_SP_RTNL_TX_STOP, + BNX2X_SP_RTNL_GET_DRV_VERSION, }; struct bnx2x_prev_path_list { @@ -1703,6 +1704,10 @@ struct bnx2x { struct bnx2x_slowpath *slowpath; dma_addr_t slowpath_mapping; + /* Mechanism protecting the drv_info_to_mcp */ + struct mutex drv_info_mutex; + bool drv_info_mng_owner; + /* Total number of FW statistics requests */ u8 fw_stats_num; @@ -2535,6 +2540,8 @@ enum { void bnx2x_set_local_cmng(struct bnx2x *bp); +void bnx2x_update_mng_version(struct bnx2x *bp); + #define MCPR_SCRATCH_BASE(bp) \ (CHIP_IS_E1x(bp) ? MCP_REG_MCPR_SCRATCH : MCP_A_REG_MCPR_SCRATCH) |