]> git.droids-corp.org - dpdk.git/blobdiff - doc/guides/sample_app_ug/flow_classify.rst
common/octeontx2: fix 20.02 new symbols ABI version
[dpdk.git] / doc / guides / sample_app_ug / flow_classify.rst
index 7c2b6dcf8349f3be8a54a715a2fb05a71c1fbd6f..bc234b50a7811f94a87f2bc85aede780fb4ea7ef 100644 (file)
@@ -306,7 +306,9 @@ Forwarding application is shown below:
             return retval;
 
         /* Display the port MAC address. */
-        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",
                port,