Lines Matching refs:match
146 struct flow_match_meta match; in mlxsw_sp_flower_parse_meta() local
151 flow_rule_match_meta(rule, &match); in mlxsw_sp_flower_parse_meta()
152 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in mlxsw_sp_flower_parse_meta()
158 match.key->ingress_ifindex); in mlxsw_sp_flower_parse_meta()
185 struct flow_match_ipv4_addrs match; in mlxsw_sp_flower_parse_ipv4() local
187 flow_rule_match_ipv4_addrs(f->rule, &match); in mlxsw_sp_flower_parse_ipv4()
190 (char *) &match.key->src, in mlxsw_sp_flower_parse_ipv4()
191 (char *) &match.mask->src, 4); in mlxsw_sp_flower_parse_ipv4()
193 (char *) &match.key->dst, in mlxsw_sp_flower_parse_ipv4()
194 (char *) &match.mask->dst, 4); in mlxsw_sp_flower_parse_ipv4()
200 struct flow_match_ipv6_addrs match; in mlxsw_sp_flower_parse_ipv6() local
202 flow_rule_match_ipv6_addrs(f->rule, &match); in mlxsw_sp_flower_parse_ipv6()
205 &match.key->src.s6_addr[0x0], in mlxsw_sp_flower_parse_ipv6()
206 &match.mask->src.s6_addr[0x0], 4); in mlxsw_sp_flower_parse_ipv6()
208 &match.key->src.s6_addr[0x4], in mlxsw_sp_flower_parse_ipv6()
209 &match.mask->src.s6_addr[0x4], 4); in mlxsw_sp_flower_parse_ipv6()
211 &match.key->src.s6_addr[0x8], in mlxsw_sp_flower_parse_ipv6()
212 &match.mask->src.s6_addr[0x8], 4); in mlxsw_sp_flower_parse_ipv6()
214 &match.key->src.s6_addr[0xC], in mlxsw_sp_flower_parse_ipv6()
215 &match.mask->src.s6_addr[0xC], 4); in mlxsw_sp_flower_parse_ipv6()
217 &match.key->dst.s6_addr[0x0], in mlxsw_sp_flower_parse_ipv6()
218 &match.mask->dst.s6_addr[0x0], 4); in mlxsw_sp_flower_parse_ipv6()
220 &match.key->dst.s6_addr[0x4], in mlxsw_sp_flower_parse_ipv6()
221 &match.mask->dst.s6_addr[0x4], 4); in mlxsw_sp_flower_parse_ipv6()
223 &match.key->dst.s6_addr[0x8], in mlxsw_sp_flower_parse_ipv6()
224 &match.mask->dst.s6_addr[0x8], 4); in mlxsw_sp_flower_parse_ipv6()
226 &match.key->dst.s6_addr[0xC], in mlxsw_sp_flower_parse_ipv6()
227 &match.mask->dst.s6_addr[0xC], 4); in mlxsw_sp_flower_parse_ipv6()
236 struct flow_match_ports match; in mlxsw_sp_flower_parse_ports() local
247 flow_rule_match_ports(rule, &match); in mlxsw_sp_flower_parse_ports()
249 ntohs(match.key->dst), in mlxsw_sp_flower_parse_ports()
250 ntohs(match.mask->dst)); in mlxsw_sp_flower_parse_ports()
252 ntohs(match.key->src), in mlxsw_sp_flower_parse_ports()
253 ntohs(match.mask->src)); in mlxsw_sp_flower_parse_ports()
263 struct flow_match_tcp match; in mlxsw_sp_flower_parse_tcp() local
274 flow_rule_match_tcp(rule, &match); in mlxsw_sp_flower_parse_tcp()
276 if (match.mask->flags & htons(0x0E00)) { in mlxsw_sp_flower_parse_tcp()
283 ntohs(match.key->flags), in mlxsw_sp_flower_parse_tcp()
284 ntohs(match.mask->flags)); in mlxsw_sp_flower_parse_tcp()
294 struct flow_match_ip match; in mlxsw_sp_flower_parse_ip() local
305 flow_rule_match_ip(rule, &match); in mlxsw_sp_flower_parse_ip()
308 match.key->ttl, match.mask->ttl); in mlxsw_sp_flower_parse_ip()
311 match.key->tos & 0x3, in mlxsw_sp_flower_parse_ip()
312 match.mask->tos & 0x3); in mlxsw_sp_flower_parse_ip()
315 match.key->tos >> 2, in mlxsw_sp_flower_parse_ip()
316 match.mask->tos >> 2); in mlxsw_sp_flower_parse_ip()
327 struct flow_dissector *dissector = rule->match.dissector; in mlxsw_sp_flower_parse()
357 struct flow_match_control match; in mlxsw_sp_flower_parse() local
359 flow_rule_match_control(rule, &match); in mlxsw_sp_flower_parse()
360 addr_type = match.key->addr_type; in mlxsw_sp_flower_parse()
364 struct flow_match_basic match; in mlxsw_sp_flower_parse() local
366 flow_rule_match_basic(rule, &match); in mlxsw_sp_flower_parse()
367 n_proto_key = ntohs(match.key->n_proto); in mlxsw_sp_flower_parse()
368 n_proto_mask = ntohs(match.mask->n_proto); in mlxsw_sp_flower_parse()
378 ip_proto = match.key->ip_proto; in mlxsw_sp_flower_parse()
381 match.key->ip_proto, in mlxsw_sp_flower_parse()
382 match.mask->ip_proto); in mlxsw_sp_flower_parse()
386 struct flow_match_eth_addrs match; in mlxsw_sp_flower_parse() local
388 flow_rule_match_eth_addrs(rule, &match); in mlxsw_sp_flower_parse()
391 match.key->dst, in mlxsw_sp_flower_parse()
392 match.mask->dst, 2); in mlxsw_sp_flower_parse()
395 match.key->dst + 2, in mlxsw_sp_flower_parse()
396 match.mask->dst + 2, 4); in mlxsw_sp_flower_parse()
399 match.key->src, in mlxsw_sp_flower_parse()
400 match.mask->src, 2); in mlxsw_sp_flower_parse()
403 match.key->src + 2, in mlxsw_sp_flower_parse()
404 match.mask->src + 2, 4); in mlxsw_sp_flower_parse()
408 struct flow_match_vlan match; in mlxsw_sp_flower_parse() local
410 flow_rule_match_vlan(rule, &match); in mlxsw_sp_flower_parse()
421 if (match.mask->vlan_id != 0) in mlxsw_sp_flower_parse()
424 match.key->vlan_id, in mlxsw_sp_flower_parse()
425 match.mask->vlan_id); in mlxsw_sp_flower_parse()
426 if (match.mask->vlan_priority != 0) in mlxsw_sp_flower_parse()
429 match.key->vlan_priority, in mlxsw_sp_flower_parse()
430 match.mask->vlan_priority); in mlxsw_sp_flower_parse()