From: Aaron Taylor Date: Thu, 6 May 2021 00:54:13 +0000 (-0700) Subject: Updated host/linvnet.c per the changes to net_device->destructor. X-Git-Tag: first-build~1 X-Git-Url: https://git.subgeniuskitty.com/xeon-phi-kernel-module/.git/commitdiff_plain/cb91baf623dbe369dd5aebf0d3ccc6373c8e181d Updated host/linvnet.c per the changes to net_device->destructor. See also: - https://github.com/torvalds/linux/commit/cf124db566e6b036b8bcbe8decbed740bdfac8c6 --- diff --git a/vnet/micveth_dma.c b/vnet/micveth_dma.c index c62675b..d9182f7 100644 --- a/vnet/micveth_dma.c +++ b/vnet/micveth_dma.c @@ -920,7 +920,8 @@ micvnet_setup(struct net_device *dev) /* Initialize the device structure. */ dev->netdev_ops = &micvnet_netdev_ops; - dev->destructor = free_netdev; + dev->priv_destructor = free_netdev; + dev->needs_free_netdev = false; /* Fill in device structure with ethernet-generic values. */ dev->mtu = MICVNET_MAX_MTU;