bfa: common header file changes
Subsystems (2)
PATCH 7/8 bfa: common header file changes
Updates to common header files.
--- drivers/scsi/bfa/include/aen/bfa_aen.h | 50 ++-- drivers/scsi/bfa/include/bfa.h | 49 +++- drivers/scsi/bfa/include/bfa_fcpim.h | 2 +- drivers/scsi/bfa/include/bfa_svc.h | 194 +++++++------ drivers/scsi/bfa/include/bfa_timer.h | 6 +- drivers/scsi/bfa/include/bfi/bfi.h | 31 +- drivers/scsi/bfa/include/bfi/bfi_cbreg.h | 15 + drivers/scsi/bfa/include/bfi/bfi_ctreg.h | 58 +++- drivers/scsi/bfa/include/bfi/bfi_ioc.h | 151 +++++----- drivers/scsi/bfa/include/bfi/bfi_lps.h | 12 +- drivers/scsi/bfa/include/bfi/bfi_pport.h | 172 ++++-------- drivers/scsi/bfa/include/cna/bfa_cna_trcmod.h | 4 + drivers/scsi/bfa/include/cna/cee/bfa_cee.h | 14 +- drivers/scsi/bfa/include/cna/port/bfa_port.h | 70 +++--- drivers/scsi/bfa/include/cna/pstats/ethport_defs.h | 1 - drivers/scsi/bfa/include/cna/pstats/phyport_defs.h | 288 +++++++++---------- drivers/scsi/bfa/include/cs/bfa_log.h | 2 +- drivers/scsi/bfa/include/cs/bfa_plog.h | 9 +- drivers/scsi/bfa/include/cs/bfa_sm.h | 9 + drivers/scsi/bfa/include/defs/bfa_defs_aen.h | 10 + drivers/scsi/bfa/include/defs/bfa_defs_auth.h | 22 ++ drivers/scsi/bfa/include/defs/bfa_defs_cee.h | 32 +-- drivers/scsi/bfa/include/defs/bfa_defs_driver.h | 4 + drivers/scsi/bfa/include/defs/bfa_defs_ethport.h | 15 +- drivers/scsi/bfa/include/defs/bfa_defs_fcport.h | 94 +++++++ drivers/scsi/bfa/include/defs/bfa_defs_im_common.h | 32 --- drivers/scsi/bfa/include/defs/bfa_defs_im_team.h | 72 ----- drivers/scsi/bfa/include/defs/bfa_defs_ioc.h | 5 +- drivers/scsi/bfa/include/defs/bfa_defs_iocfc.h | 12 +- drivers/scsi/bfa/include/defs/bfa_defs_lport.h | 4 +- drivers/scsi/bfa/include/defs/bfa_defs_mfg.h | 109 +++++++- drivers/scsi/bfa/include/defs/bfa_defs_port.h | 16 +- drivers/scsi/bfa/include/defs/bfa_defs_pport.h | 166 +++++++----- drivers/scsi/bfa/include/defs/bfa_defs_rport.h | 4 +- drivers/scsi/bfa/include/defs/bfa_defs_status.h | 21 +- drivers/scsi/bfa/include/defs/bfa_defs_vf.h | 29 +-- drivers/scsi/bfa/include/fcs/bfa_fcs.h | 39 ++-- drivers/scsi/bfa/include/fcs/bfa_fcs_fabric.h | 5 +- drivers/scsi/bfa/include/fcs/bfa_fcs_lport.h | 25 +- drivers/scsi/bfa/include/fcs/bfa_fcs_rport.h | 3 +- drivers/scsi/bfa/include/fcs/bfa_fcs_vport.h | 6 +- drivers/scsi/bfa/include/log/bfa_log_hal.h | 6 + drivers/scsi/bfa/include/log/bfa_log_linux.h | 38 ++- drivers/scsi/bfa/include/protocol/ct.h | 56 ++-- drivers/scsi/bfa/include/protocol/fc.h | 131 +++++----- drivers/scsi/bfa/include/protocol/fc_sp.h | 27 +- drivers/scsi/bfa/include/protocol/fcp.h | 19 +- drivers/scsi/bfa/include/protocol/fdmi.h | 12 +- drivers/scsi/bfa/include/protocol/pcifw.h | 75 ----- drivers/scsi/bfa/include/protocol/scsi.h | 133 +++++----- drivers/scsi/bfa/include/protocol/types.h | 1 - 51 files changed, 1238 insertions(+), 1122 deletions(-) create mode 100644 drivers/scsi/bfa/include/defs/bfa_defs_fcport.h delete mode 100644 drivers/scsi/bfa/include/defs/bfa_defs_im_common.h delete mode 100644 drivers/scsi/bfa/include/defs/bfa_defs_im_team.h delete mode 100644 drivers/scsi/bfa/include/protocol/pcifw.h
drivers/scsi/bfa/include/aen/bfa_aen.h +27 -23
@@ -18,21 +18,24 @@#define __BFA_AEN_H__#include "defs/bfa_defs_aen.h" +#include "defs/bfa_defs_status.h" +#include "cs/bfa_debug.h" -#define BFA_AEN_MAX_ENTRY 512 +#define BFA_AEN_MAX_ENTRY 512 -extern s32 bfa_aen_max_cfg_entry; +extern int bfa_aen_max_cfg_entry;struct bfa_aen_s {void *bfad; -s32 max_entry; -s32 write_index; -s32 read_index; -u32 bfad_num; -u32 seq_num; +int max_entry; +int write_index; +int read_index; +int bfad_num; +int seq_num;void (*aen_cb_notify)(void *bfad);void (*gettimeofday)(struct bfa_timeval_s *tv); -struct bfa_trc_mod_s *trcmod; -struct bfa_aen_entry_s list[BFA_AEN_MAX_ENTRY ];/* Must be the last */ +struct bfa_trc_mod_s *trcmod; +int app_ri[BFA_AEN_MAX_APP ];/* For multiclient support */ +struct bfa_aen_entry_s list[BFA_AEN_MAX_ENTRY ];/* Must be the last */ };
@@ -45,48 +48,49 @@ bfa_aen_set_max_cfg_entry(int max_entry) bfa_aen_max_cfg_entry = max_entry; } -static inline s32 +static inline int bfa_aen_get_max_cfg_entry (void ) {return bfa_aen_max_cfg_entry; } -static inline s32 +static inline int bfa_aen_get_meminfo (void ) {return sizeof (struct bfa_aen_entry_s ) *bfa_aen_get_max_cfg_entry (); } -static inline s32 +static inline int bfa_aen_get_wi (struct bfa_aen_s *aen) {return aen->write_index; } -static inline s32 +static inline int bfa_aen_get_ri (struct bfa_aen_s *aen) {return aen->read_index; } -static inline s32 -bfa_aen_fetch_count (struct bfa_aen_s *aen,s32 read_index) +static inline int +bfa_aen_fetch_count (struct bfa_aen_s *aen,enum bfa_aen_app app_id) { -return ((aen->write_index + aen->max_entry) - read_index) +bfa_assert ((app_id <BFA_AEN_MAX_APP ) && (app_id >= bfa_aen_app_bcu)); +return ((aen->write_index + aen->max_entry) - aen->app_ri[app_id]) % aen->max_entry; } -s32 bfa_aen_init (struct bfa_aen_s *aen,struct bfa_trc_mod_s *trcmod, -void *bfad,u32 inst_id,void (*aen_cb_notify)(void *), +int bfa_aen_init (struct bfa_aen_s *aen,struct bfa_trc_mod_s *trcmod, +void *bfad,int bfad_num,void (*aen_cb_notify)(void *),void (*gettimeofday)(struct bfa_timeval_s *)); -s32 bfa_aen_post (struct bfa_aen_s *aen,enum bfa_aen_category aen_category, +void bfa_aen_post (struct bfa_aen_s *aen,enum bfa_aen_category aen_category,int aen_type,union bfa_aen_data_u *aen_data); -s32 bfa_aen_fetch (struct bfa_aen_s *aen,struct bfa_aen_entry_s *aen_entry, -s32 entry_space,s32 rii,s32 *ri_arr, -s32 ri_arr_cnt); +bfa_status_t bfa_aen_fetch (struct bfa_aen_s *aen, +struct bfa_aen_entry_s *aen_entry, +int entry_req,enum bfa_aen_app app_id,int *entry_ret); -s32 bfa_aen_get_inst (struct bfa_aen_s *aen); +int bfa_aen_get_inst (struct bfa_aen_s *aen);#endif /* __BFA_AEN_H__ */
drivers/scsi/bfa/include/bfa.h +34 -15
101 lines not on this page · raw message
drivers/scsi/bfa/include/bfa_fcpim.h +1 -1
@@ -40,7 +40,7 @@ u16 bfa_fcpim_path_tov_get(struct bfa_s *bfa);void bfa_fcpim_qdepth_set (struct bfa_s *bfa,u16 q_depth);u16 bfa_fcpim_qdepth_get (struct bfa_s *bfa);bfa_status_t bfa_fcpim_get_modstats (struct bfa_s *bfa, -struct bfa_fcpim_stats_s *modstats); +struct bfa_fcpim_stats_s *modstats);bfa_status_t bfa_fcpim_clr_modstats (struct bfa_s *bfa);/*
drivers/scsi/bfa/include/bfa_svc.h +103 -91
296 lines not on this page · raw message
drivers/scsi/bfa/include/bfa_timer.h +3 -3
@@ -30,8 +30,8 @@ typedef void (*bfa_timer_cbfn_t)(void *);struct bfa_timer_s {struct list_head qe;bfa_timer_cbfn_t timercb; -void *arg; -int timeout;/**< in millisecs. */ +void *arg; +int timeout;/**< in millisecs. */ };/**
@@ -41,7 +41,7 @@ struct bfa_timer_mod_s {struct list_head timer_q; }; -#define BFA_TIMER_FREQ 500/**< specified in millisecs */ +#define BFA_TIMER_FREQ 200/**< specified in millisecs */ void bfa_timer_beat (struct bfa_timer_mod_s *mod);void bfa_timer_init (struct bfa_timer_mod_s *mod);
drivers/scsi/bfa/include/bfi/bfi.h +15 -16
@@ -27,14 +27,14 @@* Msg header common to all msgs */ struct bfi_mhdr_s { -u8 msg_class;/* @ref bfi_mclass_t */ -u8 msg_id;/* msg opcode with in the class */ +u8 msg_class;/* @ref bfi_mclass_t */ +u8 msg_id;/* msg opcode with in the class */ union {struct { -u8 rsvd; -u8 lpu_id;/* msg destination */ +u8 rsvd; +u8 lpu_id;/* msg destination */ } h2i; -u16 i2htok;/* token in msgs to host */ +u16 i2htok;/* token in msgs to host */ } mtag; };
@@ -71,11 +71,11 @@ struct bfi_mhdr_s {* SG Flags */ enum { -BFI_SGE_DATA =0 ,/* data address, not last */ +BFI_SGE_DATA =0 ,/* data address, not last */ BFI_SGE_DATA_CPL =1 ,/* data addr, last in current page */ BFI_SGE_DATA_LAST =3 ,/* data address, last */ -BFI_SGE_LINK =2 ,/* link address */ -BFI_SGE_PGDLEN =2 ,/* cumulative data length for page */ +BFI_SGE_LINK =2 ,/* link address */ +BFI_SGE_PGDLEN =2 ,/* cumulative data length for page */ };/**
@@ -83,8 +83,8 @@ enum {*/ union bfi_addr_u {struct { -u32 addr_lo; -u32 addr_hi; +u32 addr_lo; +u32 addr_hi; } a32; };
@@ -93,11 +93,11 @@ union bfi_addr_u {*/ struct bfi_sge_s {#ifdef __BIGENDIAN -u32 flags:2 , +u32 flags:2 , rsvd:2 , sg_len:28 ;#else -u32 sg_len:28 , +u32 sg_len:28 , rsvd:2 , flags:2 ;#endif
@@ -143,10 +143,10 @@ enum bfi_mclass {BFI_MC_IOC =1 ,/* IO Controller (IOC) */ BFI_MC_DIAG =2 ,/* Diagnostic Msgs */ BFI_MC_FLASH =3 ,/* Flash message class */ -BFI_MC_CEE =4 , -BFI_MC_FC_PORT =5 ,/* FC port */ +BFI_MC_CEE =4 ,/* CEE */ +BFI_MC_FCPORT =5 ,/* FC port */ BFI_MC_IOCFC =6 ,/* FC - IO Controller (IOC) */ -BFI_MC_LL =7 ,/* Link Layer */ +BFI_MC_LL =7 ,/* Link Layer */ BFI_MC_UF =8 ,/* Unsolicited frame receive */ BFI_MC_FCXP =9 ,/* FC Transport */ BFI_MC_LPS = 10, /* lport fc login services */
@@ -171,4 +171,3 @@ enum bfi_mclass {#pragma pack()#endif /* __BFI_H__ */ -
drivers/scsi/bfa/include/bfi/bfi_cbreg.h +15 -0
@@ -177,6 +177,21 @@#define __PSS_LMEM_INIT_EN 0x00000100#define __PSS_LPU1_RESET 0x00000002#define __PSS_LPU0_RESET 0x00000001 +#define PSS_ERR_STATUS_REG 0x00018810 +#define __PSS_LMEM1_CORR_ERR 0x00000800 +#define __PSS_LMEM0_CORR_ERR 0x00000400 +#define __PSS_LMEM1_UNCORR_ERR 0x00000200 +#define __PSS_LMEM0_UNCORR_ERR 0x00000100 +#define __PSS_BAL_PERR 0x00000080 +#define __PSS_DIP_IF_ERR 0x00000040 +#define __PSS_IOH_IF_ERR 0x00000020 +#define __PSS_TDS_IF_ERR 0x00000010 +#define __PSS_RDS_IF_ERR 0x00000008 +#define __PSS_SGM_IF_ERR 0x00000004 +#define __PSS_LPU1_RAM_ERR 0x00000002 +#define __PSS_LPU0_RAM_ERR 0x00000001 +#define ERR_SET_REG 0x00018818 +#define __PSS_ERR_STATUS_SET 0x00000fff/*
drivers/scsi/bfa/include/bfi/bfi_ctreg.h +42 -16
83 lines not on this page · raw message
drivers/scsi/bfa/include/bfi/bfi_ioc.h +75 -76
222 lines not on this page · raw message
drivers/scsi/bfa/include/bfi/bfi_lps.h +10 -2
@@ -30,6 +30,7 @@ enum bfi_lps_h2i_msgs {enum bfi_lps_i2h_msgs {BFI_LPS_H2I_LOGIN_RSP =BFA_I2HM (1 ),BFI_LPS_H2I_LOGOUT_RSP =BFA_I2HM (2 ), +BFI_LPS_H2I_CVL_EVENT =BFA_I2HM (3 ), };struct bfi_lps_login_req_s {
@@ -57,8 +58,8 @@ struct bfi_lps_login_rsp_s {u8 npiv_en; u32 lp_pid:24; u32 auth_req:8; -mac_t lp_mac; -mac_t fcf_mac; +struct mac_s lp_mac; +struct mac_s fcf_mac;u8 ext_status;u8 brcd_switch;/* attached peer is brcd switch */ };
@@ -77,6 +78,12 @@ struct bfi_lps_logout_rsp_s {u8 rsvd[2 ]; }; +struct bfi_lps_cvl_event_s { +struct bfi_mhdr_s mh;/* common msg header */ +u8 lp_tag; +u8 rsvd[3 ]; +}; +union bfi_lps_h2i_msg_u {struct bfi_mhdr_s *msg;struct bfi_lps_login_req_s *login_req;
@@ -87,6 +94,7 @@ union bfi_lps_i2h_msg_u {struct bfi_msg_s *msg;struct bfi_lps_login_rsp_s *login_rsp;struct bfi_lps_logout_rsp_s *logout_rsp; +struct bfi_lps_cvl_event_s *cvl_event; };#pragma pack()
drivers/scsi/bfa/include/bfi/bfi_pport.h +53 -119
216 lines not on this page · raw message
drivers/scsi/bfa/include/cna/bfa_cna_trcmod.h +4 -0
@@ -31,6 +31,10 @@enum {BFA_TRC_CNA_CEE =1 ,BFA_TRC_CNA_PORT =2 , +BFA_TRC_CNA_IOC =3 , +BFA_TRC_CNA_DIAG =4 , +BFA_TRC_CNA_IOC_CB =5 , +BFA_TRC_CNA_IOC_CT =6 , };#endif /* __BFA_CNA_TRCMOD_H__ */
drivers/scsi/bfa/include/cna/cee/bfa_cee.h +6 -8
@@ -61,17 +61,15 @@ struct bfa_cee_s {u32 bfa_cee_meminfo (void );void bfa_cee_mem_claim (struct bfa_cee_s *cee,u8 *dma_kva, -u64 dma_pa); +u64 dma_pa);void bfa_cee_attach (struct bfa_cee_s *cee,struct bfa_ioc_s *ioc,void *dev, -struct bfa_trc_mod_s *trcmod, -struct bfa_log_mod_s *logmod); +struct bfa_trc_mod_s *trcmod,struct bfa_log_mod_s *logmod);void bfa_cee_detach (struct bfa_cee_s *cee);bfa_status_t bfa_cee_get_attr (struct bfa_cee_s *cee, -struct bfa_cee_attr_s *attr, -bfa_cee_get_attr_cbfn_t cbfn,void *cbarg); +struct bfa_cee_attr_s *attr,bfa_cee_get_attr_cbfn_t cbfn,void *cbarg);bfa_status_t bfa_cee_get_stats (struct bfa_cee_s *cee, -struct bfa_cee_stats_s *stats, -bfa_cee_get_stats_cbfn_t cbfn,void *cbarg); +struct bfa_cee_stats_s *stats,bfa_cee_get_stats_cbfn_t cbfn,void *cbarg);bfa_status_t bfa_cee_reset_stats (struct bfa_cee_s *cee, -bfa_cee_reset_stats_cbfn_t cbfn,void *cbarg); +bfa_cee_reset_stats_cbfn_t cbfn,void *cbarg); +#endif /* __BFA_CEE_H__ */
drivers/scsi/bfa/include/cna/port/bfa_port.h +35 -35
82 lines not on this page · raw message
drivers/scsi/bfa/include/cna/pstats/ethport_defs.h +0 -1
@@ -27,7 +27,6 @@ struct bnad_drv_stats {u64 udpcsum_offload;u64 csum_help;u64 csum_help_err; -u64 hw_stats_updates;u64 netif_rx_schedule;u64 netif_rx_complete;
drivers/scsi/bfa/include/cna/pstats/phyport_defs.h +136 -152
335 lines not on this page · raw message
drivers/scsi/bfa/include/cs/bfa_log.h +1 -1
@@ -157,7 +157,7 @@ typedef void (*bfa_log_cb_t)(struct bfa_log_mod_s *log_mod, u32 msg_id,struct bfa_log_mod_s { -char instance_info[16 ];/* instance info */ +char instance_info[BFA_STRING_32 ];/* instance info */ int log_level[BFA_LOG_MODULE_ID_MAX +1 ];/* log level for modules */ bfa_log_cb_t cbfn;/* callback function */
drivers/scsi/bfa/include/cs/bfa_plog.h +7 -2
@@ -80,7 +80,8 @@ enum bfa_plog_mid {BFA_PL_MID_HAL_FCXP =4 ,BFA_PL_MID_HAL_UF =5 ,BFA_PL_MID_FCS =6 , - BFA_PL_MID_MAX = 7 +BFA_PL_MID_LPS =7 , + BFA_PL_MID_MAX = 8 };#define BFA_PL_MID_STRLEN 8
@@ -118,7 +119,11 @@ enum bfa_plog_eid {BFA_PL_EID_RSCN =17 ,BFA_PL_EID_DEBUG =18 ,BFA_PL_EID_MISC =19 , - BFA_PL_EID_MAX = 20 +BFA_PL_EID_FIP_FCF_DISC =20 , +BFA_PL_EID_FIP_FCF_CVL =21 , +BFA_PL_EID_LOGIN =22 , +BFA_PL_EID_LOGO =23 , + BFA_PL_EID_MAX = 24 };#define BFA_PL_ENAME_STRLEN 8
drivers/scsi/bfa/include/cs/bfa_sm.h +9 -0
@@ -24,6 +24,15 @@typedef void (*bfa_sm_t )(void *sm,int event); +/** +* oc - object class eg. bfa_ioc +* st - state, eg. reset +* otype - object type, eg. struct bfa_ioc_s +* etype - object type, eg. enum ioc_event +*/ +#define bfa_sm_state_decl (oc, st, otype, etype) \ + static void oc ## _sm_ ## st(otype * fsm, etype event) +#define bfa_sm_set_state (_sm, _state) ((_sm)->sm = (bfa_sm_t)(_state))#define bfa_sm_send_event (_sm, _event) ((_sm)->sm((_sm), (_event)))#define bfa_sm_get_state (_sm) ((_sm)->sm)
drivers/scsi/bfa/include/defs/bfa_defs_aen.h +10 -0
@@ -30,6 +30,16 @@#include <defs/bfa_defs_audit.h> #include <defs/bfa_defs_ethport.h> +#define BFA_AEN_MAX_APP 5 + +enum bfa_aen_app { + bfa_aen_app_bcu =0 ,/* No thread for bcu */ + bfa_aen_app_hcm =1 , + bfa_aen_app_cim =2 , + bfa_aen_app_snia =3 , + bfa_aen_app_test =4 ,/* To be removed after unit test */ +}; +enum bfa_aen_category {BFA_AEN_CAT_ADAPTER =1 ,BFA_AEN_CAT_PORT =2 ,
drivers/scsi/bfa/include/defs/bfa_defs_auth.h +22 -0
@@ -23,6 +23,7 @@#define PRIVATE_KEY 19009#define KEY_LEN 32399#define BFA_AUTH_SECRET_STRING_LEN 256 +#define BFA_AUTH_FAIL_NO_PASSWORD 0xFE#define BFA_AUTH_FAIL_TIMEOUT 0xFF/**
@@ -41,6 +42,27 @@ enum bfa_auth_status { BFA_AUTH_STATUS_UNKNOWN = 9, /* authentication status unknown */ }; +enum bfa_auth_rej_code { +BFA_AUTH_RJT_CODE_AUTH_FAILURE =1 ,/* auth failure */ +BFA_AUTH_RJT_CODE_LOGICAL_ERR =2 ,/* logical error */ +}; + +/** +* Authentication reject codes +*/ +enum bfa_auth_rej_code_exp { +BFA_AUTH_MECH_NOT_USABLE =1 ,/* auth. mechanism not usable */ +BFA_AUTH_DH_GROUP_NOT_USABLE =2 ,/* DH Group not usable */ +BFA_AUTH_HASH_FUNC_NOT_USABLE =3 ,/* hash Function not usable */ +BFA_AUTH_AUTH_XACT_STARTED =4 ,/* auth xact started */ +BFA_AUTH_AUTH_FAILED =5 ,/* auth failed */ +BFA_AUTH_INCORRECT_PLD =6 ,/* incorrect payload */ +BFA_AUTH_INCORRECT_PROTO_MSG =7 ,/* incorrect proto msg */ +BFA_AUTH_RESTART_AUTH_PROTO =8 ,/* restart auth protocol */ +BFA_AUTH_AUTH_CONCAT_NOT_SUPP =9 ,/* auth concat not supported */ +BFA_AUTH_PROTO_VER_NOT_SUPP =10 ,/* proto version not supported */ +}; +struct auth_proto_stats_s {u32 auth_rjts;u32 auth_negs;
drivers/scsi/bfa/include/defs/bfa_defs_cee.h +14 -18
@@ -28,10 +28,6 @@#define BFA_CEE_LLDP_MAX_STRING_LEN (128) - -/* FIXME: this is coming from the protocol spec. Can the host & apps share the -protocol .h files ? -*/ #define BFA_CEE_LLDP_SYS_CAP_OTHER 0x0001#define BFA_CEE_LLDP_SYS_CAP_REPEATER 0x0002#define BFA_CEE_LLDP_SYS_CAP_MAC_BRIDGE 0x0004
@@ -40,9 +36,9 @@#define BFA_CEE_LLDP_SYS_CAP_TELEPHONE 0x0020#define BFA_CEE_LLDP_SYS_CAP_DOCSIS_CD 0x0040#define BFA_CEE_LLDP_SYS_CAP_STATION 0x0080 -#define BFA_CEE_LLDP_SYS_CAP_CVLAN 0x0100 -#define BFA_CEE_LLDP_SYS_CAP_SVLAN 0x0200 -#define BFA_CEE_LLDP_SYS_CAP_TPMR 0x0400 +#define BFA_CEE_LLDP_SYS_CAP_CVLAN 0x0100 +#define BFA_CEE_LLDP_SYS_CAP_SVLAN 0x0200 +#define BFA_CEE_LLDP_SYS_CAP_TPMR 0x0400/* LLDP string type */
@@ -72,8 +68,7 @@ enum bfa_cee_dcbx_version_e { };enum bfa_cee_lls_e { -CEE_LLS_DOWN_NO_TLV =0 ,/* LLS is down because the TLV not sent by -* the peer */ +CEE_LLS_DOWN_NO_TLV =0 ,/* LLS is down bcoz TLV not sent by the peer */ CEE_LLS_DOWN =1 ,/* LLS is down as advertised by the peer */ CEE_LLS_UP =2 , };
@@ -83,20 +78,20 @@ struct bfa_cee_dcbx_cfg_s {u8 pgid[8 ];u8 pg_percentage[8 ];u8 pfc_enabled;/* bitmap of priorties with PFC enabled */ -u8 fcoe_user_priority;/* bitmap of priorities used for FcoE -* traffic */ -u8 dcbx_version;/* operating version:CEE or preCEE */ -u8 lls_fcoe;/* FCoE Logical Link Status */ -u8 lls_lan;/* LAN Logical Link Status */ +u8 fcoe_user_priority;/* bitmap of priorities for FcoE traffic */ +u8 dcbx_version;/* operating version:CEE or preCEE */ +u8 lls_fcoe;/* FCoE Logical Link Status */ +u8 lls_lan;/* LAN Logical Link Status */ u8 rsvd[3 ]; };/* CEE status */ /* Making this to tri-state for the benefit of port list command */ enum bfa_cee_status_e { -CEE_PHY_DOWN =0 , +CEE_UP =0 ,CEE_PHY_UP =1 , -CEE_UP =2 , +CEE_LOOPBACK =2 , +CEE_PHY_DOWN =3 , };/* CEE Query */
@@ -105,9 +100,10 @@ struct bfa_cee_attr_s {u8 error_reason;struct bfa_cee_lldp_cfg_s lldp_remote;struct bfa_cee_dcbx_cfg_s dcbx_remote; -mac_t src_mac; +struct mac_s src_mac;u8 link_speed; -u8 filler[3 ]; +u8 nw_priority; +u8 filler[2 ]; };
drivers/scsi/bfa/include/defs/bfa_defs_driver.h +4 -0
@@ -34,6 +34,10 @@u64 output_req;u64 input_words;u64 output_words; +u16 link_up; +u16 link_down; +u16 bootlun_online; +u16 bootlun_offline; } bfa_driver_stats_t;
drivers/scsi/bfa/include/defs/bfa_defs_ethport.h +12 -3
@@ -19,6 +19,7 @@#define __BFA_DEFS_ETHPORT_H__#include <defs/bfa_defs_status.h> +#include <defs/bfa_defs_port.h> #include <protocol/types.h> #include <cna/pstats/phyport_defs.h> #include <cna/pstats/ethport_defs.h>
@@ -86,13 +87,21 @@ enum bfa_ethport_aen_event {BFA_ETHPORT_AEN_LINKUP =1 ,/* Base Port Ethernet link up event */ BFA_ETHPORT_AEN_LINKDOWN =2 ,/* Base Port Ethernet link down event */ BFA_ETHPORT_AEN_ENABLE =3 ,/* Base Port Ethernet link enable event */ - BFA_ETHPORT_AEN_DISABLE = 4, /* Base Port Ethernet link disable - * event */ + BFA_ETHPORT_AEN_DISABLE = 4,/* Base Port Ethernet link disable event*/ };struct bfa_ethport_aen_data_s { -mac_t mac;/* MAC address of the physical port */ +struct mac_s mac;/* MAC address of the physical port */ }; +/** +* Ethernet port attribute values. +*/ +struct bfa_ethport_attr_s { +u32 mtu;/* maximum transfer unit */ +enum bfa_pport_speed speed_supported;/* supported speeds */ +enum bfa_pport_states port_state;/* current port state */ +enum bfa_pport_speed speed;/* current speed */ +};#endif /* __BFA_DEFS_ETHPORT_H__ */
drivers/scsi/bfa/include/defs/bfa_defs_fcport.h new file +94 -0
94 lines not on this page · raw message
drivers/scsi/bfa/include/defs/bfa_defs_im_common.h deleted +0 -32
@@ -1,32 +0,0 @@ -/* -* Copyright (c) 2005-2009 Brocade Communications Systems, Inc. -* All rights reserved -* www.brocade.com -* -* Linux driver for Brocade Fibre Channel Host Bus Adapter. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License (GPL) Version 2 as -* published by the Free Software Foundation -* -* This program is distributed in the hope that it will be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -*/ - -#ifndef __BFA_DEFS_IM_COMMON_H__ -#define __BFA_DEFS_IM_COMMON_H__ - -#define BFA_ADAPTER_NAME_LEN 256 -#define BFA_ADAPTER_GUID_LEN 256 -#define RESERVED_VLAN_NAME L"PORT VLAN" -#define PASSTHRU_VLAN_NAME L"PASSTHRU VLAN" - -u64 tx_pkt_cnt; -u64 rx_pkt_cnt; -u32 duration; - u8 status; -} bfa_im_stats_t, *pbfa_im_stats_t; - -#endif /* __BFA_DEFS_IM_COMMON_H__ */
drivers/scsi/bfa/include/defs/bfa_defs_im_team.h deleted +0 -72
72 lines not on this page · raw message
drivers/scsi/bfa/include/defs/bfa_defs_ioc.h +3 -2
@@ -126,6 +126,7 @@ struct bfa_ioc_attr_s {struct bfa_ioc_driver_attr_s driver_attr;/* driver attr */ struct bfa_ioc_pci_attr_s pci_attr;u8 port_id;/* port number */ +u8 rsvd[7 ];/* 64bit align */ };/**
@@ -143,9 +144,9 @@ enum bfa_ioc_aen_event {* BFA IOC level event data, now just a place holder */ struct bfa_ioc_aen_data_s { -enum bfa_ioc_type_e ioc_type;wwn_t pwwn; -mac_t mac; +s16 ioc_type; +struct mac_s mac; };#endif /* __BFA_DEFS_IOC_H__ */
drivers/scsi/bfa/include/defs/bfa_defs_iocfc.h +10 -2
@@ -26,6 +26,8 @@#define BFA_IOCFC_INTR_DELAY 1125#define BFA_IOCFC_INTR_LATENCY 225 +#define BFA_IOCFCOE_INTR_DELAY 25 +#define BFA_IOCFCOE_INTR_LATENCY 5/** * Interrupt coalescing configuration.
@@ -50,7 +52,7 @@ struct bfa_iocfc_fwcfg_s {u16 num_fcxp_reqs;/* unassisted FC exchanges */ u16 num_uf_bufs;/* unsolicited recv buffers */ u8 num_cqs; -u8 rsvd; +u8 rsvd[5 ]; };struct bfa_iocfc_drvcfg_s {
@@ -224,18 +226,24 @@ struct bfa_fw_port_physm_stats_s {struct bfa_fw_fip_stats_s { +u32 vlan_req;/* vlan discovery requests */ +u32 vlan_notify;/* vlan notifications */ +u32 vlan_err;/* vlan response error */ +u32 vlan_timeouts;/* vlan disvoery timeouts */ +u32 vlan_invalids;/* invalid vlan in discovery advert. */ u32 disc_req;/* Discovery solicit requests */ u32 disc_rsp;/* Discovery solicit response */ u32 disc_err;/* Discovery advt. parse errors */ u32 disc_unsol;/* Discovery unsolicited */ u32 disc_timeouts;/* Discovery timeouts */ +u32 disc_fcf_unavail;/* Discovery FCF Not Avail. */ u32 linksvc_unsupp;/* Unsupported link service req */ u32 linksvc_err;/* Parse error in link service req */ u32 logo_req;/* Number of FIP logos received */ u32 clrvlink_req;/* Clear virtual link req */ u32 op_unsupp;/* Unsupported FIP operation */ u32 untagged;/* Untagged frames (ignored) */ -u32 rsvd; +u32 invalid_version;/* Invalid FIP version */ };
drivers/scsi/bfa/include/defs/bfa_defs_lport.h +2 -2
@@ -59,8 +59,8 @@ enum bfa_lport_aen_event {*/ struct bfa_lport_aen_data_s {u16 vf_id;/* vf_id of this logical port */ -u16 rsvd; -enum bfa_port_role roles;/* Logical port mode,IM/TM/IP etc */ +s16 roles;/* Logical port mode,IM/TM/IP etc */ +u32 rsvd;wwn_t ppwwn;/* WWN of its physical port */ wwn_t lpwwn;/* WWN of this logical port */ };
drivers/scsi/bfa/include/defs/bfa_defs_mfg.h +96 -13
132 lines not on this page · raw message
drivers/scsi/bfa/include/defs/bfa_defs_port.h +9 -7
@@ -185,6 +185,8 @@ struct bfa_port_attr_s {wwn_t fabric_name;/* attached switch's nwwn */ u8 fabric_ip_addr[BFA_FCS_FABRIC_IPADDR_SZ ];/* attached * fabric's ip addr */ +struct mac_s fpma_mac;/* Lport's FPMA Mac address */ +u16 authfail;/* auth failed state */ };/**
@@ -218,8 +220,7 @@ enum bfa_port_aen_event {BFA_PORT_AEN_AUTH_OFF =10 ,/* Physical Port auth fail event */ BFA_PORT_AEN_DISCONNECT =11 ,/* Physical Port disconnect event */ BFA_PORT_AEN_QOS_NEG =12 ,/* Base Port QOS negotiation event */ -BFA_PORT_AEN_FABRIC_NAME_CHANGE =13 ,/* Fabric Name/WWN change -* event */ +BFA_PORT_AEN_FABRIC_NAME_CHANGE =13 ,/* Fabric Name/WWN change event*/ BFA_PORT_AEN_SFP_ACCESS_ERROR =14 ,/* SFP read error event */ BFA_PORT_AEN_SFP_UNSUPPORT = 15, /* Unsupported SFP event */ };
@@ -232,14 +233,15 @@ enum bfa_port_aen_sfp_pom { };struct bfa_port_aen_data_s { -enum bfa_ioc_type_e ioc_type;wwn_t pwwn;/* WWN of the physical port */ wwn_t fwwn;/* WWN of the fabric port */ -mac_t mac;/* MAC addres of the ethernet port, +s32 phy_port_num;/*! For SFP related events */ +s16 ioc_type; +s16 level;/* Only transitions will +* be informed */ +struct mac_s mac;/* MAC address of the ethernet port, * applicable to CNA port only */ -int phy_port_num;/*! For SFP related events */ -enum bfa_port_aen_sfp_pom level;/* Only transitions will -* be informed */ +s16 rsvd; };#endif /* __BFA_DEFS_PORT_H__ */
drivers/scsi/bfa/include/defs/bfa_defs_pport.h +95 -71
219 lines not on this page · raw message
drivers/scsi/bfa/include/defs/bfa_defs_rport.h +2 -2
@@ -146,8 +146,8 @@ struct bfa_rport_qos_attr_s {* FCS remote port attributes returned in queries */ struct bfa_rport_attr_s { -wwn_t nwwn;/* node wwn */ -wwn_t pwwn;/* port wwn */ +wwn_t nwwn;/* node wwn */ +wwn_t pwwn;/* port wwn */ enum fc_cos cos_supported;/* supported class of services */ u32 pid;/* port ID */ u32 df_sz;/* Max payload size */
drivers/scsi/bfa/include/defs/bfa_defs_status.h +15 -6
@@ -178,10 +178,11 @@ enum bfa_status {BFA_STATUS_IM_DUP_TEAM_NAME =113 ,/* Given team name already * exists */ BFA_STATUS_IM_ADAPT_ALREADY_IN_TEAM =114 ,/* Given adapter is part -* of another team */ +* of another team or VLANS +* exist */ BFA_STATUS_IM_ADAPT_HAS_VLANS =115 ,/* Adapter has VLANs configured. -* Delete all VLANs before -* creating team */ +* Delete all VLANs to become part +* of team */ BFA_STATUS_IM_PVID_MISMATCH =116 ,/* Mismatching PVIDs configured * for adapters */ BFA_STATUS_IM_LINK_SPEED_MISMATCH = 117, /* Mismatching link speeds
@@ -213,7 +214,8 @@ enum bfa_status {* loaded */ BFA_STATUS_CARD_TYPE_MISMATCH =131 ,/* Card type mismatch */ BFA_STATUS_BAD_ASICBLK =132 ,/* Bad ASIC block */ -BFA_STATUS_NO_DRIVER =133 ,/* Storage/Ethernet driver not loaded */ +BFA_STATUS_NO_DRIVER =133 ,/* Brocade adapter/driver not installed +* or loaded */ BFA_STATUS_INVALID_MAC =134 ,/* Invalid mac address */ BFA_STATUS_IM_NO_VLAN =135 ,/* No VLANs configured on the adapter */ BFA_STATUS_IM_ETH_LB_FAILED = 136, /* Ethernet loopback test failed */
@@ -228,8 +230,7 @@ enum bfa_status {BFA_STATUS_IM_GET_INETCFG_FAILED =142 ,/* Acquiring Network Subsytem * handle Failed. Please try * after some time */ -BFA_STATUS_IM_NOT_BOUND =143 ,/* Brocade 10G Ethernet Service is not -* Enabled on this port */ +BFA_STATUS_IM_NOT_BOUND =143 ,/* IM driver is not active */ BFA_STATUS_INSUFFICIENT_PERMS = 144, /* User doesn't have sufficient* permissions to execute the BCU * application */
@@ -242,6 +243,14 @@ enum bfa_status {* failed */ BFA_STATUS_IM_UNBIND_FAILED =149 ,/* ! < IM Driver unbind operation * failed */ +BFA_STATUS_IM_PORT_IN_TEAM =150 ,/* Port is already part of the +* team */ +BFA_STATUS_IM_VLAN_NOT_FOUND =151 ,/* VLAN ID doesn't exists */ +BFA_STATUS_IM_TEAM_NOT_FOUND =152 ,/* Teaming configuration doesn't +* exists */ +BFA_STATUS_IM_TEAM_CFG_NOT_ALLOWED =153 ,/* Given settings are not +* allowed for the current +* Teaming mode */ BFA_STATUS_MAX_VAL /* Unknown error code */ };#define bfa_status_t enum bfa_status
drivers/scsi/bfa/include/defs/bfa_defs_vf.h +12 -17
@@ -40,26 +40,21 @@ enum bfa_vf_state {* VF statistics */ struct bfa_vf_stats_s { -u32 flogi_sent;/* Num FLOGIs sent */ -u32 flogi_rsp_err;/* FLOGI response errors */ -u32 flogi_acc_err;/* FLOGI accept errors */ -u32 flogi_accepts;/* FLOGI accepts received */ -u32 flogi_rejects;/* FLOGI rejects received */ +u32 flogi_sent;/* Num FLOGIs sent */ +u32 flogi_rsp_err;/* FLOGI response errors */ +u32 flogi_acc_err;/* FLOGI accept errors */ +u32 flogi_accepts;/* FLOGI accepts received */ +u32 flogi_rejects;/* FLOGI rejects received */ u32 flogi_unknown_rsp;/* Unknown responses for FLOGI */ -u32 flogi_alloc_wait;/* Allocation waits prior to -* sending FLOGI -*/ +u32 flogi_alloc_wait;/* Allocation wait +* prior to sending FLOGI */ u32 flogi_rcvd;/* FLOGIs received */ u32 flogi_rejected;/* Incoming FLOGIs rejected */ -u32 fabric_onlines;/* Internal fabric online -* notification sent to other -* modules -*/ -u32 fabric_offlines;/* Internal fabric offline -* notification sent to other -* modules -*/ -u32 resvd; +u32 fabric_onlines;/* Internal fabric online notification +* sent to other modules */ +u32 fabric_offlines;/* Internal fabric offline notification +* sent to other modules */ +u32 resvd;/* padding for 64 bit alignment */ };/**
drivers/scsi/bfa/include/fcs/bfa_fcs.h +21 -18
@@ -24,50 +24,53 @@#include <bfa.h> #include <fcs/bfa_fcs_fabric.h> -#define BFA_FCS_OS_STR_LEN 64 +#define BFA_FCS_OS_STR_LEN 64struct bfa_fcs_stats_s {struct { -u32 untagged;/* untagged receive frames */ -u32 tagged;/* tagged receive frames */ -u32 vfid_unknown;/* VF id is unknown */ +u32 untagged;/* untagged receive frames */ +u32 tagged;/* tagged receive frames */ +u32 vfid_unknown;/* VF id is unknown */ } uf; };struct bfa_fcs_driver_info_s { -u8 version[BFA_VERSION_LEN ];/* Driver Version */ -u8 host_machine_name[BFA_FCS_OS_STR_LEN ]; -u8 host_os_name[BFA_FCS_OS_STR_LEN ];/* OS name and version */ -u8 host_os_patch[BFA_FCS_OS_STR_LEN ];/* patch or service pack */ -u8 os_device_name[BFA_FCS_OS_STR_LEN ];/* Driver Device Name */ +u8 version[BFA_VERSION_LEN ];/* Driver Version */ +u8 host_machine_name[BFA_FCS_OS_STR_LEN ]; +u8 host_os_name[BFA_FCS_OS_STR_LEN ];/* OS name and version */ +u8 host_os_patch[BFA_FCS_OS_STR_LEN ];/* patch or service pack */ +u8 os_device_name[BFA_FCS_OS_STR_LEN ];/* Driver Device Name */ };struct bfa_fcs_s { -struct bfa_s *bfa;/* corresponding BFA bfa instance */ -struct bfad_s *bfad;/* corresponding BDA driver instance */ +struct bfa_s *bfa;/* corresponding BFA bfa instance */ +struct bfad_s *bfad;/* corresponding BDA driver instance */ struct bfa_log_mod_s *logm;/* driver logging module instance */ struct bfa_trc_mod_s *trcmod;/* tracing module */ struct bfa_aen_s *aen;/* aen component */ -bfa_boolean_t vf_enabled;/* VF mode is enabled */ +bfa_boolean_t vf_enabled;/* VF mode is enabled */ +bfa_boolean_t fdmi_enabled;/* FDMI is enabled */ bfa_boolean_t min_cfg;/* min cfg enabled/disabled */ -u16 port_vfid;/* port default VF ID */ +u16 port_vfid;/* port default VF ID */ struct bfa_fcs_driver_info_s driver_info;struct bfa_fcs_fabric_s fabric;/* base fabric state machine */ struct bfa_fcs_stats_s stats;/* FCS statistics */ -struct bfa_wc_s wc;/* waiting counter */ +struct bfa_wc_s wc;/* waiting counter */ };/* * bfa fcs API functions */ -void bfa_fcs_init (struct bfa_fcs_s *fcs,struct bfa_s *bfa,struct bfad_s *bfad, -bfa_boolean_t min_cfg); +void bfa_fcs_attach (struct bfa_fcs_s *fcs,struct bfa_s *bfa, +struct bfad_s *bfad,bfa_boolean_t min_cfg); +void bfa_fcs_init (struct bfa_fcs_s *fcs);void bfa_fcs_driver_info_init (struct bfa_fcs_s *fcs, -struct bfa_fcs_driver_info_s *driver_info); +struct bfa_fcs_driver_info_s *driver_info); +void bfa_fcs_set_fdmi_param (struct bfa_fcs_s *fcs,bfa_boolean_t fdmi_enable);void bfa_fcs_exit (struct bfa_fcs_s *fcs);void bfa_fcs_trc_init (struct bfa_fcs_s *fcs,struct bfa_trc_mod_s *trcmod);void bfa_fcs_log_init (struct bfa_fcs_s *fcs,struct bfa_log_mod_s *logmod);void bfa_fcs_aen_init (struct bfa_fcs_s *fcs,struct bfa_aen_s *aen); -void bfa_fcs_start (struct bfa_fcs_s *fcs); +void bfa_fcs_start (struct bfa_fcs_s *fcs);#endif /* __BFA_FCS_H__ */
drivers/scsi/bfa/include/fcs/bfa_fcs_fabric.h +2 -3
@@ -70,9 +70,8 @@ struct bfa_fcs_fabric_s {struct bfa_wc_s wc;/* wait counter for delete */ struct bfa_vf_stats_s stats;/* fabric/vf stats */ struct bfa_lps_s *lps;/* lport login services */ -u8 fabric_ip_addr[BFA_FCS_FABRIC_IPADDR_SZ ];/* attached -* fabric's ip addr -*/ +u8 fabric_ip_addr[BFA_FCS_FABRIC_IPADDR_SZ ]; +/* attached fabric's ip addr */ };#define bfa_fcs_fabric_npiv_capable (__f) ((__f)->is_npiv)
drivers/scsi/bfa/include/fcs/bfa_fcs_lport.h +10 -15
@@ -35,13 +35,6 @@ struct bfa_fcs_fabric_s;/* * @todo : need to move to a global config file. -* Maximum Vports supported per physical port or vf. -*/ -#define BFA_FCS_MAX_VPORTS_SUPP_CB 255 -#define BFA_FCS_MAX_VPORTS_SUPP_CT 191 - -/* -* @todo : need to move to a global config file. * Maximum Rports supported per port (physical/logical). */ #define BFA_FCS_MAX_RPORTS_SUPP 256/* @todo : tentative value */
@@ -125,13 +118,13 @@ union bfa_fcs_port_topo_u {struct bfa_fcs_port_s {struct list_head qe;/* used by port/vport */ bfa_sm_t sm;/* state machine */ -struct bfa_fcs_fabric_s *fabric;/* parent fabric */ -struct bfa_port_cfg_s port_cfg;/* port configuration */ +struct bfa_fcs_fabric_s *fabric;/* parent fabric */ +struct bfa_port_cfg_s port_cfg;/* port configuration */ struct bfa_timer_s link_timer;/* timer for link offline */ -u32 pid:24 ;/* FC address */ -u8 lp_tag;/* lport tag */ -u16 num_rports;/* Num of r-ports */ -struct list_head rport_q;/* queue of discovered r-ports */ +u32 pid:24 ;/* FC address */ +u8 lp_tag;/* lport tag */ +u16 num_rports;/* Num of r-ports */ +struct list_head rport_q;/* queue of discovered r-ports */ struct bfa_fcs_s *fcs;/* FCS instance */ union bfa_fcs_port_topo_u port_topo;/* fabric/loop/n2n details */ struct bfad_port_s *bfad_port;/* driver peer instance */
@@ -200,6 +193,8 @@ bfa_fcs_port_get_drvport(struct bfa_fcs_port_s *port)/** * bfa fcs port public functions */ + +bfa_boolean_t bfa_fcs_port_is_online (struct bfa_fcs_port_s *port);void bfa_fcs_cfg_base_port (struct bfa_fcs_s *fcs,struct bfa_port_cfg_s *port_cfg);struct bfa_fcs_port_s *bfa_fcs_get_base_port (struct bfa_fcs_s *fcs);
@@ -219,8 +214,8 @@ void bfa_fcs_port_get_attr(struct bfa_fcs_port_s *port,void bfa_fcs_port_get_stats (struct bfa_fcs_port_s *fcs_port,struct bfa_port_stats_s *port_stats);void bfa_fcs_port_clear_stats (struct bfa_fcs_port_s *fcs_port); -enum bfa_pport_speed bfa_fcs_port_get_rport_max_speed ( -struct bfa_fcs_port_s *port); +enum bfa_pport_speed +bfa_fcs_port_get_rport_max_speed (struct bfa_fcs_port_s *port);void bfa_fcs_port_enable_ipfc_roles (struct bfa_fcs_port_s *fcs_port);void bfa_fcs_port_disable_ipfc_roles (struct bfa_fcs_port_s *fcs_port);
drivers/scsi/bfa/include/fcs/bfa_fcs_rport.h +2 -1
@@ -99,6 +99,7 @@ struct bfa_fcs_rport_s *bfa_fcs_rport_lookup(struct bfa_fcs_port_s *port,struct bfa_fcs_rport_s *bfa_fcs_rport_lookup_by_nwwn (struct bfa_fcs_port_s *port,wwn_t rnwwn);void bfa_fcs_rport_set_del_timeout (u8 rport_tmo); +void bfa_fcs_rport_set_speed (struct bfa_fcs_rport_s *rport, -enum bfa_pport_speed speed); +enum bfa_pport_speed speed);#endif /* __BFA_FCS_RPORT_H__ */
drivers/scsi/bfa/include/fcs/bfa_fcs_vport.h +3 -3
@@ -29,13 +29,13 @@#include <fcb/bfa_fcb_vport.h> struct bfa_fcs_vport_s { -struct list_head qe;/* queue elem */ +struct list_head qe;/* queue elem */ bfa_sm_t sm;/* state machine */ bfa_fcs_lport_t lport;/* logical port */ -struct bfa_timer_s timer;/* general purpose timer */ +struct bfa_timer_s timer;/* general purpose timer*/ struct bfad_vport_s *vport_drv;/* Driver private */ struct bfa_vport_stats_s vport_stats;/* vport statistics */ -struct bfa_lps_s *lps;/* Lport login service */ +struct bfa_lps_s *lps;/* Lport login service*/ int fdisc_retries; };
drivers/scsi/bfa/include/log/bfa_log_hal.h +6 -0
@@ -27,4 +27,10 @@ (((u32) BFA_LOG_HAL_ID << BFA_LOG_MODID_OFFSET) | 3)#define BFA_LOG_HAL_SM_ASSERT \ (((u32) BFA_LOG_HAL_ID << BFA_LOG_MODID_OFFSET) | 4) +#define BFA_LOG_HAL_DRIVER_ERROR \ + (((u32) BFA_LOG_HAL_ID << BFA_LOG_MODID_OFFSET) | 5) +#define BFA_LOG_HAL_DRIVER_CONFIG_ERROR \ + (((u32) BFA_LOG_HAL_ID << BFA_LOG_MODID_OFFSET) | 6) +#define BFA_LOG_HAL_MBOX_ERROR \ + (((u32) BFA_LOG_HAL_ID << BFA_LOG_MODID_OFFSET) | 7)#endif
drivers/scsi/bfa/include/log/bfa_log_linux.h +27 -11
@@ -20,25 +20,41 @@#define __BFA_LOG_LINUX_H__#include <cs/bfa_log.h> #define BFA_LOG_LINUX_DEVICE_CLAIMED \ - (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 1) + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 1)#define BFA_LOG_LINUX_HASH_INIT_FAILED \ - (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 2) + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 2)#define BFA_LOG_LINUX_SYSFS_FAILED \ - (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 3) + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 3)#define BFA_LOG_LINUX_MEM_ALLOC_FAILED \ - (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 4) + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 4)#define BFA_LOG_LINUX_DRIVER_REGISTRATION_FAILED \ - (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 5) + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 5)#define BFA_LOG_LINUX_ITNIM_FREE \ - (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 6) + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 6)#define BFA_LOG_LINUX_ITNIM_ONLINE \ - (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 7) + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 7)#define BFA_LOG_LINUX_ITNIM_OFFLINE \ - (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 8) + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 8)#define BFA_LOG_LINUX_SCSI_HOST_FREE \ - (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 9) + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 9)#define BFA_LOG_LINUX_SCSI_ABORT \ - (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 10) + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 10)#define BFA_LOG_LINUX_SCSI_ABORT_COMP \ - (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 11) + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 11) +#define BFA_LOG_LINUX_DRIVER_CONFIG_ERROR \ + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 12) +#define BFA_LOG_LINUX_BNA_STATE_MACHINE \ + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 13) +#define BFA_LOG_LINUX_IOC_ERROR \ + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 14) +#define BFA_LOG_LINUX_RESOURCE_ALLOC_ERROR \ + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 15) +#define BFA_LOG_LINUX_RING_BUFFER_ERROR \ + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 16) +#define BFA_LOG_LINUX_DRIVER_ERROR \ + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 17) +#define BFA_LOG_LINUX_DRIVER_DIAG \ + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 18) +#define BFA_LOG_LINUX_DRIVER_AEN \ + (((u32) BFA_LOG_LINUX_ID << BFA_LOG_MODID_OFFSET) | 19)#endif
drivers/scsi/bfa/include/protocol/ct.h +29 -27
201 lines not on this page · raw message
drivers/scsi/bfa/include/protocol/fc.h +68 -63
131 lines not on this page · raw message
drivers/scsi/bfa/include/protocol/fc_sp.h +12 -15
Lines of this file are not shown. View the raw message.
drivers/scsi/bfa/include/protocol/fcp.h +9 -10
Lines of this file are not shown. View the raw message.
drivers/scsi/bfa/include/protocol/fdmi.h +6 -6
Lines of this file are not shown. View the raw message.
drivers/scsi/bfa/include/protocol/pcifw.h deleted +0 -75
75 lines not on this page · raw message
drivers/scsi/bfa/include/protocol/scsi.h +67 -66
133 lines not on this page · raw message
drivers/scsi/bfa/include/protocol/types.h +0 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.6.5.2
Part of the diff is not shown here. View the raw message.