summaryrefslogtreecommitdiff
path: root/examples/ipv4_multicast
diff options
context:
space:
mode:
authorIvan Ilchenko <ivan.ilchenko@oktetlabs.ru>2019-09-24 13:56:13 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2019-10-07 15:00:55 +0200
commit0ecc27f28d202a3356a8601e6762b601ea822c4c (patch)
tree8eac3ecfa1a92668298691e18d0e23d87926d25e /examples/ipv4_multicast
parent8835806ddced62767e4876ce0018c78ba693997d (diff)
downloaddpdk-0ecc27f28d202a3356a8601e6762b601ea822c4c.zip
dpdk-0ecc27f28d202a3356a8601e6762b601ea822c4c.tar.gz
dpdk-0ecc27f28d202a3356a8601e6762b601ea822c4c.tar.xz
examples/ipv4_multicast: check allmulticast enable status
rte_eth_allmulticast_enable()/rte_eth_allmulticast_disable() return value was changed from void to int, so this patch modify usage of these functions across examples/ipv4_multicast according to new return type. Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Diffstat (limited to 'examples/ipv4_multicast')
-rw-r--r--examples/ipv4_multicast/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c
index 464b546..63333b5 100644
--- a/examples/ipv4_multicast/main.c
+++ b/examples/ipv4_multicast/main.c
@@ -783,7 +783,11 @@ main(int argc, char **argv)
qconf->tx_queue_id[portid] = queueid;
queueid++;
}
- rte_eth_allmulticast_enable(portid);
+ ret = rte_eth_allmulticast_enable(portid);
+ if (ret < 0)
+ rte_exit(EXIT_FAILURE,
+ "rte_eth_allmulticast_enable: err=%d, port=%d\n",
+ ret, portid);
/* Start device */
ret = rte_eth_dev_start(portid);
if (ret < 0)