]> git.droids-corp.org - dpdk.git/blobdiff - examples/flow_classify/flow_classify.c
net: add macro to extract MAC address bytes
[dpdk.git] / examples / flow_classify / flow_classify.c
index db71f5aa0401a19241dbed64d10aa3b7d44714b2..65c1d85cf2fb0ed61a6b6ffd6c687d67598f193a 100644 (file)
@@ -258,10 +258,7 @@ port_init(uint8_t port, struct rte_mempool *mbuf_pool)
 
        printf("Port %u MAC: %02" PRIx8 " %02" PRIx8 " %02" PRIx8
                           " %02" PRIx8 " %02" PRIx8 " %02" PRIx8 "\n",
-                       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]);
+                       port, RTE_ETHER_ADDR_BYTES(&addr));
 
        /* Enable RX in promiscuous mode for the Ethernet device. */
        retval = rte_eth_promiscuous_enable(port);