[dpdk-dev] [PATCH v2 7/7] examples/ipv4_multicast: check allmulticast enable status
Andrew Rybchenko
arybchenko at solarflare.com
Tue Sep 24 14:56:13 CEST 2019
m>
<1569329773-10185-1-git-send-email-arybchenko at solarflare.com>
From: Ivan Ilchenko <Ivan.Ilchenko at oktetlabs.ru>
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 at oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
---
examples/ipv4_multicast/main.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c
index 7389beec1..6b165f2f0 100644
--- a/examples/ipv4_multicast/main.c
+++ b/examples/ipv4_multicast/main.c
@@ -778,7 +778,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)
--
2.17.1
More information about the dev
mailing list