freebsd-dev/sys/dev/virtio/network
Kristof Provost 3fcb1aaef1 vtnet: fix panic on unload
Since r276367 added the virtio_mmio support vtnet_modevent() gets called twice.
This resulted in a memory leak during load and a panic on unload.

Count the loads so we only initialise once (just like cxgbe(4)), and only clean
up in the final unload.

PR:		209428
Submitted by:	novel@FreeBSD.org
MFC after:	1 week
2016-05-14 06:07:15 +00:00
..
if_vtnet.c vtnet: fix panic on unload 2016-05-14 06:07:15 +00:00
if_vtnetvar.h Add softc flag for when the indirect descriptor feature was negotiated 2015-01-01 02:06:00 +00:00
virtio_net.h