]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_event_eth_rx_adapter.c
common/mlx5: fix user mode register access command
[dpdk.git] / app / test / test_event_eth_rx_adapter.c
index 6254fcd33ab1525d8472d385b28242843497e9e6..dd3bce71b8761ca53a02214264d1dd879a36b91c 100644 (file)
@@ -81,7 +81,9 @@ port_init_common(uint16_t port, const struct rte_eth_conf *port_conf,
 
        /* Display the port MAC address. */
        struct rte_ether_addr addr;
-       rte_eth_macaddr_get(port, &addr);
+       retval = rte_eth_macaddr_get(port, &addr);
+       if (retval < 0)
+               return retval;
        printf("Port %u MAC: %02" PRIx8 " %02" PRIx8 " %02" PRIx8
                           " %02" PRIx8 " %02" PRIx8 " %02" PRIx8 "\n",
                        (unsigned int)port,