aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/emulex/benet/be.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
-rw-r--r--drivers/net/ethernet/emulex/benet/be.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h
index 748e870958af..e2dfe3114eb1 100644
--- a/drivers/net/ethernet/emulex/benet/be.h
+++ b/drivers/net/ethernet/emulex/benet/be.h
@@ -389,6 +389,7 @@ struct be_adapter {
389 struct delayed_work work; 389 struct delayed_work work;
390 u16 work_counter; 390 u16 work_counter;
391 391
392 struct delayed_work func_recovery_work;
392 u32 flags; 393 u32 flags;
393 /* Ethtool knobs and info */ 394 /* Ethtool knobs and info */
394 char fw_ver[FW_VER_LEN]; 395 char fw_ver[FW_VER_LEN];
@@ -396,9 +397,10 @@ struct be_adapter {
396 u32 *pmac_id; /* MAC addr handle used by BE card */ 397 u32 *pmac_id; /* MAC addr handle used by BE card */
397 u32 beacon_state; /* for set_phys_id */ 398 u32 beacon_state; /* for set_phys_id */
398 399
399 bool eeh_err; 400 bool eeh_error;
400 bool ue_detected;
401 bool fw_timeout; 401 bool fw_timeout;
402 bool hw_error;
403
402 u32 port_num; 404 u32 port_num;
403 bool promiscuous; 405 bool promiscuous;
404 u32 function_mode; 406 u32 function_mode;
@@ -599,7 +601,19 @@ static inline bool be_multi_rxq(const struct be_adapter *adapter)
599 601
600static inline bool be_error(struct be_adapter *adapter) 602static inline bool be_error(struct be_adapter *adapter)
601{ 603{
602 return adapter->eeh_err || adapter->ue_detected || adapter->fw_timeout; 604 return adapter->eeh_error || adapter->hw_error || adapter->fw_timeout;
605}
606
607static inline bool be_crit_error(struct be_adapter *adapter)
608{
609 return adapter->eeh_error || adapter->hw_error;
610}
611
612static inline void be_clear_all_error(struct be_adapter *adapter)
613{
614 adapter->eeh_error = false;
615 adapter->hw_error = false;
616 adapter->fw_timeout = false;
603} 617}
604 618
605static inline bool be_is_wol_excluded(struct be_adapter *adapter) 619static inline bool be_is_wol_excluded(struct be_adapter *adapter)