src/dpdk/drivers/net/ice/base/ice_common.c
enum ice_status
ice_lldp_fltr_add_remove(struct ice_hw *hw, u16 vsi_num, bool add)
{
	struct ice_aqc_lldp_filter_ctrl *cmd;
	struct ice_aq_desc desc;

	cmd = &desc.params.lldp_filter_ctrl;

	ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_lldp_filter_ctrl);

	if (add)
		cmd->cmd_flags = ICE_AQC_LLDP_FILTER_ACTION_ADD;
	else
		cmd->cmd_flags = ICE_AQC_LLDP_FILTER_ACTION_DELETE;

	cmd->vsi_num = CPU_TO_LE16(vsi_num);

	return ice_aq_send_cmd(hw, &desc, NULL, 0, NULL);
}
/**
 * ice_lldp_fltr_add_remove - add or remove a LLDP Rx switch filter
 * @hw: pointer to HW struct
 * @vsi_num: absolute HW index for VSI
 * @add: boolean for if adding or removing a filter
 */
add or remove a LLDP Rx switch filter
@hw: pointer to HW struct
@vsi_num: absolute HW index for VSI
@add: boolean for if adding or removing a filter
add or remove a LLDP Rx switch filter @hw : pointer to HW struct @vsi_num : absolute HW index for VSI @add : boolean for if adding or removing a filter
enum ice_status
ice_lldp_fltr_add_remove(struct ice_hw *hw, u16 vsi_num, bool add)
{
	struct ice_aqc_lldp_filter_ctrl *cmd;
	struct ice_aq_desc desc;
	cmd = &desc.params.lldp_filter_ctrl;
	ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_lldp_filter_ctrl);
	if (add)
		cmd->cmd_flags = ICE_AQC_LLDP_FILTER_ACTION_ADD;
	else
		cmd->cmd_flags = ICE_AQC_LLDP_FILTER_ACTION_DELETE;
	cmd->vsi_num = CPU_TO_LE16(vsi_num);
	return ice_aq_send_cmd(hw, &desc, NULL, 0, NULL);
}
enum ice_status ice_lldp_fltr_add_remove ( struct ice_hw * hw , u16 vsi_num , bool add ) { struct ice_aqc_lldp_filter_ctrl * cmd ; struct ice_aq_desc desc ; cmd = & desc . params . lldp_filter_ctrl ; ice_fill_dflt_direct_cmd_desc ( & desc , ice_aqc_opc_lldp_filter_ctrl ) ; if ( add ) cmd -> cmd_flags = ICE_AQC_LLDP_FILTER_ACTION_ADD ; else cmd -> cmd_flags = ICE_AQC_LLDP_FILTER_ACTION_DELETE ; cmd -> vsi_num = CPU_TO_LE16 ( vsi_num ) ; return ice_aq_send_cmd ( hw , & desc , NULL , 0 , NULL ) ; }
ice_lldp_fltr_add_remove - add or remove a LLDP Rx switch filter
 @hw: pointer to HW struct
 @vsi_num: absolute HW index for VSI
 @add: boolean for if adding or removing a filter
ice_lldp_fltr_add_remove - add or remove a LLDP Rx switch filter @hw : pointer to HW struct @vsi_num : absolute HW index for VSI @add : boolean for if adding or removing a filter