Message ID | 20180628225426.21309-1-dg@adax.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
Series | kni: Interface detach and link status fixes. | expand |
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
ci/Intel-compilation | fail | Compilation issues |
diff --git a/examples/kni/main.c b/examples/kni/main.c index 4b162debb..75e23cd0f 100644 --- a/examples/kni/main.c +++ b/examples/kni/main.c @@ -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);
Add rte_kni_free to the KNI example application. Signed-off-by: Dan Gora <dg@adax.com> --- examples/kni/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)