]> git.droids-corp.org - dpdk.git/blobdiff - app/pdump/main.c
app: check status of getting MAC address
[dpdk.git] / app / pdump / main.c
index 9d6be8ed1b43ac2393a8f74266d4aa917404d1b3..903d02f482330690f86f0c5f2848c0cfc77bffd7 100644 (file)
@@ -606,7 +606,10 @@ configure_vdev(uint16_t port_id)
        if (ret < 0)
                rte_exit(EXIT_FAILURE, "dev start failed\n");
 
-       rte_eth_macaddr_get(port_id, &addr);
+       ret = rte_eth_macaddr_get(port_id, &addr);
+       if (ret != 0)
+               rte_exit(EXIT_FAILURE, "macaddr get failed\n");
+
        printf("Port %u MAC: %02"PRIx8" %02"PRIx8" %02"PRIx8
                        " %02"PRIx8" %02"PRIx8" %02"PRIx8"\n",
                        port_id,