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()
2116 } else if (swkey->eth.type == htons(ETH_P_NSH)) { in __ovs_nla_put_key()
2119 } else if (swkey->eth.type == htons(ETH_P_ARP) || in __ovs_nla_put_key()
2120 swkey->eth.type == htons(ETH_P_RARP)) { in __ovs_nla_put_key()
2133 } else if (eth_p_mpls(swkey->eth.type)) { in __ovs_nla_put_key()
2148 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
2149 swkey->eth.type == htons(ETH_P_IPV6)) && in __ovs_nla_put_key()
2150 swkey->ip.frag != OVS_FRAG_TYPE_LATER) { in __ovs_nla_put_key()
2152 if (swkey->ip.proto == IPPROTO_TCP) { in __ovs_nla_put_key()
2164 } else if (swkey->ip.proto == IPPROTO_UDP) { in __ovs_nla_put_key()
2173 } else if (swkey->ip.proto == IPPROTO_SCTP) { in __ovs_nla_put_key()
2182 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
2183 swkey->ip.proto == IPPROTO_ICMP) { in __ovs_nla_put_key()
2192 } else if (swkey->eth.type == htons(ETH_P_IPV6) && in __ovs_nla_put_key()
2193 swkey->ip.proto == IPPROTO_ICMPV6) { in __ovs_nla_put_key()
2204 if (swkey->tp.src == htons(NDISC_NEIGHBOUR_SOLICITATION) || in __ovs_nla_put_key()
2205 swkey->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in __ovs_nla_put_key()
2232 int ovs_nla_put_key(const struct sw_flow_key *swkey, in ovs_nla_put_key() argument
2242 err = __ovs_nla_put_key(swkey, output, is_mask, skb); in ovs_nla_put_key()