Lines Matching refs:swkey
2024 static int __ovs_nla_put_key(const struct sw_flow_key *swkey, in __ovs_nla_put_key() argument
2042 if ((swkey->tun_proto || is_mask)) { in __ovs_nla_put_key()
2046 opts = TUN_METADATA_OPTS(output, swkey->tun_opts_len); in __ovs_nla_put_key()
2049 swkey->tun_opts_len, swkey->tun_proto, 0)) in __ovs_nla_put_key()
2053 if (swkey->phy.in_port == DP_MAX_PORTS) { in __ovs_nla_put_key()
2069 if (ovs_ct_put_key(swkey, output, skb)) in __ovs_nla_put_key()
2072 if (ovs_key_mac_proto(swkey) == MAC_PROTO_ETHERNET) { in __ovs_nla_put_key()
2081 if (swkey->eth.vlan.tci || eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key()
2085 if (!swkey->eth.vlan.tci) in __ovs_nla_put_key()
2088 if (swkey->eth.cvlan.tci || eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key()
2093 if (!swkey->eth.cvlan.tci) in __ovs_nla_put_key()
2098 if (swkey->eth.type == htons(ETH_P_802_2)) { in __ovs_nla_put_key()
2116 if (eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key()
2124 if (swkey->eth.type == htons(ETH_P_IP)) { in __ovs_nla_put_key()
2137 } else if (swkey->eth.type == htons(ETH_P_IPV6)) { in __ovs_nla_put_key()
2161 } else if (swkey->eth.type == htons(ETH_P_NSH)) { in __ovs_nla_put_key()
2164 } else if (swkey->eth.type == htons(ETH_P_ARP) || in __ovs_nla_put_key()
2165 swkey->eth.type == htons(ETH_P_RARP)) { in __ovs_nla_put_key()
2178 } else if (eth_p_mpls(swkey->eth.type)) { in __ovs_nla_put_key()
2193 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
2194 swkey->eth.type == htons(ETH_P_IPV6)) && in __ovs_nla_put_key()
2195 swkey->ip.frag != OVS_FRAG_TYPE_LATER) { in __ovs_nla_put_key()
2197 if (swkey->ip.proto == IPPROTO_TCP) { in __ovs_nla_put_key()
2209 } else if (swkey->ip.proto == IPPROTO_UDP) { in __ovs_nla_put_key()
2218 } else if (swkey->ip.proto == IPPROTO_SCTP) { in __ovs_nla_put_key()
2227 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
2228 swkey->ip.proto == IPPROTO_ICMP) { in __ovs_nla_put_key()
2237 } else if (swkey->eth.type == htons(ETH_P_IPV6) && in __ovs_nla_put_key()
2238 swkey->ip.proto == IPPROTO_ICMPV6) { in __ovs_nla_put_key()
2249 if (swkey->tp.src == htons(NDISC_NEIGHBOUR_SOLICITATION) || in __ovs_nla_put_key()
2250 swkey->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in __ovs_nla_put_key()
2277 int ovs_nla_put_key(const struct sw_flow_key *swkey, in ovs_nla_put_key() argument
2287 err = __ovs_nla_put_key(swkey, output, is_mask, skb); in ovs_nla_put_key()