* [dpdk-dev] [PATCH 09/10] kni: add rte_kni_free to KNI vdev driver
@ 2018-06-28 22:55 Dan Gora
0 siblings, 0 replies; only message in thread
From: Dan Gora @ 2018-06-28 22:55 UTC (permalink / raw)
To: Ferruh Yigit; +Cc: dev, Dan Gora
Add rte_kni_free to the virual KNI device.
Signed-off-by: Dan Gora <dg@adax.com>
---
drivers/net/kni/rte_eth_kni.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/kni/rte_eth_kni.c b/drivers/net/kni/rte_eth_kni.c
index ab63ea427..24c6991e6 100644
--- a/drivers/net/kni/rte_eth_kni.c
+++ b/drivers/net/kni/rte_eth_kni.c
@@ -463,11 +463,13 @@ eth_kni_remove(struct rte_vdev_device *vdev)
if (eth_dev == NULL)
return -1;
- eth_kni_dev_stop(eth_dev);
-
internals = eth_dev->data->dev_private;
rte_kni_release(internals->kni);
+ eth_kni_dev_stop(eth_dev);
+
+ rte_kni_free(internals->kni);
+
rte_free(internals);
rte_eth_dev_release_port(eth_dev);
--
2.18.0.rc1.1.g6f333ff2f
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-06-28 22:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-28 22:55 [dpdk-dev] [PATCH 09/10] kni: add rte_kni_free to KNI vdev driver Dan Gora
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).