aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/performance/odp_l2fwd.c2
-rw-r--r--test/performance/odp_packet_gen.c2
-rw-r--r--test/performance/odp_pktio_ordered.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c
index 9ba0d775a..84f7fd2d6 100644
--- a/test/performance/odp_l2fwd.c
+++ b/test/performance/odp_l2fwd.c
@@ -982,7 +982,7 @@ static int create_pktio(const char *dev, int idx, int num_rx, int num_tx, odp_po
odp_pktio_config(pktio, &config);
- if (gbl_args->appl.promisc_mode) {
+ if (gbl_args->appl.promisc_mode && odp_pktio_promisc_mode(pktio) != 1) {
if (!pktio_capa.set_op.op.promisc_mode) {
ODPH_ERR("Promisc mode set not supported: %s\n", dev);
return -1;
diff --git a/test/performance/odp_packet_gen.c b/test/performance/odp_packet_gen.c
index 28a3789a0..1f74ad006 100644
--- a/test/performance/odp_packet_gen.c
+++ b/test/performance/odp_packet_gen.c
@@ -846,7 +846,7 @@ static int open_pktios(test_global_t *global)
odp_pktio_config(pktio, &pktio_config);
- if (test_options->promisc_mode) {
+ if (test_options->promisc_mode && odp_pktio_promisc_mode(pktio) != 1) {
if (!pktio_capa.set_op.op.promisc_mode) {
ODPH_ERR("Error (%s): promisc mode set not supported\n", name);
return -1;
diff --git a/test/performance/odp_pktio_ordered.c b/test/performance/odp_pktio_ordered.c
index 130eb4688..2ad1e67be 100644
--- a/test/performance/odp_pktio_ordered.c
+++ b/test/performance/odp_pktio_ordered.c
@@ -612,7 +612,7 @@ static int create_pktio(const char *dev, int idx, int num_rx, int num_tx,
config.parser.layer = ODP_PROTO_LAYER_L2;
odp_pktio_config(pktio, &config);
- if (gbl_args->appl.promisc_mode) {
+ if (gbl_args->appl.promisc_mode && odp_pktio_promisc_mode(pktio) != 1) {
if (!capa.set_op.op.promisc_mode) {
ODPH_ERR("Error: promisc mode set not supported %s\n",
dev);