veth: Fix veth_dellink method

In commit 23289a37e2
(net: add a list_head parameter to dellink() method),
I forgot to actually use this parameter in veth_dellink.

I remember feeling a bit uncomfortable about veth_close(),
because it does :

netif_carrier_off(dev);
netif_carrier_off(priv->peer);

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Eric Dumazet 2009-10-30 01:00:27 -07:00 committed by David S. Miller
parent 29906f6a42
commit 24540535d3
1 changed files with 2 additions and 2 deletions

View File

@ -450,8 +450,8 @@ static void veth_dellink(struct net_device *dev, struct list_head *head)
priv = netdev_priv(dev); priv = netdev_priv(dev);
peer = priv->peer; peer = priv->peer;
unregister_netdevice(dev); unregister_netdevice_queue(dev, head);
unregister_netdevice(peer); unregister_netdevice_queue(peer, head);
} }
static const struct nla_policy veth_policy[VETH_INFO_MAX + 1]; static const struct nla_policy veth_policy[VETH_INFO_MAX + 1];