Lines Matching refs:swkey

1274 static int __ovs_nla_put_key(const struct sw_flow_key *swkey,  in __ovs_nla_put_key()  argument
1290 if ((swkey->tun_key.ipv4_dst || is_mask)) { in __ovs_nla_put_key()
1294 opts = TUN_METADATA_OPTS(output, swkey->tun_opts_len); in __ovs_nla_put_key()
1297 swkey->tun_opts_len)) in __ovs_nla_put_key()
1301 if (swkey->phy.in_port == DP_MAX_PORTS) { in __ovs_nla_put_key()
1325 if (swkey->eth.tci || swkey->eth.type == htons(ETH_P_8021Q)) { in __ovs_nla_put_key()
1332 if (!swkey->eth.tci) in __ovs_nla_put_key()
1337 if (swkey->eth.type == htons(ETH_P_802_2)) { in __ovs_nla_put_key()
1354 if (swkey->eth.type == htons(ETH_P_IP)) { in __ovs_nla_put_key()
1367 } else if (swkey->eth.type == htons(ETH_P_IPV6)) { in __ovs_nla_put_key()
1383 } else if (swkey->eth.type == htons(ETH_P_ARP) || in __ovs_nla_put_key()
1384 swkey->eth.type == htons(ETH_P_RARP)) { in __ovs_nla_put_key()
1397 } else if (eth_p_mpls(swkey->eth.type)) { in __ovs_nla_put_key()
1407 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
1408 swkey->eth.type == htons(ETH_P_IPV6)) && in __ovs_nla_put_key()
1409 swkey->ip.frag != OVS_FRAG_TYPE_LATER) { in __ovs_nla_put_key()
1411 if (swkey->ip.proto == IPPROTO_TCP) { in __ovs_nla_put_key()
1423 } else if (swkey->ip.proto == IPPROTO_UDP) { in __ovs_nla_put_key()
1432 } else if (swkey->ip.proto == IPPROTO_SCTP) { in __ovs_nla_put_key()
1441 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
1442 swkey->ip.proto == IPPROTO_ICMP) { in __ovs_nla_put_key()
1451 } else if (swkey->eth.type == htons(ETH_P_IPV6) && in __ovs_nla_put_key()
1452 swkey->ip.proto == IPPROTO_ICMPV6) { in __ovs_nla_put_key()
1489 int ovs_nla_put_key(const struct sw_flow_key *swkey, in ovs_nla_put_key() argument
1499 err = __ovs_nla_put_key(swkey, output, is_mask, skb); in ovs_nla_put_key()