aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-12-11 13:28:06 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-12-11 13:28:06 +0100
commit3119e27b27c22c655fac424c006879b5d10442b7 (patch)
tree3bab591aa9e3cc881143666dc560bc0b37e2ba95 /src
parentdevice: disable ipv6 auto address generation (diff)
downloadwireguard-monolithic-historical-3119e27b27c22c655fac424c006879b5d10442b7.tar.xz
wireguard-monolithic-historical-3119e27b27c22c655fac424c006879b5d10442b7.zip
device: dellink is already implictly unregister_netdevice_queue
Diffstat (limited to 'src')
-rw-r--r--src/device.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/device.c b/src/device.c
index af53393..785d57d 100644
--- a/src/device.c
+++ b/src/device.c
@@ -253,13 +253,10 @@ static void destruct(struct net_device *dev)
free_netdev(dev);
}
-enum {
- WG_NETDEV_FEATURES = NETIF_F_HW_CSUM | NETIF_F_RXCSUM | NETIF_F_SG | NETIF_F_GSO | NETIF_F_GSO_SOFTWARE | NETIF_F_HIGHDMA
-};
-
static void setup(struct net_device *dev)
{
struct wireguard_device *wg = netdev_priv(dev);
+ enum { WG_NETDEV_FEATURES = NETIF_F_HW_CSUM | NETIF_F_RXCSUM | NETIF_F_SG | NETIF_F_GSO | NETIF_F_GSO_SOFTWARE | NETIF_F_HIGHDMA };
dev->netdev_ops = &netdev_ops;
dev->destructor = destruct;
@@ -362,17 +359,11 @@ error_1:
return err;
}
-static void dellink(struct net_device *dev, struct list_head *head)
-{
- unregister_netdevice_queue(dev, head);
-}
-
static struct rtnl_link_ops link_ops __read_mostly = {
.kind = KBUILD_MODNAME,
.priv_size = sizeof(struct wireguard_device),
.setup = setup,
.newlink = newlink,
- .dellink = dellink
};
int device_init(void)