• Home
  • Raw
  • Download

Lines Matching refs:match

177 	struct flow_dissector *dissector = rule->match.dissector;  in bnxt_tc_parse_flow()
188 struct flow_match_basic match; in bnxt_tc_parse_flow() local
190 flow_rule_match_basic(rule, &match); in bnxt_tc_parse_flow()
191 flow->l2_key.ether_type = match.key->n_proto; in bnxt_tc_parse_flow()
192 flow->l2_mask.ether_type = match.mask->n_proto; in bnxt_tc_parse_flow()
194 if (match.key->n_proto == htons(ETH_P_IP) || in bnxt_tc_parse_flow()
195 match.key->n_proto == htons(ETH_P_IPV6)) { in bnxt_tc_parse_flow()
196 flow->l4_key.ip_proto = match.key->ip_proto; in bnxt_tc_parse_flow()
197 flow->l4_mask.ip_proto = match.mask->ip_proto; in bnxt_tc_parse_flow()
202 struct flow_match_eth_addrs match; in bnxt_tc_parse_flow() local
204 flow_rule_match_eth_addrs(rule, &match); in bnxt_tc_parse_flow()
206 ether_addr_copy(flow->l2_key.dmac, match.key->dst); in bnxt_tc_parse_flow()
207 ether_addr_copy(flow->l2_mask.dmac, match.mask->dst); in bnxt_tc_parse_flow()
208 ether_addr_copy(flow->l2_key.smac, match.key->src); in bnxt_tc_parse_flow()
209 ether_addr_copy(flow->l2_mask.smac, match.mask->src); in bnxt_tc_parse_flow()
213 struct flow_match_vlan match; in bnxt_tc_parse_flow() local
215 flow_rule_match_vlan(rule, &match); in bnxt_tc_parse_flow()
217 cpu_to_be16(VLAN_TCI(match.key->vlan_id, in bnxt_tc_parse_flow()
218 match.key->vlan_priority)); in bnxt_tc_parse_flow()
220 cpu_to_be16((VLAN_TCI(match.mask->vlan_id, in bnxt_tc_parse_flow()
221 match.mask->vlan_priority))); in bnxt_tc_parse_flow()
228 struct flow_match_ipv4_addrs match; in bnxt_tc_parse_flow() local
230 flow_rule_match_ipv4_addrs(rule, &match); in bnxt_tc_parse_flow()
232 flow->l3_key.ipv4.daddr.s_addr = match.key->dst; in bnxt_tc_parse_flow()
233 flow->l3_mask.ipv4.daddr.s_addr = match.mask->dst; in bnxt_tc_parse_flow()
234 flow->l3_key.ipv4.saddr.s_addr = match.key->src; in bnxt_tc_parse_flow()
235 flow->l3_mask.ipv4.saddr.s_addr = match.mask->src; in bnxt_tc_parse_flow()
237 struct flow_match_ipv6_addrs match; in bnxt_tc_parse_flow() local
239 flow_rule_match_ipv6_addrs(rule, &match); in bnxt_tc_parse_flow()
241 flow->l3_key.ipv6.daddr = match.key->dst; in bnxt_tc_parse_flow()
242 flow->l3_mask.ipv6.daddr = match.mask->dst; in bnxt_tc_parse_flow()
243 flow->l3_key.ipv6.saddr = match.key->src; in bnxt_tc_parse_flow()
244 flow->l3_mask.ipv6.saddr = match.mask->src; in bnxt_tc_parse_flow()
248 struct flow_match_ports match; in bnxt_tc_parse_flow() local
250 flow_rule_match_ports(rule, &match); in bnxt_tc_parse_flow()
252 flow->l4_key.ports.dport = match.key->dst; in bnxt_tc_parse_flow()
253 flow->l4_mask.ports.dport = match.mask->dst; in bnxt_tc_parse_flow()
254 flow->l4_key.ports.sport = match.key->src; in bnxt_tc_parse_flow()
255 flow->l4_mask.ports.sport = match.mask->src; in bnxt_tc_parse_flow()
259 struct flow_match_icmp match; in bnxt_tc_parse_flow() local
261 flow_rule_match_icmp(rule, &match); in bnxt_tc_parse_flow()
263 flow->l4_key.icmp.type = match.key->type; in bnxt_tc_parse_flow()
264 flow->l4_key.icmp.code = match.key->code; in bnxt_tc_parse_flow()
265 flow->l4_mask.icmp.type = match.mask->type; in bnxt_tc_parse_flow()
266 flow->l4_mask.icmp.code = match.mask->code; in bnxt_tc_parse_flow()
270 struct flow_match_ipv4_addrs match; in bnxt_tc_parse_flow() local
272 flow_rule_match_enc_ipv4_addrs(rule, &match); in bnxt_tc_parse_flow()
274 flow->tun_key.u.ipv4.dst = match.key->dst; in bnxt_tc_parse_flow()
275 flow->tun_mask.u.ipv4.dst = match.mask->dst; in bnxt_tc_parse_flow()
276 flow->tun_key.u.ipv4.src = match.key->src; in bnxt_tc_parse_flow()
277 flow->tun_mask.u.ipv4.src = match.mask->src; in bnxt_tc_parse_flow()
284 struct flow_match_enc_keyid match; in bnxt_tc_parse_flow() local
286 flow_rule_match_enc_keyid(rule, &match); in bnxt_tc_parse_flow()
288 flow->tun_key.tun_id = key32_to_tunnel_id(match.key->keyid); in bnxt_tc_parse_flow()
289 flow->tun_mask.tun_id = key32_to_tunnel_id(match.mask->keyid); in bnxt_tc_parse_flow()
293 struct flow_match_ports match; in bnxt_tc_parse_flow() local
295 flow_rule_match_enc_ports(rule, &match); in bnxt_tc_parse_flow()
297 flow->tun_key.tp_dst = match.key->dst; in bnxt_tc_parse_flow()
298 flow->tun_mask.tp_dst = match.mask->dst; in bnxt_tc_parse_flow()
299 flow->tun_key.tp_src = match.key->src; in bnxt_tc_parse_flow()
300 flow->tun_mask.tp_src = match.mask->src; in bnxt_tc_parse_flow()