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
examples: check status of getting MAC address
[dpdk.git]
/
examples
/
bbdev_app
/
main.c
diff --git
a/examples/bbdev_app/main.c
b/examples/bbdev_app/main.c
index
3498765
..
fb38dc3
100644
(file)
--- a/
examples/bbdev_app/main.c
+++ b/
examples/bbdev_app/main.c
@@
-490,7
+490,13
@@
initialize_ports(struct app_config_params *app_params,
return ret;
}
return ret;
}
- rte_eth_macaddr_get(port_id, &bbdev_port_eth_addr);
+ ret = rte_eth_macaddr_get(port_id, &bbdev_port_eth_addr);
+ if (ret < 0) {
+ printf("rte_eth_macaddr_get: err=%d, queue=%u\n",
+ ret, q);
+ return -1;
+ }
+
print_mac(port_id, &bbdev_port_eth_addr);
return 0;
print_mac(port_id, &bbdev_port_eth_addr);
return 0;