]> git.droids-corp.org - dpdk.git/blobdiff - examples/ipv4_multicast/main.c
examples/ipv4_multicast: check allmulticast enable status
[dpdk.git] / examples / ipv4_multicast / main.c
index 464b54689148101e1ef3d781ab708edf6b145425..63333b5b695b783aeb45e89946e9934ee73e22c8 100644 (file)
@@ -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)