-#define OVS_VXLAN_RCV_PRIORITY 8
-
-/**
- * struct vxlan_port - Keeps track of open UDP ports
- * @vh: vxlan_handler created for the port.
- * @name: vport name.
- */
-struct vxlan_port {
- struct vxlan_handler *vh;
- char name[IFNAMSIZ];
-};
-
-static inline struct vxlan_port *vxlan_vport(const struct vport *vport)
-{
- return vport_priv(vport);
-}
-
-/* Called with rcu_read_lock and BH disabled. */
-static int vxlan_rcv(struct vxlan_handler *vh, struct sk_buff *skb, __be32 vx_vni)
-{
- struct vport *vport = vh->data;
- struct iphdr *iph;
- struct ovs_key_ipv4_tunnel tun_key;
- __be64 key;
-
- /* Save outer tunnel values */
- iph = ip_hdr(skb);
- key = cpu_to_be64(ntohl(vx_vni) >> 8);
- ovs_flow_tun_key_init(&tun_key, iph, key, TUNNEL_KEY);
-
- ovs_vport_receive(vport, skb, &tun_key);
- return PACKET_RCVD;
-}