diff options
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index 4163980d6bcd..34f162db9f2e 100644 --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h | |||
@@ -350,6 +350,8 @@ struct be_adapter { | |||
350 | u32 beacon_state; /* for set_phys_id */ | 350 | u32 beacon_state; /* for set_phys_id */ |
351 | 351 | ||
352 | bool eeh_err; | 352 | bool eeh_err; |
353 | bool ue_detected; | ||
354 | bool fw_timeout; | ||
353 | u32 port_num; | 355 | u32 port_num; |
354 | bool promiscuous; | 356 | bool promiscuous; |
355 | bool wol; | 357 | bool wol; |
@@ -357,7 +359,6 @@ struct be_adapter { | |||
357 | u32 function_caps; | 359 | u32 function_caps; |
358 | u32 rx_fc; /* Rx flow control */ | 360 | u32 rx_fc; /* Rx flow control */ |
359 | u32 tx_fc; /* Tx flow control */ | 361 | u32 tx_fc; /* Tx flow control */ |
360 | bool ue_detected; | ||
361 | bool stats_cmd_sent; | 362 | bool stats_cmd_sent; |
362 | int link_speed; | 363 | int link_speed; |
363 | u8 port_type; | 364 | u8 port_type; |
@@ -522,6 +523,11 @@ static inline bool be_multi_rxq(const struct be_adapter *adapter) | |||
522 | return adapter->num_rx_qs > 1; | 523 | return adapter->num_rx_qs > 1; |
523 | } | 524 | } |
524 | 525 | ||
526 | static inline bool be_error(struct be_adapter *adapter) | ||
527 | { | ||
528 | return adapter->eeh_err || adapter->ue_detected || adapter->fw_timeout; | ||
529 | } | ||
530 | |||
525 | extern void be_cq_notify(struct be_adapter *adapter, u16 qid, bool arm, | 531 | extern void be_cq_notify(struct be_adapter *adapter, u16 qid, bool arm, |
526 | u16 num_popped); | 532 | u16 num_popped); |
527 | extern void be_link_status_update(struct be_adapter *adapter, u32 link_status); | 533 | extern void be_link_status_update(struct be_adapter *adapter, u32 link_status); |