opnsense-src/sys/dev/virtio
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
..
balloon xen/virtio: fix balloon drivers to not mark pages as WIRED 2014-06-25 09:51:08 +00:00
block Create an API to reset a struct bio (g_reset_bio). This is mandatory 2016-02-17 17:16:02 +00:00
console sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00
mmio Add 'prewrite' method allowing us to run some platform-specific 2015-07-03 14:13:16 +00:00
network vtnet: fix panic on unload 2016-05-14 06:07:15 +00:00
pci Hide virtio features negotiation messages under bootverbose. 2015-03-15 21:00:10 +00:00
random Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00
scsi Prevent overflow issues in timeout processing 2014-11-21 21:01:24 +00:00
virtio.c Split the virtio.h header file into multiple files 2014-06-01 18:16:01 +00:00
virtio.h Move the VIRTIO_RING_F_* defines out of virtqueue.h into virtio_config.h 2014-06-16 04:25:04 +00:00
virtio_bus_if.m Add virtio bus 'poll' method allowing us to inform backend we are 2014-12-12 11:19:10 +00:00
virtio_config.h Move the VIRTIO_RING_F_* defines out of virtqueue.h into virtio_config.h 2014-06-16 04:25:04 +00:00
virtio_ids.h Split the virtio.h header file into multiple files 2014-06-01 18:16:01 +00:00
virtio_if.m Add optional VirtIO device method for post-attach notifications 2013-09-01 04:20:23 +00:00
virtio_ring.h
virtqueue.c Add virtio bus 'poll' method allowing us to inform backend we are 2014-12-12 11:19:10 +00:00
virtqueue.h Add accessor to get the number of free descriptors in the virtqueue 2014-07-10 05:26:01 +00:00