Lines Matching refs:vport

22 	struct vport *vport;  member
42 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); in internal_dev_xmit()
78 struct vport *vport = ovs_internal_dev_get_vport(dev); in internal_dev_destructor() local
80 ovs_vport_free(vport); in internal_dev_destructor()
123 static struct vport *internal_dev_create(const struct vport_parms *parms) in internal_dev_create()
125 struct vport *vport; in internal_dev_create() local
130 vport = ovs_vport_alloc(0, &ovs_internal_vport_ops, parms); in internal_dev_create()
131 if (IS_ERR(vport)) { in internal_dev_create()
132 err = PTR_ERR(vport); in internal_dev_create()
138 vport->dev = dev; in internal_dev_create()
139 if (!vport->dev) { in internal_dev_create()
145 dev_net_set(vport->dev, ovs_dp_get_net(vport->dp)); in internal_dev_create()
147 internal_dev = internal_dev_priv(vport->dev); in internal_dev_create()
148 internal_dev->vport = vport; in internal_dev_create()
151 if (vport->port_no == OVSP_LOCAL) in internal_dev_create()
152 vport->dev->netns_local = true; in internal_dev_create()
155 err = register_netdevice(vport->dev); in internal_dev_create()
158 vport->dev->priv_destructor = internal_dev_destructor; in internal_dev_create()
160 dev_set_promiscuity(vport->dev, 1); in internal_dev_create()
162 netif_start_queue(vport->dev); in internal_dev_create()
164 return vport; in internal_dev_create()
170 ovs_vport_free(vport); in internal_dev_create()
175 static void internal_dev_destroy(struct vport *vport) in internal_dev_destroy() argument
177 netif_stop_queue(vport->dev); in internal_dev_destroy()
179 dev_set_promiscuity(vport->dev, -1); in internal_dev_destroy()
182 unregister_netdevice(vport->dev); in internal_dev_destroy()
221 struct vport *ovs_internal_dev_get_vport(struct net_device *netdev) in ovs_internal_dev_get_vport()
226 return internal_dev_priv(netdev)->vport; in ovs_internal_dev_get_vport()