]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd-cat/l2fwd-cat.c
net/ice: support DCF device reset
[dpdk.git] / examples / l2fwd-cat / l2fwd-cat.c
index 95de29b868a70d09364bc15d8d97597f6a36c263..9b3e324efb230d656bab14de7007dc25ec92fc33 100644 (file)
@@ -80,10 +80,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",
-                       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);