Lines Matching +full:valid +full:- +full:mask
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2019-2021, Intel Corporation. */
71 __be16 vlan_id; /* Only last 12 bits valid */
72 __be16 vlan_prio; /* Only last 3 bits valid (valid values: 0..7) */
120 /* L2 layer fields with their mask */
127 /* L3 (IPv4[6]) layer fields with their mask */
131 /* L4 layer fields with their mask */
181 * ice_is_chnl_fltr - is this a valid channel filter
182 * @f: Pointer to tc-flower filter
184 * Criteria to determine of given filter is valid channel filter
186 * For forward to VSI action, if destination is valid hw_tc (aka tc_class)
188 * For forward to queue, as long as dest_vsi is valid and it is of type
195 if (f->action.fltr_act == ICE_FWD_TO_VSI) in ice_is_chnl_fltr()
196 return f->action.fwd.tc.tc_class >= ICE_CHNL_START_TC && in ice_is_chnl_fltr()
197 f->action.fwd.tc.tc_class < ICE_CHNL_MAX_TC; in ice_is_chnl_fltr()
198 else if (f->action.fltr_act == ICE_FWD_TO_Q) in ice_is_chnl_fltr()
199 return f->dest_vsi && f->dest_vsi->type == ICE_VSI_CHNL; in ice_is_chnl_fltr()
205 * ice_chnl_dmac_fltr_cnt - DMAC based CHNL filter count
210 return pf->num_dmac_chnl_fltrs; in ice_chnl_dmac_fltr_cnt()