Searched refs:tun_key (Results 1 - 8 of 8) sorted by relevance

/linux-4.1.27/net/openvswitch/
H A Dvport-gre.c70 const struct ovs_key_ipv4_tunnel *tun_key; __build_header() local
72 tun_key = &OVS_CB(skb)->egress_tun_info->tunnel; __build_header()
74 skb = gre_handle_offloads(skb, !!(tun_key->tun_flags & TUNNEL_CSUM)); __build_header()
78 tpi.flags = filter_tnl_flags(tun_key->tun_flags); __build_header()
80 tpi.key = be64_get_low32(tun_key->tun_id); __build_header()
137 const struct ovs_key_ipv4_tunnel *tun_key; gre_tnl_send() local
150 tun_key = &OVS_CB(skb)->egress_tun_info->tunnel; gre_tnl_send()
151 rt = ovs_tunnel_route_lookup(net, tun_key, skb->mark, &fl, IPPROTO_GRE); gre_tnl_send()
157 tunnel_hlen = ip_gre_calc_hlen(tun_key->tun_flags); gre_tnl_send()
186 df = tun_key->tun_flags & TUNNEL_DONT_FRAGMENT ? gre_tnl_send()
192 tun_key->ipv4_dst, IPPROTO_GRE, gre_tnl_send()
193 tun_key->ipv4_tos, tun_key->ipv4_ttl, df, false); gre_tnl_send()
H A Dvport-geneve.c173 const struct ovs_key_ipv4_tunnel *tun_key; geneve_tnl_send() local
191 tun_key = &tun_info->tunnel; geneve_tnl_send()
192 rt = ovs_tunnel_route_lookup(net, tun_key, skb->mark, &fl, IPPROTO_UDP); geneve_tnl_send()
198 df = tun_key->tun_flags & TUNNEL_DONT_FRAGMENT ? htons(IP_DF) : 0; geneve_tnl_send()
200 tunnel_id_to_vni(tun_key->tun_id, vni); geneve_tnl_send()
203 if (tun_key->tun_flags & TUNNEL_GENEVE_OPT) { geneve_tnl_send()
212 tun_key->ipv4_dst, tun_key->ipv4_tos, geneve_tnl_send()
213 tun_key->ipv4_ttl, df, sport, dport, geneve_tnl_send()
214 tun_key->tun_flags, vni, opts_len, opts, geneve_tnl_send()
215 !!(tun_key->tun_flags & TUNNEL_CSUM), false); geneve_tnl_send()
H A Dvport-vxlan.c227 const struct ovs_key_ipv4_tunnel *tun_key; vxlan_tnl_send() local
241 tun_key = &OVS_CB(skb)->egress_tun_info->tunnel; vxlan_tnl_send()
242 rt = ovs_tunnel_route_lookup(net, tun_key, skb->mark, &fl, IPPROTO_UDP); vxlan_tnl_send()
248 df = tun_key->tun_flags & TUNNEL_DONT_FRAGMENT ? vxlan_tnl_send()
254 md.vni = htonl(be64_to_cpu(tun_key->tun_id) << 8); vxlan_tnl_send()
257 (tun_key->tun_flags & TUNNEL_CSUM ? VXLAN_F_UDP_CSUM : 0); vxlan_tnl_send()
259 err = vxlan_xmit_skb(rt, sk, skb, fl.saddr, tun_key->ipv4_dst, vxlan_tnl_send()
260 tun_key->ipv4_tos, tun_key->ipv4_ttl, df, vxlan_tnl_send()
H A Dvport.c466 * @tun_key: tunnel (if any) that carried packet
583 const struct ovs_key_ipv4_tunnel *tun_key; ovs_tunnel_get_egress_info() local
590 tun_key = &tun_info->tunnel; ovs_tunnel_get_egress_info()
596 rt = ovs_tunnel_route_lookup(net, tun_key, skb_mark, &fl, ipproto); ovs_tunnel_get_egress_info()
606 fl.saddr, tun_key->ipv4_dst, ovs_tunnel_get_egress_info()
607 tun_key->ipv4_tos, ovs_tunnel_get_egress_info()
608 tun_key->ipv4_ttl, ovs_tunnel_get_egress_info()
610 tun_key->tun_id, ovs_tunnel_get_egress_info()
611 tun_key->tun_flags, ovs_tunnel_get_egress_info()
H A Dflow_netlink.c532 SW_FLOW_KEY_PUT(match, tun_key.tun_id, nla_for_each_nested()
537 SW_FLOW_KEY_PUT(match, tun_key.ipv4_src, nla_for_each_nested()
541 SW_FLOW_KEY_PUT(match, tun_key.ipv4_dst, nla_for_each_nested()
545 SW_FLOW_KEY_PUT(match, tun_key.ipv4_tos, nla_for_each_nested()
549 SW_FLOW_KEY_PUT(match, tun_key.ipv4_ttl, nla_for_each_nested()
560 SW_FLOW_KEY_PUT(match, tun_key.tp_src, nla_for_each_nested()
564 SW_FLOW_KEY_PUT(match, tun_key.tp_dst, nla_for_each_nested()
603 SW_FLOW_KEY_PUT(match, tun_key.tun_flags, tun_flags, is_mask);
612 if (!match->key->tun_key.ipv4_dst) {
1119 if (match->key->tun_key.ipv4_dst) ovs_nla_get_match()
1120 SW_FLOW_KEY_MEMSET_FIELD(match, tun_key, ovs_nla_get_match()
1240 * @key: Receives extracted in_port, priority, tun_key and skb_mark.
1290 if ((swkey->tun_key.ipv4_dst || is_mask)) { __ovs_nla_put_key()
1293 if (output->tun_key.tun_flags & TUNNEL_OPTIONS_PRESENT) __ovs_nla_put_key()
1296 if (ipv4_tun_to_nlattr(skb, &output->tun_key, opts, __ovs_nla_put_key()
1739 key->tun_key.tun_flags |= crit_opt ? TUNNEL_CRIT_OPT : 0; validate_geneve_opts()
1780 tun_info->tunnel = key.tun_key; validate_and_copy_set_tun()
H A Dflow.h125 struct ovs_key_ipv4_tunnel tun_key; /* Encapsulating tunnel key. */ member in struct:sw_flow_key
130 } __packed phy; /* Safe when right after 'tun_key'. */
H A Dflow.c690 memcpy(&key->tun_key, &tun_info->tunnel, sizeof(key->tun_key)); ovs_flow_key_extract()
704 memset(&key->tun_key, 0, sizeof(key->tun_key)); ovs_flow_key_extract()
H A Dflow_table.c429 if (key->tun_key.ipv4_dst) flow_key_start()

Completed in 209 milliseconds