virtio: free queue memory when closing
authorBernard Iremonger <bernard.iremonger@intel.com>
Wed, 15 Jul 2015 13:51:03 +0000 (14:51 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 19 Jul 2015 20:24:42 +0000 (22:24 +0200)
commit941d64b5bfa6cc360e7ad9442a17dde13e00e1d0
treeacdad8cc5332b2ef966453ff976e368de9ae917f
parent5382b188fb8a6f2ffd5e9c884e53f84c526c8b50
virtio: free queue memory when closing

Add function virtio_free_queues() and call from virtio_dev_close()
Use virtio_dev_rx_queue_release() and virtio_dev_tx_queue_release()

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/virtio/virtio_ethdev.c