Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: net/ipv6/xfrm6_output.c net/openvswitch/flow_netlink.c net/openvswitch/vport-gre.c net/openvswitch/vport-vxlan.c net/openvswitch/vport.c net/openvswitch/vport.h The openvswitch conflicts were overlapping changes. One was the egress tunnel info fix in 'net' and the other was the vport ->send() op simplification in 'net-next'. The xfrm6_output.c conflicts was also a simplification overlapping a bug fix. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -146,32 +146,12 @@ static struct vport *vxlan_create(const struct vport_parms *parms)
|
||||
return ovs_netdev_link(vport, parms->name);
|
||||
}
|
||||
|
||||
static int vxlan_get_egress_tun_info(struct vport *vport, struct sk_buff *skb,
|
||||
struct dp_upcall_info *upcall)
|
||||
{
|
||||
struct vxlan_dev *vxlan = netdev_priv(vport->dev);
|
||||
struct net *net = ovs_dp_get_net(vport->dp);
|
||||
unsigned short family = ip_tunnel_info_af(upcall->egress_tun_info);
|
||||
__be16 dst_port = vxlan_dev_dst_port(vxlan, family);
|
||||
__be16 src_port;
|
||||
int port_min;
|
||||
int port_max;
|
||||
|
||||
inet_get_local_port_range(net, &port_min, &port_max);
|
||||
src_port = udp_flow_src_port(net, skb, 0, 0, true);
|
||||
|
||||
return ovs_tunnel_get_egress_info(upcall, net,
|
||||
skb, IPPROTO_UDP,
|
||||
src_port, dst_port);
|
||||
}
|
||||
|
||||
static struct vport_ops ovs_vxlan_netdev_vport_ops = {
|
||||
.type = OVS_VPORT_TYPE_VXLAN,
|
||||
.create = vxlan_create,
|
||||
.destroy = ovs_netdev_tunnel_destroy,
|
||||
.get_options = vxlan_get_options,
|
||||
.send = dev_queue_xmit,
|
||||
.get_egress_tun_info = vxlan_get_egress_tun_info,
|
||||
};
|
||||
|
||||
static int __init ovs_vxlan_tnl_init(void)
|
||||
|
Reference in New Issue
Block a user