From: Bruce Richardson Date: Wed, 12 Feb 2014 16:44:44 +0000 (+0000) Subject: virtio: add close function X-Git-Tag: spdx-start~11024 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0978aa72cd6cb26fd9109d5af5ae9ff98ff7d585;p=dpdk.git virtio: add close function Signed-off-by: Bruce Richardson --- diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c b/lib/librte_pmd_virtio/virtio_ethdev.c index 3713cc405c..0c4ecdc912 100644 --- a/lib/librte_pmd_virtio/virtio_ethdev.c +++ b/lib/librte_pmd_virtio/virtio_ethdev.c @@ -252,6 +252,15 @@ virtio_dev_cq_queue_setup(struct rte_eth_dev *dev, return (0); } +static void +virtio_dev_close(struct rte_eth_dev *dev) +{ + PMD_INIT_LOG(DEBUG, "virtio_dev_close"); + + virtio_dev_stop(dev); +} + + /* * dev_ops for virtio, bare necessities for basic operation */ @@ -259,6 +268,7 @@ static struct eth_dev_ops virtio_eth_dev_ops = { .dev_configure = virtio_dev_configure, .dev_start = virtio_dev_start, .dev_stop = virtio_dev_stop, + .dev_close = virtio_dev_close, .dev_infos_get = virtio_dev_info_get, .stats_get = virtio_dev_stats_get,