]> git.droids-corp.org - dpdk.git/blobdiff - examples/vm_power_manager/main.c
net: add macro to extract MAC address bytes
[dpdk.git] / examples / vm_power_manager / main.c
index 7d5bf685542636fc593c84dfb39721c4aad23269..e59fb7d3478b907b18ccc6e2be5891e3b474181d 100644 (file)
@@ -121,10 +121,7 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)
 
        printf("Port %u MAC: %02" PRIx8 " %02" PRIx8 " %02" PRIx8
                           " %02" PRIx8 " %02" PRIx8 " %02" PRIx8 "\n",
-                       (unsigned int)port,
-                       addr.addr_bytes[0], addr.addr_bytes[1],
-                       addr.addr_bytes[2], addr.addr_bytes[3],
-                       addr.addr_bytes[4], addr.addr_bytes[5]);
+                       (unsigned int)port, RTE_ETHER_ADDR_BYTES(&addr));
 
        /* Enable RX in promiscuous mode for the Ethernet device. */
        retval = rte_eth_promiscuous_enable(port);