ice: Use int for ice_status
To prepare for removal of ice_status, change the variables from ice_status to int. This eases the transition when values are changed to return standard int error codes over enum ice_status. Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Tested-by: Gurucharan G <gurucharanx.g@intel.com>
This commit is contained in:
@ -138,28 +138,28 @@ struct ice_cee_app_prio {
|
||||
} __packed;
|
||||
|
||||
int ice_aq_set_pfc_mode(struct ice_hw *hw, u8 pfc_mode, struct ice_sq_cd *cd);
|
||||
enum ice_status
|
||||
int
|
||||
ice_aq_get_dcb_cfg(struct ice_hw *hw, u8 mib_type, u8 bridgetype,
|
||||
struct ice_dcbx_cfg *dcbcfg);
|
||||
enum ice_status ice_get_dcb_cfg(struct ice_port_info *pi);
|
||||
enum ice_status ice_set_dcb_cfg(struct ice_port_info *pi);
|
||||
enum ice_status ice_init_dcb(struct ice_hw *hw, bool enable_mib_change);
|
||||
enum ice_status
|
||||
int ice_get_dcb_cfg(struct ice_port_info *pi);
|
||||
int ice_set_dcb_cfg(struct ice_port_info *pi);
|
||||
int ice_init_dcb(struct ice_hw *hw, bool enable_mib_change);
|
||||
int
|
||||
ice_query_port_ets(struct ice_port_info *pi,
|
||||
struct ice_aqc_port_ets_elem *buf, u16 buf_size,
|
||||
struct ice_sq_cd *cmd_details);
|
||||
#ifdef CONFIG_DCB
|
||||
enum ice_status
|
||||
int
|
||||
ice_aq_stop_lldp(struct ice_hw *hw, bool shutdown_lldp_agent, bool persist,
|
||||
struct ice_sq_cd *cd);
|
||||
enum ice_status
|
||||
int
|
||||
ice_aq_start_lldp(struct ice_hw *hw, bool persist, struct ice_sq_cd *cd);
|
||||
enum ice_status
|
||||
int
|
||||
ice_aq_start_stop_dcbx(struct ice_hw *hw, bool start_dcbx_agent,
|
||||
bool *dcbx_agent_status, struct ice_sq_cd *cd);
|
||||
enum ice_status ice_cfg_lldp_mib_change(struct ice_hw *hw, bool ena_mib);
|
||||
int ice_cfg_lldp_mib_change(struct ice_hw *hw, bool ena_mib);
|
||||
#else /* CONFIG_DCB */
|
||||
static inline enum ice_status
|
||||
static inline int
|
||||
ice_aq_stop_lldp(struct ice_hw __always_unused *hw,
|
||||
bool __always_unused shutdown_lldp_agent,
|
||||
bool __always_unused persist,
|
||||
@ -168,7 +168,7 @@ ice_aq_stop_lldp(struct ice_hw __always_unused *hw,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline enum ice_status
|
||||
static inline int
|
||||
ice_aq_start_lldp(struct ice_hw __always_unused *hw,
|
||||
bool __always_unused persist,
|
||||
struct ice_sq_cd __always_unused *cd)
|
||||
@ -176,7 +176,7 @@ ice_aq_start_lldp(struct ice_hw __always_unused *hw,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline enum ice_status
|
||||
static inline int
|
||||
ice_aq_start_stop_dcbx(struct ice_hw __always_unused *hw,
|
||||
bool __always_unused start_dcbx_agent,
|
||||
bool *dcbx_agent_status,
|
||||
@ -187,7 +187,7 @@ ice_aq_start_stop_dcbx(struct ice_hw __always_unused *hw,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline enum ice_status
|
||||
static inline int
|
||||
ice_cfg_lldp_mib_change(struct ice_hw __always_unused *hw,
|
||||
bool __always_unused ena_mib)
|
||||
{
|
||||
|
Reference in New Issue
Block a user