Lines Matching refs:swkey
1987 static int __ovs_nla_put_key(const struct sw_flow_key *swkey, in __ovs_nla_put_key() argument
2005 if ((swkey->tun_proto || is_mask)) { in __ovs_nla_put_key()
2009 opts = TUN_METADATA_OPTS(output, swkey->tun_opts_len); in __ovs_nla_put_key()
2012 swkey->tun_opts_len, swkey->tun_proto, 0)) in __ovs_nla_put_key()
2016 if (swkey->phy.in_port == DP_MAX_PORTS) { in __ovs_nla_put_key()
2032 if (ovs_ct_put_key(swkey, output, skb)) in __ovs_nla_put_key()
2035 if (ovs_key_mac_proto(swkey) == MAC_PROTO_ETHERNET) { in __ovs_nla_put_key()
2044 if (swkey->eth.vlan.tci || eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key()
2048 if (!swkey->eth.vlan.tci) in __ovs_nla_put_key()
2051 if (swkey->eth.cvlan.tci || eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key()
2056 if (!swkey->eth.cvlan.tci) in __ovs_nla_put_key()
2061 if (swkey->eth.type == htons(ETH_P_802_2)) { in __ovs_nla_put_key()
2079 if (eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key()
2087 if (swkey->eth.type == htons(ETH_P_IP)) { in __ovs_nla_put_key()
2100 } else if (swkey->eth.type == htons(ETH_P_IPV6)) { in __ovs_nla_put_key()
2124 } else if (swkey->eth.type == htons(ETH_P_NSH)) { in __ovs_nla_put_key()
2127 } else if (swkey->eth.type == htons(ETH_P_ARP) || in __ovs_nla_put_key()
2128 swkey->eth.type == htons(ETH_P_RARP)) { in __ovs_nla_put_key()
2141 } else if (eth_p_mpls(swkey->eth.type)) { in __ovs_nla_put_key()
2156 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
2157 swkey->eth.type == htons(ETH_P_IPV6)) && in __ovs_nla_put_key()
2158 swkey->ip.frag != OVS_FRAG_TYPE_LATER) { in __ovs_nla_put_key()
2160 if (swkey->ip.proto == IPPROTO_TCP) { in __ovs_nla_put_key()
2172 } else if (swkey->ip.proto == IPPROTO_UDP) { in __ovs_nla_put_key()
2181 } else if (swkey->ip.proto == IPPROTO_SCTP) { in __ovs_nla_put_key()
2190 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
2191 swkey->ip.proto == IPPROTO_ICMP) { in __ovs_nla_put_key()
2200 } else if (swkey->eth.type == htons(ETH_P_IPV6) && in __ovs_nla_put_key()
2201 swkey->ip.proto == IPPROTO_ICMPV6) { in __ovs_nla_put_key()
2212 if (swkey->tp.src == htons(NDISC_NEIGHBOUR_SOLICITATION) || in __ovs_nla_put_key()
2213 swkey->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in __ovs_nla_put_key()
2240 int ovs_nla_put_key(const struct sw_flow_key *swkey, in ovs_nla_put_key() argument
2250 err = __ovs_nla_put_key(swkey, output, is_mask, skb); in ovs_nla_put_key()