Lines Matching refs:vport
36 static inline struct geneve_port *geneve_vport(const struct vport *vport) in geneve_vport() argument
38 return vport_priv(vport); in geneve_vport()
41 static int geneve_get_options(const struct vport *vport, in geneve_get_options() argument
44 struct geneve_port *geneve_port = geneve_vport(vport); in geneve_get_options()
51 static struct vport *geneve_tnl_create(const struct vport_parms *parms) in geneve_tnl_create()
57 struct vport *vport; in geneve_tnl_create() local
76 vport = ovs_vport_alloc(sizeof(struct geneve_port), in geneve_tnl_create()
78 if (IS_ERR(vport)) in geneve_tnl_create()
79 return vport; in geneve_tnl_create()
81 geneve_port = geneve_vport(vport); in geneve_tnl_create()
88 ovs_vport_free(vport); in geneve_tnl_create()
96 ovs_vport_free(vport); in geneve_tnl_create()
101 return vport; in geneve_tnl_create()
106 static struct vport *geneve_create(const struct vport_parms *parms) in geneve_create()
108 struct vport *vport; in geneve_create() local
110 vport = geneve_tnl_create(parms); in geneve_create()
111 if (IS_ERR(vport)) in geneve_create()
112 return vport; in geneve_create()
114 return ovs_netdev_link(vport, parms->name); in geneve_create()