veth.c (23289a37e2b127dfc4de1313fba15bb4c9f0cd5b) veth.c (24540535d33f72505807be3e7ef2e94f3726f971)
1/*
2 * drivers/net/veth.c
3 *
4 * Copyright (C) 2007 OpenVZ http://openvz.org, SWsoft Inc
5 *
6 * Author: Pavel Emelianov <xemul@openvz.org>
7 * Ethtool interface from: Eric W. Biederman <ebiederm@xmission.com>
8 *

--- 436 unchanged lines hidden (view full) ---

445static void veth_dellink(struct net_device *dev, struct list_head *head)
446{
447 struct veth_priv *priv;
448 struct net_device *peer;
449
450 priv = netdev_priv(dev);
451 peer = priv->peer;
452
1/*
2 * drivers/net/veth.c
3 *
4 * Copyright (C) 2007 OpenVZ http://openvz.org, SWsoft Inc
5 *
6 * Author: Pavel Emelianov <xemul@openvz.org>
7 * Ethtool interface from: Eric W. Biederman <ebiederm@xmission.com>
8 *

--- 436 unchanged lines hidden (view full) ---

445static void veth_dellink(struct net_device *dev, struct list_head *head)
446{
447 struct veth_priv *priv;
448 struct net_device *peer;
449
450 priv = netdev_priv(dev);
451 peer = priv->peer;
452
453 unregister_netdevice(dev);
454 unregister_netdevice(peer);
453 unregister_netdevice_queue(dev, head);
454 unregister_netdevice_queue(peer, head);
455}
456
457static const struct nla_policy veth_policy[VETH_INFO_MAX + 1];
458
459static struct rtnl_link_ops veth_link_ops = {
460 .kind = DRV_NAME,
461 .priv_size = sizeof(struct veth_priv),
462 .setup = veth_setup,

--- 27 unchanged lines hidden ---
455}
456
457static const struct nla_policy veth_policy[VETH_INFO_MAX + 1];
458
459static struct rtnl_link_ops veth_link_ops = {
460 .kind = DRV_NAME,
461 .priv_size = sizeof(struct veth_priv),
462 .setup = veth_setup,

--- 27 unchanged lines hidden ---