Home
last modified time | relevance | path

Searched refs:netdev_vport (Results 1 – 3 of 3) sorted by relevance

/linux-3.4.99/net/openvswitch/
Dvport-netdev.c74 struct netdev_vport *netdev_vport; in netdev_create() local
77 vport = ovs_vport_alloc(sizeof(struct netdev_vport), in netdev_create()
84 netdev_vport = netdev_vport_priv(vport); in netdev_create()
86 netdev_vport->dev = dev_get_by_name(&init_net, parms->name); in netdev_create()
87 if (!netdev_vport->dev) { in netdev_create()
92 if (netdev_vport->dev->flags & IFF_LOOPBACK || in netdev_create()
93 netdev_vport->dev->type != ARPHRD_ETHER || in netdev_create()
94 ovs_is_internal_dev(netdev_vport->dev)) { in netdev_create()
99 err = netdev_rx_handler_register(netdev_vport->dev, netdev_frame_hook, in netdev_create()
104 dev_set_promiscuity(netdev_vport->dev, 1); in netdev_create()
[all …]
Dvport-internal_dev.c158 struct netdev_vport *netdev_vport; in internal_dev_create() local
162 vport = ovs_vport_alloc(sizeof(struct netdev_vport), in internal_dev_create()
169 netdev_vport = netdev_vport_priv(vport); in internal_dev_create()
171 netdev_vport->dev = alloc_netdev(sizeof(struct internal_dev), in internal_dev_create()
173 if (!netdev_vport->dev) { in internal_dev_create()
178 internal_dev = internal_dev_priv(netdev_vport->dev); in internal_dev_create()
181 err = register_netdevice(netdev_vport->dev); in internal_dev_create()
185 dev_set_promiscuity(netdev_vport->dev, 1); in internal_dev_create()
186 netif_start_queue(netdev_vport->dev); in internal_dev_create()
191 free_netdev(netdev_vport->dev); in internal_dev_create()
[all …]
Dvport-netdev.h28 struct netdev_vport { struct
32 static inline struct netdev_vport * argument