• Home
  • Raw
  • Download

Lines Matching refs:key

148 	__be16 key, mask;  in prestera_flower_parse_meta()  local
158 match.key->ingress_ifindex); in prestera_flower_parse_meta()
173 key = htons(port->hw_id << 3); in prestera_flower_parse_meta()
174 rule_match_set(r_match->key, SYS_PORT, key); in prestera_flower_parse_meta()
178 key = htons(port->dev_id); in prestera_flower_parse_meta()
179 rule_match_set(r_match->key, SYS_DEV, key); in prestera_flower_parse_meta()
225 addr_type = match.key->addr_type; in prestera_flower_parse()
232 n_proto_key = match.key->n_proto; in prestera_flower_parse()
235 if (ntohs(match.key->n_proto) == ETH_P_ALL) { in prestera_flower_parse()
240 rule_match_set(r_match->key, ETH_TYPE, n_proto_key); in prestera_flower_parse()
243 rule_match_set(r_match->key, IP_PROTO, match.key->ip_proto); in prestera_flower_parse()
245 ip_proto = match.key->ip_proto; in prestera_flower_parse()
254 rule_match_set_n(r_match->key, in prestera_flower_parse()
255 ETH_DMAC_0, &match.key->dst[0], 4); in prestera_flower_parse()
256 rule_match_set_n(r_match->key, in prestera_flower_parse()
257 ETH_DMAC_1, &match.key->dst[4], 2); in prestera_flower_parse()
265 rule_match_set_n(r_match->key, in prestera_flower_parse()
266 ETH_SMAC_0, &match.key->src[0], 4); in prestera_flower_parse()
267 rule_match_set_n(r_match->key, in prestera_flower_parse()
268 ETH_SMAC_1, &match.key->src[4], 2); in prestera_flower_parse()
281 rule_match_set(r_match->key, IP_SRC, match.key->src); in prestera_flower_parse()
284 rule_match_set(r_match->key, IP_DST, match.key->dst); in prestera_flower_parse()
300 rule_match_set(r_match->key, L4_PORT_SRC, match.key->src); in prestera_flower_parse()
303 rule_match_set(r_match->key, L4_PORT_DST, match.key->dst); in prestera_flower_parse()
314 tp_key = htonl(ntohs(match.key->tp_min.src) | in prestera_flower_parse()
315 (ntohs(match.key->tp_max.src) << 16)); in prestera_flower_parse()
318 rule_match_set(r_match->key, L4_PORT_RANGE_SRC, tp_key); in prestera_flower_parse()
322 tp_key = htonl(ntohs(match.key->tp_min.dst) | in prestera_flower_parse()
323 (ntohs(match.key->tp_max.dst) << 16)); in prestera_flower_parse()
326 rule_match_set(r_match->key, L4_PORT_RANGE_DST, tp_key); in prestera_flower_parse()
336 __be16 key = cpu_to_be16(match.key->vlan_id); in prestera_flower_parse() local
339 rule_match_set(r_match->key, VLAN_ID, key); in prestera_flower_parse()
343 rule_match_set(r_match->key, VLAN_TPID, match.key->vlan_tpid); in prestera_flower_parse()
352 rule_match_set(r_match->key, ICMP_TYPE, match.key->type); in prestera_flower_parse()
355 rule_match_set(r_match->key, ICMP_CODE, match.key->code); in prestera_flower_parse()