Lines Matching refs:swkey

2011 static int __ovs_nla_put_key(const struct sw_flow_key *swkey,
2029 if ((swkey->tun_proto || is_mask)) {
2033 opts = TUN_METADATA_OPTS(output, swkey->tun_opts_len);
2036 swkey->tun_opts_len, swkey->tun_proto, 0))
2040 if (swkey->phy.in_port == DP_MAX_PORTS) {
2056 if (ovs_ct_put_key(swkey, output, skb))
2059 if (ovs_key_mac_proto(swkey) == MAC_PROTO_ETHERNET) {
2068 if (swkey->eth.vlan.tci || eth_type_vlan(swkey->eth.type)) {
2072 if (!swkey->eth.vlan.tci)
2075 if (swkey->eth.cvlan.tci || eth_type_vlan(swkey->eth.type)) {
2080 if (!swkey->eth.cvlan.tci)
2085 if (swkey->eth.type == htons(ETH_P_802_2)) {
2103 if (eth_type_vlan(swkey->eth.type)) {
2111 if (swkey->eth.type == htons(ETH_P_IP)) {
2124 } else if (swkey->eth.type == htons(ETH_P_IPV6)) {
2148 } else if (swkey->eth.type == htons(ETH_P_NSH)) {
2151 } else if (swkey->eth.type == htons(ETH_P_ARP) ||
2152 swkey->eth.type == htons(ETH_P_RARP)) {
2165 } else if (eth_p_mpls(swkey->eth.type)) {
2180 if ((swkey->eth.type == htons(ETH_P_IP) ||
2181 swkey->eth.type == htons(ETH_P_IPV6)) &&
2182 swkey->ip.frag != OVS_FRAG_TYPE_LATER) {
2184 if (swkey->ip.proto == IPPROTO_TCP) {
2196 } else if (swkey->ip.proto == IPPROTO_UDP) {
2205 } else if (swkey->ip.proto == IPPROTO_SCTP) {
2214 } else if (swkey->eth.type == htons(ETH_P_IP) &&
2215 swkey->ip.proto == IPPROTO_ICMP) {
2224 } else if (swkey->eth.type == htons(ETH_P_IPV6) &&
2225 swkey->ip.proto == IPPROTO_ICMPV6) {
2236 if (swkey->tp.src == htons(NDISC_NEIGHBOUR_SOLICITATION) ||
2237 swkey->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) {
2264 int ovs_nla_put_key(const struct sw_flow_key *swkey,
2274 err = __ovs_nla_put_key(swkey, output, is_mask, skb);