• Home
  • Raw
  • Download

Lines Matching refs:vport

22 	struct vport *vport;  member
40 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); in internal_dev_xmit()
81 struct vport *vport = ovs_internal_dev_get_vport(dev); in internal_dev_destructor() local
83 ovs_vport_free(vport); in internal_dev_destructor()
138 static struct vport *internal_dev_create(const struct vport_parms *parms) in internal_dev_create()
140 struct vport *vport; in internal_dev_create() local
145 vport = ovs_vport_alloc(0, &ovs_internal_vport_ops, parms); in internal_dev_create()
146 if (IS_ERR(vport)) { in internal_dev_create()
147 err = PTR_ERR(vport); in internal_dev_create()
153 vport->dev = dev; in internal_dev_create()
154 if (!vport->dev) { in internal_dev_create()
158 vport->dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in internal_dev_create()
159 if (!vport->dev->tstats) { in internal_dev_create()
164 dev_net_set(vport->dev, ovs_dp_get_net(vport->dp)); in internal_dev_create()
165 internal_dev = internal_dev_priv(vport->dev); in internal_dev_create()
166 internal_dev->vport = vport; in internal_dev_create()
169 if (vport->port_no == OVSP_LOCAL) in internal_dev_create()
170 vport->dev->features |= NETIF_F_NETNS_LOCAL; in internal_dev_create()
173 err = register_netdevice(vport->dev); in internal_dev_create()
176 vport->dev->priv_destructor = internal_dev_destructor; in internal_dev_create()
178 dev_set_promiscuity(vport->dev, 1); in internal_dev_create()
180 netif_start_queue(vport->dev); in internal_dev_create()
182 return vport; in internal_dev_create()
190 ovs_vport_free(vport); in internal_dev_create()
195 static void internal_dev_destroy(struct vport *vport) in internal_dev_destroy() argument
197 netif_stop_queue(vport->dev); in internal_dev_destroy()
199 dev_set_promiscuity(vport->dev, -1); in internal_dev_destroy()
202 unregister_netdevice(vport->dev); in internal_dev_destroy()
203 free_percpu(vport->dev->tstats); in internal_dev_destroy()
242 struct vport *ovs_internal_dev_get_vport(struct net_device *netdev) in ovs_internal_dev_get_vport()
247 return internal_dev_priv(netdev)->vport; in ovs_internal_dev_get_vport()