Lines Matching refs:vport
58 static inline struct vxlan_port *vxlan_vport(const struct vport *vport) in vxlan_vport() argument
60 return vport_priv(vport); in vxlan_vport()
69 struct vport *vport = vs->data; in vxlan_rcv() local
78 vxlan_port = vxlan_vport(vport); in vxlan_rcv()
89 ovs_vport_receive(vport, skb, &tun_info); in vxlan_rcv()
92 static int vxlan_get_options(const struct vport *vport, struct sk_buff *skb) in vxlan_get_options() argument
94 struct vxlan_port *vxlan_port = vxlan_vport(vport); in vxlan_get_options()
117 static void vxlan_tnl_destroy(struct vport *vport) in vxlan_tnl_destroy() argument
119 struct vxlan_port *vxlan_port = vxlan_vport(vport); in vxlan_tnl_destroy()
123 ovs_vport_deferred_free(vport); in vxlan_tnl_destroy()
130 static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr) in vxlan_configure_exts() argument
143 vxlan_port = vxlan_vport(vport); in vxlan_configure_exts()
151 static struct vport *vxlan_tnl_create(const struct vport_parms *parms) in vxlan_tnl_create()
157 struct vport *vport; in vxlan_tnl_create() local
175 vport = ovs_vport_alloc(sizeof(struct vxlan_port), in vxlan_tnl_create()
177 if (IS_ERR(vport)) in vxlan_tnl_create()
178 return vport; in vxlan_tnl_create()
180 vxlan_port = vxlan_vport(vport); in vxlan_tnl_create()
185 err = vxlan_configure_exts(vport, a); in vxlan_tnl_create()
187 ovs_vport_free(vport); in vxlan_tnl_create()
192 vs = vxlan_sock_add(net, htons(dst_port), vxlan_rcv, vport, true, in vxlan_tnl_create()
195 ovs_vport_free(vport); in vxlan_tnl_create()
200 return vport; in vxlan_tnl_create()
221 static int vxlan_tnl_send(struct vport *vport, struct sk_buff *skb) in vxlan_tnl_send() argument
223 struct net *net = ovs_dp_get_net(vport->dp); in vxlan_tnl_send()
224 struct vxlan_port *vxlan_port = vxlan_vport(vport); in vxlan_tnl_send()
271 static int vxlan_get_egress_tun_info(struct vport *vport, struct sk_buff *skb, in vxlan_get_egress_tun_info() argument
274 struct net *net = ovs_dp_get_net(vport->dp); in vxlan_get_egress_tun_info()
275 struct vxlan_port *vxlan_port = vxlan_vport(vport); in vxlan_get_egress_tun_info()
290 static const char *vxlan_get_name(const struct vport *vport) in vxlan_get_name() argument
292 struct vxlan_port *vxlan_port = vxlan_vport(vport); in vxlan_get_name()