Lines Matching defs:vport
17 #include "vport.h"
18 #include "vport-netdev.h"
22 static int vxlan_get_options(const struct vport *vport, struct sk_buff *skb)
24 struct vxlan_dev *vxlan = netdev_priv(vport->dev);
51 static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr,
71 static struct vport *vxlan_tnl_create(const struct vport_parms *parms)
76 struct vport *vport;
100 vport = ovs_vport_alloc(0, &ovs_vxlan_netdev_vport_ops, parms);
101 if (IS_ERR(vport))
102 return vport;
106 err = vxlan_configure_exts(vport, a, &conf);
108 ovs_vport_free(vport);
117 ovs_vport_free(vport);
125 ovs_vport_free(vport);
130 return vport;
135 static struct vport *vxlan_create(const struct vport_parms *parms)
137 struct vport *vport;
139 vport = vxlan_tnl_create(parms);
140 if (IS_ERR(vport))
141 return vport;
143 return ovs_netdev_link(vport, parms->name);
169 MODULE_ALIAS("vport-type-4");