kni: add rte_kni_free to KNI example app
PATCH 8/10 kni: add rte_kni_free to KNI example app
Add rte_kni_free to the KNI example application.
Signed-off-by Dan Gora <[email protected]>
--- examples/kni/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
examples/kni/main.c +3 -1
@@ -883,7 +883,9 @@ kni_free_kni(uint16_t port_id)for (i =0 ; i < p[port_id]->nb_kni; i++) {if (rte_kni_release (p[port_id]->kni[i])) -printf ("Fail to release kni\n" ); +printf ("Failed to release kni\n" ); +if (rte_kni_free (p[port_id]->kni[i])) +printf ("Failed to free kni\n" ); p[port_id]->kni[i] =NULL ; }rte_eth_dev_stop (port_id);
Signature · 1 line
2.18.0.rc1.1.g6f333ff2f