A typo in the error check means we don't correctly guard against failing to open the transmit pktio (when not using a loopback interface).
Signed-off-by: Stuart Haslam <[email protected]> --- test/performance/odp_pktio_perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/performance/odp_pktio_perf.c b/test/performance/odp_pktio_perf.c index e24ceb5..38ce328 100644 --- a/test/performance/odp_pktio_perf.c +++ b/test/performance/odp_pktio_perf.c @@ -682,7 +682,7 @@ static int test_init(void) gbl_args->pktio_rx = gbl_args->pktio_tx; if (gbl_args->pktio_rx == ODP_PKTIO_INVALID || - gbl_args->pktio_rx == ODP_PKTIO_INVALID) { + gbl_args->pktio_tx == ODP_PKTIO_INVALID) { LOG_ERR("failed to open pktio\n"); return -1; } -- 2.1.1 _______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
