]> git.droids-corp.org - dpdk.git/blobdiff - app/test-eventdev/test_pipeline_common.c
app: check code of promiscuous mode switch
[dpdk.git] / app / test-eventdev / test_pipeline_common.c
index ef8ae28c93b347581daeb44308ac7180c6236945..616651681790eadbc30e10aee4a1734af754a24f 100644 (file)
@@ -233,7 +233,12 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
                        return -EINVAL;
                }
 
-               rte_eth_promiscuous_enable(i);
+               ret = rte_eth_promiscuous_enable(i);
+               if (ret != 0) {
+                       evt_err("Failed to enable promiscuous mode for eth port [%d]: %s",
+                               i, rte_strerror(-ret));
+                       return ret;
+               }
        }
 
        return 0;