Lines Matching refs:flow_key
498 static int validate_tp_port(const struct sw_flow_key *flow_key) in validate_tp_port() argument
500 if (flow_key->eth.type == htons(ETH_P_IP)) { in validate_tp_port()
501 if (flow_key->ipv4.tp.src || flow_key->ipv4.tp.dst) in validate_tp_port()
503 } else if (flow_key->eth.type == htons(ETH_P_IPV6)) { in validate_tp_port()
504 if (flow_key->ipv6.tp.src || flow_key->ipv6.tp.dst) in validate_tp_port()
512 const struct sw_flow_key *flow_key) in validate_set() argument
535 if (flow_key->eth.type != htons(ETH_P_IP)) in validate_set()
538 if (!flow_key->ip.proto) in validate_set()
542 if (ipv4_key->ipv4_proto != flow_key->ip.proto) in validate_set()
545 if (ipv4_key->ipv4_frag != flow_key->ip.frag) in validate_set()
551 if (flow_key->eth.type != htons(ETH_P_IPV6)) in validate_set()
554 if (!flow_key->ip.proto) in validate_set()
558 if (ipv6_key->ipv6_proto != flow_key->ip.proto) in validate_set()
561 if (ipv6_key->ipv6_frag != flow_key->ip.frag) in validate_set()
570 if (flow_key->ip.proto != IPPROTO_TCP) in validate_set()
573 return validate_tp_port(flow_key); in validate_set()
576 if (flow_key->ip.proto != IPPROTO_UDP) in validate_set()
579 return validate_tp_port(flow_key); in validate_set()