| 511 | } |
| 512 | |
| 513 | int |
| 514 | eth_macaddr_get_print_err(uint16_t port_id, struct rte_ether_addr *mac_addr) |
| 515 | { |
| 516 | int ret; |
| 517 | |
| 518 | ret = rte_eth_macaddr_get(port_id, mac_addr); |
| 519 | if (ret != 0) |
| 520 | fprintf(stderr, |
| 521 | "Error getting device (port %u) mac address: %s\n", |
| 522 | port_id, rte_strerror(-ret)); |
| 523 | |
| 524 | return ret; |
| 525 | } |