[dpdk-dev] I want to post my patch about examples/kni
EaseTheWorld Mr.
easetheworld at gmail.com
Mon Aug 3 23:39:53 CEST 2015
but I don't have smtp server... Can anybody help with this?
diff --git a/examples/kni/main.c b/examples/kni/main.c
index 6f74d8e..6d434ad 100644
--- a/examples/kni/main.c
+++ b/examples/kni/main.c
@@ -830,9 +830,9 @@ kni_free_kni(uint8_t port_id)
if (port_id >= RTE_MAX_ETHPORTS || !p[port_id])
return -1;
- for (i = 0; i < p[i]->nb_kni; i++) {
- rte_kni_release(p[i]->kni[i]);
- p[i]->kni[i] = NULL;
+ for (i = 0; i < p[port_id]->nb_kni; i++) {
+ rte_kni_release(p[port_id]->kni[i]);
+ p[port_id]->kni[i] = NULL;
}
rte_eth_dev_stop(port_id);
More information about the dev
mailing list