git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ice/base: remove unused DDP package macros
[dpdk.git]
/
examples
/
kni
/
main.c
diff --git
a/examples/kni/main.c
b/examples/kni/main.c
index
8eb5b61
..
c576fc7
100644
(file)
--- a/
examples/kni/main.c
+++ b/
examples/kni/main.c
@@
-940,8
+940,12
@@
kni_alloc(uint16_t port_id)
port_id, strerror(-ret));
/* Get the interface default mac address */
port_id, strerror(-ret));
/* Get the interface default mac address */
- rte_eth_macaddr_get(port_id,
+ r
et = r
te_eth_macaddr_get(port_id,
(struct rte_ether_addr *)&conf.mac_addr);
(struct rte_ether_addr *)&conf.mac_addr);
+ if (ret != 0)
+ rte_exit(EXIT_FAILURE,
+ "Failed to get MAC address (port %u): %s\n",
+ port_id, rte_strerror(-ret));
rte_eth_dev_get_mtu(port_id, &conf.mtu);
rte_eth_dev_get_mtu(port_id, &conf.mtu);