]> git.droids-corp.org - dpdk.git/blobdiff - examples/ip_reassembly/main.c
examples: check status of getting MAC address
[dpdk.git] / examples / ip_reassembly / main.c
index c822c8c58a842f89c9943738eb08f0413cfdfe33..d59e6d02ff5e72e830da5759b89972f7848d46a2 100644 (file)
@@ -1132,7 +1132,14 @@ main(int argc, char **argv)
                                ret, portid);
                }
 
-               rte_eth_macaddr_get(portid, &ports_eth_addr[portid]);
+               ret = rte_eth_macaddr_get(portid, &ports_eth_addr[portid]);
+               if (ret < 0) {
+                       printf("\n");
+                       rte_exit(EXIT_FAILURE,
+                               "rte_eth_macaddr_get: err=%d, port=%d\n",
+                               ret, portid);
+               }
+
                print_ethaddr(" Address:", &ports_eth_addr[portid]);
                printf("\n");