From: Intel Date: Mon, 3 Jun 2013 00:00:00 +0000 (+0000) Subject: examples/vmdq_dcb: display port mac address X-Git-Tag: spdx-start~11189 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=967b629488b9c6471c09ca56f888880486d2de64;p=dpdk.git examples/vmdq_dcb: display port mac address Signed-off-by: Intel --- diff --git a/examples/vmdq_dcb/main.c b/examples/vmdq_dcb/main.c index 7c744ef4a5..86ef653c53 100644 --- a/examples/vmdq_dcb/main.c +++ b/examples/vmdq_dcb/main.c @@ -225,6 +225,14 @@ port_init(uint8_t port, struct rte_mempool *mbuf_pool) if (retval < 0) return retval; + struct ether_addr addr; + rte_eth_macaddr_get(port, &addr); + printf("Port %u MAC: %02"PRIx8" %02"PRIx8" %02"PRIx8 + " %02"PRIx8" %02"PRIx8" %02"PRIx8"\n", + (unsigned)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]); + return 0; }