Lines Matching refs:swkey
2008 static int __ovs_nla_put_key(const struct sw_flow_key *swkey, in __ovs_nla_put_key() argument
2026 if ((swkey->tun_proto || is_mask)) { in __ovs_nla_put_key()
2030 opts = TUN_METADATA_OPTS(output, swkey->tun_opts_len); in __ovs_nla_put_key()
2033 swkey->tun_opts_len, swkey->tun_proto, 0)) in __ovs_nla_put_key()
2037 if (swkey->phy.in_port == DP_MAX_PORTS) { in __ovs_nla_put_key()
2053 if (ovs_ct_put_key(swkey, output, skb)) in __ovs_nla_put_key()
2056 if (ovs_key_mac_proto(swkey) == MAC_PROTO_ETHERNET) { in __ovs_nla_put_key()
2065 if (swkey->eth.vlan.tci || eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key()
2069 if (!swkey->eth.vlan.tci) in __ovs_nla_put_key()
2072 if (swkey->eth.cvlan.tci || eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key()
2077 if (!swkey->eth.cvlan.tci) in __ovs_nla_put_key()
2082 if (swkey->eth.type == htons(ETH_P_802_2)) { in __ovs_nla_put_key()
2100 if (eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key()
2108 if (swkey->eth.type == htons(ETH_P_IP)) { in __ovs_nla_put_key()
2121 } else if (swkey->eth.type == htons(ETH_P_IPV6)) { in __ovs_nla_put_key()
2145 } else if (swkey->eth.type == htons(ETH_P_NSH)) { in __ovs_nla_put_key()
2148 } else if (swkey->eth.type == htons(ETH_P_ARP) || in __ovs_nla_put_key()
2149 swkey->eth.type == htons(ETH_P_RARP)) { in __ovs_nla_put_key()
2162 } else if (eth_p_mpls(swkey->eth.type)) { in __ovs_nla_put_key()
2177 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
2178 swkey->eth.type == htons(ETH_P_IPV6)) && in __ovs_nla_put_key()
2179 swkey->ip.frag != OVS_FRAG_TYPE_LATER) { in __ovs_nla_put_key()
2181 if (swkey->ip.proto == IPPROTO_TCP) { in __ovs_nla_put_key()
2193 } else if (swkey->ip.proto == IPPROTO_UDP) { in __ovs_nla_put_key()
2202 } else if (swkey->ip.proto == IPPROTO_SCTP) { in __ovs_nla_put_key()
2211 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
2212 swkey->ip.proto == IPPROTO_ICMP) { in __ovs_nla_put_key()
2221 } else if (swkey->eth.type == htons(ETH_P_IPV6) && in __ovs_nla_put_key()
2222 swkey->ip.proto == IPPROTO_ICMPV6) { in __ovs_nla_put_key()
2233 if (swkey->tp.src == htons(NDISC_NEIGHBOUR_SOLICITATION) || in __ovs_nla_put_key()
2234 swkey->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in __ovs_nla_put_key()
2261 int ovs_nla_put_key(const struct sw_flow_key *swkey, in ovs_nla_put_key() argument
2271 err = __ovs_nla_put_key(swkey, output, is_mask, skb); in ovs_nla_put_key()