src/dpdk/drivers/net/ice/base/ice_fdir.c
void
ice_fdir_update_cntrs(struct ice_hw *hw, enum ice_fltr_ptype flow,
		      bool acl_fltr, bool add)
{
	int incr;

	incr = add ? 1 : -1;
	hw->fdir_active_fltr += incr;
	if (flow == ICE_FLTR_PTYPE_NONF_NONE || flow >= ICE_FLTR_PTYPE_MAX) {
		ice_debug(hw, ICE_DBG_SW, "Unknown filter type %d\n", flow);
	} else {
		if (acl_fltr)
			hw->acl_fltr_cnt[flow] += incr;
		else
			hw->fdir_fltr_cnt[flow] += incr;
	}
}
/**
 * ice_fdir_update_cntrs - increment / decrement filter counter
 * @hw: pointer to hardware structure
 * @flow: filter flow type
 * @acl_fltr: true indicates an ACL filter
 * @add: true implies filters added
 */
increment / decrement filter counter
@hw: pointer to hardware structure
@flow: filter flow type
@acl_fltr: true indicates an ACL filter
@add: true implies filters added
increment / decrement filter counter @hw : pointer to hardware structure @flow : filter flow type @acl_fltr : true indicates an ACL filter @add : true implies filters added
void
ice_fdir_update_cntrs(struct ice_hw *hw, enum ice_fltr_ptype flow,
		      bool acl_fltr, bool add)
{
	int incr;
	incr = add ? 1 : -1;
	hw->fdir_active_fltr += incr;
	if (flow == ICE_FLTR_PTYPE_NONF_NONE || flow >= ICE_FLTR_PTYPE_MAX) {
		ice_debug(hw, ICE_DBG_SW, "Unknown filter type %d\n", flow);
	} else {
		if (acl_fltr)
			hw->acl_fltr_cnt[flow] += incr;
		else
			hw->fdir_fltr_cnt[flow] += incr;
	}
}
void ice_fdir_update_cntrs ( struct ice_hw * hw , enum ice_fltr_ptype flow , bool acl_fltr , bool add ) { int incr ; incr = add ? 1 : -1 ; hw -> fdir_active_fltr += incr ; if ( flow == ICE_FLTR_PTYPE_NONF_NONE || flow >= ICE_FLTR_PTYPE_MAX ) { ice_debug ( hw , ICE_DBG_SW , " \n " , flow ) ; } else { if ( acl_fltr ) hw -> acl_fltr_cnt [ flow ] += incr ; else hw -> fdir_fltr_cnt [ flow ] += incr ; } }
ice_fdir_update_cntrs - increment / decrement filter counter
 @hw: pointer to hardware structure
 @flow: filter flow type
 @acl_fltr: true indicates an ACL filter
 @add: true implies filters added
ice_fdir_update_cntrs - increment / decrement filter counter @hw : pointer to hardware structure @flow : filter flow type @acl_fltr : true indicates an ACL filter @add : true implies filters added