Home
last modified time | relevance | path

Searched full:match (Results 1 – 25 of 3417) sorted by relevance

12345678910>>...137

/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dmatch.c30 struct flow_match_vlan match; in nfp_flower_compile_tci() local
32 flow_rule_match_vlan(rule, &match); in nfp_flower_compile_tci()
36 match.key->vlan_priority) | in nfp_flower_compile_tci()
38 match.key->vlan_id); in nfp_flower_compile_tci()
42 match.mask->vlan_priority) | in nfp_flower_compile_tci()
44 match.mask->vlan_id); in nfp_flower_compile_tci()
85 NL_SET_ERR_MSG_MOD(extack, "unsupported offload: invalid ingress interface for match offload"); in nfp_flower_compile_port()
100 struct flow_match_eth_addrs match; in nfp_flower_compile_mac() local
104 flow_rule_match_eth_addrs(rule, &match); in nfp_flower_compile_mac()
107 tmp = match.key->dst[i] & match.mask->dst[i]; in nfp_flower_compile_mac()
[all …]
/linux/tools/testing/selftests/net/
H A Dfib_rule_tests.sh123 echo "SKIP: iproute2 iprule too old, missing $1 match"
129 echo "SKIP: iproute2 get route too old, missing $2 match"
150 local match="$1"
156 $IP -6 rule add $match table $RTABLE
163 fib_rule6_del_by_pref "$match"
169 local match="$1"
172 $IP -6 rule add $match table $RTABLE 2>/dev/null
174 log_test $rc 2 "rule6 check: $match"
177 $IP -6 rule del $match table $RTABLE
186 local match
[all …]
/linux/Documentation/devicetree/bindings/pwm/
H A Drenesas,rzg2l-gpt.yaml75 - description: GPT32E0.GTCCRA input capture/compare match
77 - description: GPT32E0.GTCCRC compare match
78 - description: GPT32E0.GTCCRD compare match
79 - description: GPT32E0.GTCCRE compare match
80 - description: GPT32E0.GTCCRF compare match
81 - description: GPT32E0.GTADTRA compare match
82 - description: GPT32E0.GTADTRB compare match
83 - description: GPT32E0.GTCNT overflow/GTPR compare match
85 - description: GPT32E1.GTCCRA input capture/compare match
87 - description: GPT32E1.GTCCRC compare match
[all …]
/linux/sound/soc/intel/common/
H A DMakefile2 snd-soc-acpi-intel-match-y := soc-acpi-intel-byt-match.o soc-acpi-intel-cht-match.o \
3 soc-acpi-intel-hsw-bdw-match.o \
4 soc-acpi-intel-skl-match.o soc-acpi-intel-kbl-match.o \
5 soc-acpi-intel-bxt-match.o soc-acpi-intel-glk-match.o \
6 soc-acpi-intel-cnl-match.o soc-acpi-intel-cfl-match
[all...]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_flower.c307 const struct flow_match_meta *match, in mlxsw_sp_flower_parse_meta_iif() argument
313 if (!match->mask->ingress_ifindex) in mlxsw_sp_flower_parse_meta_iif()
316 if (match->mask->ingress_ifindex != 0xFFFFFFFF) { in mlxsw_sp_flower_parse_meta_iif()
322 match->key->ingress_ifindex); in mlxsw_sp_flower_parse_meta_iif()
324 NL_SET_ERR_MSG_MOD(extack, "Can't find specified ingress port to match on"); in mlxsw_sp_flower_parse_meta_iif()
329 NL_SET_ERR_MSG_MOD(extack, "Can't match on non-mlxsw ingress port"); in mlxsw_sp_flower_parse_meta_iif()
335 NL_SET_ERR_MSG_MOD(extack, "Can't match on a port from different device"); in mlxsw_sp_flower_parse_meta_iif()
352 struct flow_match_meta match; in mlxsw_sp_flower_parse_meta() local
357 flow_rule_match_meta(rule, &match); in mlxsw_sp_flower_parse_meta()
360 match in mlxsw_sp_flower_parse_meta()
369 struct flow_match_ipv4_addrs match; mlxsw_sp_flower_parse_ipv4() local
384 struct flow_match_ipv6_addrs match; mlxsw_sp_flower_parse_ipv6() local
420 struct flow_match_ports match; mlxsw_sp_flower_parse_ports() local
447 struct flow_match_ports_range match; mlxsw_sp_flower_parse_ports_range() local
509 struct flow_match_tcp match; mlxsw_sp_flower_parse_tcp() local
540 struct flow_match_ip match; mlxsw_sp_flower_parse_ip() local
604 struct flow_match_control match; mlxsw_sp_flower_parse() local
615 struct flow_match_basic match; mlxsw_sp_flower_parse() local
637 struct flow_match_eth_addrs match; mlxsw_sp_flower_parse() local
659 struct flow_match_vlan match; mlxsw_sp_flower_parse() local
[all...]
H A Dspectrum_dpipe.c102 struct devlink_dpipe_match match = {0}; in mlxsw_sp_dpipe_table_erif_matches_dump() local
104 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_erif_matches_dump()
105 match.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_erif_matches_dump()
106 match.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_dpipe_table_erif_matches_dump()
108 return devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_erif_matches_dump()
112 mlxsw_sp_erif_match_action_prepare(struct devlink_dpipe_match *match, in mlxsw_sp_erif_match_action_prepare() argument
119 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_erif_match_action_prepare()
120 match->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_erif_match_action_prepare()
121 match->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_erif_match_action_prepare()
126 struct devlink_dpipe_match *match, in mlxsw_sp_erif_entry_prepare() argument
[all …]
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_flower.c144 struct prestera_acl_match *r_match = &rule->re_key.match; in prestera_flower_parse_meta()
147 struct flow_match_meta match; in prestera_flower_parse_meta() local
150 flow_rule_match_meta(f_rule, &match); in prestera_flower_parse_meta()
152 if (match.mask->l2_miss) { in prestera_flower_parse_meta()
153 NL_SET_ERR_MSG_MOD(f->common.extack, "Can't match on \"l2_miss\""); in prestera_flower_parse_meta()
157 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in prestera_flower_parse_meta()
164 match.key->ingress_ifindex); in prestera_flower_parse_meta()
167 "Can't find specified ingress port to match on"); in prestera_flower_parse_meta()
173 "Can't match on switchdev ingress port"); in prestera_flower_parse_meta()
196 struct flow_dissector *dissector = f_rule->match.dissector; in prestera_flower_parse()
[all …]
/linux/drivers/base/
H A Dcomponent.c33 * Aggregate drivers first assemble a component match list of what they need
62 struct component_match *match; member
86 struct component_match *match = m->match; in component_devices_show() local
97 for (i = 0; i < match->num; i++) { in component_devices_show()
98 struct component *component = match->compare[i].component; in component_devices_show()
175 struct component_match *match = adev->match; in find_components() local
180 * Scan the array of match functions and attach in find_components()
183 for (i = 0; i < match->num; i++) { in find_components()
184 struct component_match_array *mc = &match->compare[i]; in find_components()
189 if (match->compare[i].component) in find_components()
[all …]
/linux/net/netfilter/
H A DKconfig94 filtering (see `Connection state match support' below).
119 `CONNMARK' target and `connmark' match. Similar to the mark value
193 match and the nftables ct expression.
495 This option adds the "ct" expression that you can use to match
575 This option adds the "quota" expression that you can use to match
596 x_tables match/target extensions over the nf_tables
626 tristate "Netfilter nf_tables socket match support"
760 tristate 'nfmark target and match support'
763 This option adds the "MARK" target and "mark" match.
765 Netfilter mark matching allows you to match packets based on the
[all …]
H A Dnf_tables_offload.c24 flow->rule->match.dissector = &flow->match.dissector; in nft_flow_rule_alloc()
25 flow->rule->match.mask = &flow->match.mask; in nft_flow_rule_alloc()
26 flow->rule->match.key = &flow->match.key; in nft_flow_rule_alloc()
34 struct nft_flow_match *match = &flow->match; in nft_flow_rule_set_addr_type() local
35 struct nft_flow_key *mask = &match->mask; in nft_flow_rule_set_addr_type()
36 struct nft_flow_key *key = &match->key; in nft_flow_rule_set_addr_type()
38 if (match->dissector.used_keys & BIT_ULL(FLOW_DISSECTOR_KEY_CONTROL)) in nft_flow_rule_set_addr_type()
43 match->dissector.used_keys |= BIT_ULL(FLOW_DISSECTOR_KEY_CONTROL); in nft_flow_rule_set_addr_type()
44 match->dissector.offset[FLOW_DISSECTOR_KEY_CONTROL] = in nft_flow_rule_set_addr_type()
56 struct nft_flow_match *match = &flow->match; in nft_flow_rule_transfer_vlan() local
[all …]
/linux/drivers/net/ethernet/sfc/
H A Dtc.c230 match->value._field = fm.key->_tcfield; \
231 match->mask._field = fm.mask->_tcfield; \
240 struct efx_tc_match *match, in efx_tc_flower_parse_match() argument
243 struct flow_dissector *dissector = rule->match.dissector; in efx_tc_flower_parse_match()
269 match->value.ip_frag = fm.key->flags & FLOW_DIS_IS_FRAGMENT; in efx_tc_flower_parse_match()
270 match->mask.ip_frag = true; in efx_tc_flower_parse_match()
273 match->value.ip_firstfrag = fm.key->flags & FLOW_DIS_FIRST_FRAG; in efx_tc_flower_parse_match()
274 match->mask.ip_firstfrag = true; in efx_tc_flower_parse_match()
306 if (!IS_ALL_ONES(match->mask.eth_proto) || in efx_tc_flower_parse_match()
307 !(match->value.eth_proto == htons(ETH_P_IP) || in efx_tc_flower_parse_match()
[all …]
/linux/tools/lib/python/kdoc/
H A Dparse_data_structs.py182 match = re.match(r"^ignore\s+(\w+)\s+(\S+)", line)
184 if match:
185 self.ignore.append((ln, match.group(1), match.group(2)))
189 match = re.match(r"^replace\s+(\S+)\s+(\S+)\s+(\S+)", line)
190 if match:
191 self.replace.append((ln, match.group(1), match
[all...]
/linux/net/sched/
H A Dem_ipt.c22 const struct xt_match *match; member
53 mtpar.family = im->match->family; in check_match()
54 mtpar.match = im->match; in check_match()
63 pr_err("only policy match revision 0 supported"); in policy_validate_match_data()
78 pr_err("only addrtype match revision 1 supported"); in addrtype_validate_match_data()
111 pr_err("Unsupported xt match"); in get_xt_match()
131 struct xt_match *match; in em_ipt_change() local
153 match = get_xt_match(tb); in em_ipt_change()
154 if (IS_ERR(match)) { in em_ipt_change()
155 pr_err("unable to load match\n"); in em_ipt_change()
[all …]
/linux/net/openvswitch/
H A Dflow_netlink.c95 static void update_range(struct sw_flow_match *match, in update_range() argument
103 range = &match->range; in update_range()
105 range = &match->mask->range; in update_range()
120 #define SW_FLOW_KEY_PUT(match, field, value, is_mask) \ argument
122 update_range(match, offsetof(struct sw_flow_key, field), \
123 sizeof((match)->key->field), is_mask); \
125 (match)->mask->key.field = value; \
127 (match)->key->field = value; \
130 #define SW_FLOW_KEY_MEMCPY_OFFSET(match, offset, value_p, len, is_mask) \ argument
132 update_range(match, offset, len, is_mask); \
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_flower.c169 struct flow_match_basic match; in cxgb4_process_flow_match() local
172 flow_rule_match_basic(rule, &match); in cxgb4_process_flow_match()
173 ethtype_key = ntohs(match.key->n_proto); in cxgb4_process_flow_match()
174 ethtype_mask = ntohs(match.mask->n_proto); in cxgb4_process_flow_match()
186 fs->val.proto = match.key->ip_proto; in cxgb4_process_flow_match()
187 fs->mask.proto = match.mask->ip_proto; in cxgb4_process_flow_match()
191 struct flow_match_ipv4_addrs match; in cxgb4_process_flow_match() local
193 flow_rule_match_ipv4_addrs(rule, &match); in cxgb4_process_flow_match()
195 memcpy(&fs->val.lip[0], &match.key->dst, sizeof(match.key->dst)); in cxgb4_process_flow_match()
196 memcpy(&fs->val.fip[0], &match.key->src, sizeof(match.key->src)); in cxgb4_process_flow_match()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_tc.c558 struct flow_match_vlan match; in otx2_tc_process_vlan() local
562 flow_rule_match_cvlan(rule, &match); in otx2_tc_process_vlan()
564 flow_rule_match_vlan(rule, &match); in otx2_tc_process_vlan()
566 if (!eth_type_vlan(match.key->vlan_tpid)) { in otx2_tc_process_vlan()
568 ntohs(match.key->vlan_tpid)); in otx2_tc_process_vlan()
572 if (!match.mask->vlan_id) { in otx2_tc_process_vlan()
580 ntohs(match.key->vlan_tpid), match.key->vlan_id); in otx2_tc_process_vlan()
586 if (match.mask->vlan_id || in otx2_tc_process_vlan()
587 match.mask->vlan_dei || in otx2_tc_process_vlan()
588 match.mask->vlan_priority) { in otx2_tc_process_vlan()
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Dvidioc-dbg-g-chip-info.rst49 To query the driver applications must initialize the ``match.type`` and
50 ``match.addr`` or ``match.name`` fields of a struct
56 When ``match.type`` is ``V4L2_CHIP_MATCH_BRIDGE``, ``match.addr``
58 chips by starting at zero and incrementing ``match.addr`` by one until
64 When ``match.type`` is ``V4L2_CHIP_MATCH_SUBDEV``, ``match.addr``
80 .. _name-v4l2-dbg-match:
89 - See :ref:`name-chip-match-types` for a list of possible types.
94 - Match a chip by this number, interpreted according to the ``type``
98 - Match a chip by this name, interpreted according to the ``type``
114 - ``match``
[all …]
H A Dvidioc-dbg-g-register.rst55 ``match.type`` and ``match.addr`` or ``match.name`` fields select a chip
59 To read a register applications must initialize the ``match.type``,
60 ``match.addr`` or ``match.name`` and ``reg`` fields, and call
65 When ``match.type`` is ``V4L2_CHIP_MATCH_BRIDGE``, ``match.addr``
71 When ``match.type`` is ``V4L2_CHIP_MATCH_SUBDEV``, ``match.addr``
99 - See :ref:`chip-match-types` for a list of possible types.
104 - Match a chip by this number, interpreted according to the ``type``
108 - Match a chip by this name, interpreted according to the ``type``
121 - ``match``
122 - How to match the chip, see :c:type:`v4l2_dbg_match`.
[all …]
/linux/tools/testing/selftests/net/forwarding/
H A Dtc_flower.sh56 check_fail $? "Did not match on correct filter"
61 log_test "dst_mac match ($tcflags)"
82 check_fail $? "Did not match on correct filter"
87 log_test "src_mac match ($tcflags)"
108 check_err $? "Did not match on correct filter"
116 check_err $? "Did not match on correct filter with mask"
121 log_test "dst_ip match ($tcflags)"
142 check_err $? "Did not match on correct filter"
150 check_err $? "Did not match on correct filter with mask"
155 log_test "src_ip match ($tcflags)"
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_tc_lib.c1291 * @match: Pointer to flow match structure
1297 ice_tc_set_pppoe(struct flow_match_pppoe *match, in ice_tc_set_pppoe() argument
1301 if (match->mask->session_id) { in ice_tc_set_pppoe()
1303 headers->pppoe_hdr.session_id = match->key->session_id; in ice_tc_set_pppoe()
1306 if (match->mask->ppp_proto) { in ice_tc_set_pppoe()
1308 headers->pppoe_hdr.ppp_proto = match->key->ppp_proto; in ice_tc_set_pppoe()
1311 return be16_to_cpu(match->key->type); in ice_tc_set_pppoe()
1316 * @match: Pointer to flow match structure
1322 ice_tc_set_ipv4(struct flow_match_ipv4_addrs *match, in ice_tc_set_ipv4() argument
1326 if (match->key->dst) { in ice_tc_set_ipv4()
[all …]
/linux/drivers/net/dsa/mv88e6xxx/
H A Dtcflower.c23 struct flow_dissector *dissector = rule->match.dissector; in mv88e6xxx_flower_parse_key()
36 struct flow_match_control match; in mv88e6xxx_flower_parse_key() local
38 flow_rule_match_control(rule, &match); in mv88e6xxx_flower_parse_key()
39 addr_type = match.key->addr_type; in mv88e6xxx_flower_parse_key()
41 if (flow_rule_has_control_flags(match.mask->flags, in mv88e6xxx_flower_parse_key()
46 struct flow_match_basic match; in mv88e6xxx_flower_parse_key() local
48 flow_rule_match_basic(rule, &match); in mv88e6xxx_flower_parse_key()
50 match.key->n_proto, in mv88e6xxx_flower_parse_key()
51 match.mask->n_proto); in mv88e6xxx_flower_parse_key()
53 match.key->ip_proto, in mv88e6xxx_flower_parse_key()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dfilter.h15 * enum efx_filter_match_flags - Flags for hardware filter match type
16 * @EFX_FILTER_MATCH_REM_HOST: Match by remote IP host address
17 * @EFX_FILTER_MATCH_LOC_HOST: Match by local IP host address
18 * @EFX_FILTER_MATCH_REM_MAC: Match by remote MAC address
19 * @EFX_FILTER_MATCH_REM_PORT: Match by remote TCP/UDP port
20 * @EFX_FILTER_MATCH_LOC_MAC: Match by local MAC address
21 * @EFX_FILTER_MATCH_LOC_PORT: Match by local TCP/UDP port
22 * @EFX_FILTER_MATCH_ETHER_TYPE: Match by Ether-type
23 * @EFX_FILTER_MATCH_INNER_VID: Match by inner VLAN ID
24 * @EFX_FILTER_MATCH_OUTER_VID: Match by outer VLAN ID
[all …]
/linux/drivers/regulator/
H A Dmax8907-regulator.c183 #define MATCH(_name, _id) \ macro
190 MATCH(mbatt, MBATT),
191 MATCH(sd1, SD1),
192 MATCH(sd2, SD2),
193 MATCH(sd3, SD3),
194 MATCH(ldo1, LDO1),
195 MATCH(ldo2, LDO2),
196 MATCH(ldo3, LDO3),
197 MATCH(ldo4, LDO4),
198 MATCH(ldo5, LDO5),
[all …]
/linux/drivers/net/ethernet/sfc/falcon/
H A Dfilter.h15 * enum ef4_filter_match_flags - Flags for hardware filter match type
16 * @EF4_FILTER_MATCH_REM_HOST: Match by remote IP host address
17 * @EF4_FILTER_MATCH_LOC_HOST: Match by local IP host address
18 * @EF4_FILTER_MATCH_REM_MAC: Match by remote MAC address
19 * @EF4_FILTER_MATCH_REM_PORT: Match by remote TCP/UDP port
20 * @EF4_FILTER_MATCH_LOC_MAC: Match by local MAC address
21 * @EF4_FILTER_MATCH_LOC_PORT: Match by local TCP/UDP port
22 * @EF4_FILTER_MATCH_ETHER_TYPE: Match by Ether-type
23 * @EF4_FILTER_MATCH_INNER_VID: Match by inner VLAN ID
24 * @EF4_FILTER_MATCH_OUTER_VID: Match by outer VLAN ID
[all …]
/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch-flower.c15 struct flow_dissector *dissector = rule->match.dissector; in dpaa2_switch_flower_parse_key()
33 acl_h = &acl_key->match; in dpaa2_switch_flower_parse_key()
40 struct flow_match_basic match; in dpaa2_switch_flower_parse_key() local
42 flow_rule_match_basic(rule, &match); in dpaa2_switch_flower_parse_key()
43 acl_h->l3_protocol = match.key->ip_proto; in dpaa2_switch_flower_parse_key()
44 acl_h->l2_ether_type = be16_to_cpu(match.key->n_proto); in dpaa2_switch_flower_parse_key()
45 acl_m->l3_protocol = match.mask->ip_proto; in dpaa2_switch_flower_parse_key()
46 acl_m->l2_ether_type = be16_to_cpu(match.mask->n_proto); in dpaa2_switch_flower_parse_key()
50 struct flow_match_eth_addrs match; in dpaa2_switch_flower_parse_key() local
52 flow_rule_match_eth_addrs(rule, &match); in dpaa2_switch_flower_parse_key()
[all …]

12345678910>>...137