src/dpdk/drivers/net/ice/base/ice_dcb.c
enum ice_status
ice_aq_start_stop_dcbx(struct ice_hw *hw, bool start_dcbx_agent,
		       bool *dcbx_agent_status, struct ice_sq_cd *cd)
{
	struct ice_aqc_lldp_stop_start_specific_agent *cmd;
	enum ice_status status;
	struct ice_aq_desc desc;
	u16 opcode;

	cmd = &desc.params.lldp_agent_ctrl;

	opcode = ice_aqc_opc_lldp_stop_start_specific_agent;

	ice_fill_dflt_direct_cmd_desc(&desc, opcode);

	if (start_dcbx_agent)
		cmd->command = ICE_AQC_START_STOP_AGENT_START_DCBX;

	status = ice_aq_send_cmd(hw, &desc, NULL, 0, cd);

	*dcbx_agent_status = false;

	if (status == ICE_SUCCESS &&
	    cmd->command == ICE_AQC_START_STOP_AGENT_START_DCBX)
		*dcbx_agent_status = true;

	return status;
}
/**
 * ice_aq_start_stop_dcbx - Start/Stop DCBX service in FW
 * @hw: pointer to the HW struct
 * @start_dcbx_agent: True if DCBX Agent needs to be started
 *		      False if DCBX Agent needs to be stopped
 * @dcbx_agent_status: FW indicates back the DCBX agent status
 *		       True if DCBX Agent is active
 *		       False if DCBX Agent is stopped
 * @cd: pointer to command details structure or NULL
 *
 * Start/Stop the embedded dcbx Agent. In case that this wrapper function
 * returns ICE_SUCCESS, caller will need to check if FW returns back the same
 * value as stated in dcbx_agent_status, and react accordingly. (0x0A09)
 */
Start/Stop DCBX service in FW
@hw: pointer to the HW struct
@start_dcbx_agent: True if DCBX Agent needs to be started
False if DCBX Agent needs to be stopped
@dcbx_agent_status: FW indicates back the DCBX agent status
True if DCBX Agent is active
False if DCBX Agent is stopped
@cd: pointer to command details structure or NULL

Start/Stop the embedded dcbx Agent. In case that this wrapper function
returns ICE_SUCCESS, caller will need to check if FW returns back the same
value as stated in dcbx_agent_status, and react accordingly.
Start / Stop DCBX service in FW @hw : pointer to the HW struct @start_dcbx_agent : True if DCBX Agent needs to be started False if DCBX Agent needs to be stopped @dcbx_agent_status : FW indicates back the DCBX agent status True if DCBX Agent is active False if DCBX Agent is stopped @cd : pointer to command details structure or NULL Start / Stop the embedded dcbx Agent . In case that this wrapper function returns ICE_SUCCESS caller will need to check if FW returns back the same value as stated in dcbx_agent_status and react accordingly .
enum ice_status
ice_aq_start_stop_dcbx(struct ice_hw *hw, bool start_dcbx_agent,
		       bool *dcbx_agent_status, struct ice_sq_cd *cd)
{
	struct ice_aqc_lldp_stop_start_specific_agent *cmd;
	enum ice_status status;
	struct ice_aq_desc desc;
	u16 opcode;
	cmd = &desc.params.lldp_agent_ctrl;
	opcode = ice_aqc_opc_lldp_stop_start_specific_agent;
	ice_fill_dflt_direct_cmd_desc(&desc, opcode);
	if (start_dcbx_agent)
		cmd->command = ICE_AQC_START_STOP_AGENT_START_DCBX;
	status = ice_aq_send_cmd(hw, &desc, NULL, 0, cd);
	*dcbx_agent_status = false;
	if (status == ICE_SUCCESS &&
	    cmd->command == ICE_AQC_START_STOP_AGENT_START_DCBX)
		*dcbx_agent_status = true;
	return status;
}
enum ice_status ice_aq_start_stop_dcbx ( struct ice_hw * hw , bool start_dcbx_agent , bool * dcbx_agent_status , struct ice_sq_cd * cd ) { struct ice_aqc_lldp_stop_start_specific_agent * cmd ; enum ice_status status ; struct ice_aq_desc desc ; u16 opcode ; cmd = & desc . params . lldp_agent_ctrl ; opcode = ice_aqc_opc_lldp_stop_start_specific_agent ; ice_fill_dflt_direct_cmd_desc ( & desc , opcode ) ; if ( start_dcbx_agent ) cmd -> command = ICE_AQC_START_STOP_AGENT_START_DCBX ; status = ice_aq_send_cmd ( hw , & desc , NULL , 0 , cd ) ; * dcbx_agent_status = false ; if ( status == ICE_SUCCESS && cmd -> command == ICE_AQC_START_STOP_AGENT_START_DCBX ) * dcbx_agent_status = true ; return status ; }
ice_aq_start_stop_dcbx - Start/Stop DCBX service in FW
 @hw: pointer to the HW struct
 @start_dcbx_agent: True if DCBX Agent needs to be started
                    False if DCBX Agent needs to be stopped
 @dcbx_agent_status: FW indicates back the DCBX agent status
                     True if DCBX Agent is active
                     False if DCBX Agent is stopped
 @cd: pointer to command details structure or NULL
ice_aq_start_stop_dcbx - Start / Stop DCBX service in FW @hw : pointer to the HW struct @start_dcbx_agent : True if DCBX Agent needs to be started False if DCBX Agent needs to be stopped @dcbx_agent_status : FW indicates back the DCBX agent status True if DCBX Agent is active False if DCBX Agent is stopped @cd : pointer to command details structure or NULL