Lines Matching +full:valid +full:- +full:mask
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2019-2021, Intel Corporation. */
67 __be16 vlan_id; /* Only last 12 bits valid */
68 __be16 vlan_prio; /* Only last 3 bits valid (valid values: 0..7) */
116 /* L2 layer fields with their mask */
123 /* L3 (IPv4[6]) layer fields with their mask */
127 /* L4 layer fields with their mask */
175 * ice_is_chnl_fltr - is this a valid channel filter
176 * @f: Pointer to tc-flower filter
178 * Criteria to determine of given filter is valid channel filter
180 * For forward to VSI action, if destination is valid hw_tc (aka tc_class)
182 * For forward to queue, as long as dest_vsi is valid and it is of type
189 if (f->action.fltr_act == ICE_FWD_TO_VSI) in ice_is_chnl_fltr()
190 return f->action.fwd.tc.tc_class >= ICE_CHNL_START_TC && in ice_is_chnl_fltr()
191 f->action.fwd.tc.tc_class < ICE_CHNL_MAX_TC; in ice_is_chnl_fltr()
192 else if (f->action.fltr_act == ICE_FWD_TO_Q) in ice_is_chnl_fltr()
193 return f->dest_vsi && f->dest_vsi->type == ICE_VSI_CHNL; in ice_is_chnl_fltr()
199 * ice_chnl_dmac_fltr_cnt - DMAC based CHNL filter count
204 return pf->num_dmac_chnl_fltrs; in ice_chnl_dmac_fltr_cnt()