]> git.droids-corp.org - dpdk.git/blobdiff - examples/packet_ordering/main.c
net: add macro to extract MAC address bytes
[dpdk.git] / examples / packet_ordering / main.c
index d2fe9f6b50d8734017c2271e68360ef9af8c834d..4f6982bc12899e953eddaa8c36eeeb9d17e5b565 100644 (file)
@@ -335,10 +335,7 @@ configure_eth_port(uint16_t port_id)
 
        printf("Port %u MAC: %02"PRIx8" %02"PRIx8" %02"PRIx8
                        " %02"PRIx8" %02"PRIx8" %02"PRIx8"\n",
-                       port_id,
-                       addr.addr_bytes[0], addr.addr_bytes[1],
-                       addr.addr_bytes[2], addr.addr_bytes[3],
-                       addr.addr_bytes[4], addr.addr_bytes[5]);
+                       port_id, RTE_ETHER_ADDR_BYTES(&addr));
 
        ret = rte_eth_promiscuous_enable(port_id);
        if (ret != 0)