X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fl3fwd%2Fmain.c;h=9ed495ee0104acd3a11b939b6848b89578c35a6b;hb=f430bbcecf3eed93916f45654f51dd19d6955aa2;hp=3294ac2dab9b32cb74d2f977ffa85db194020483;hpb=70e51a0ea2e00d369508a6b08a272118c857031e;p=dpdk.git diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index 3294ac2dab..9ed495ee01 100644 --- a/examples/l3fwd/main.c +++ b/examples/l3fwd/main.c @@ -1035,8 +1035,13 @@ main(int argc, char **argv) * to itself through 2 cross-connected ports of the * target machine. */ - if (promiscuous_on) - rte_eth_promiscuous_enable(portid); + if (promiscuous_on) { + ret = rte_eth_promiscuous_enable(portid); + if (ret != 0) + rte_exit(EXIT_FAILURE, + "rte_eth_promiscuous_enable: err=%s, port=%u\n", + rte_strerror(-ret), portid); + } } printf("\n");