diff mbox

[2/2] performance: pktio: fix check for pktio_tx

Message ID 1430153321-8409-1-git-send-email-stuart.haslam@linaro.org
State Accepted
Commit 9c3717e12552b3d60a7100f14ff8e5bf9408ec0a
Headers show

Commit Message

Stuart Haslam April 27, 2015, 4:48 p.m. UTC
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 <stuart.haslam@linaro.org>
---
 test/performance/odp_pktio_perf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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;
 	}