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 stop call status
[dpdk.git]
/
examples
/
ipsec-secgw
/
event_helper.c
diff --git
a/examples/ipsec-secgw/event_helper.c
b/examples/ipsec-secgw/event_helper.c
index
865dc91
..
ce4dbdc
100644
(file)
--- a/
examples/ipsec-secgw/event_helper.c
+++ b/
examples/ipsec-secgw/event_helper.c
@@
-1583,7
+1583,12
@@
eh_devs_init(struct eh_conf *conf)
if ((conf->eth_portmask & (1 << port_id)) == 0)
continue;
- rte_eth_dev_stop(port_id);
+ ret = rte_eth_dev_stop(port_id);
+ if (ret != 0) {
+ EH_LOG_ERR("Failed to stop port %u, err: %d",
+ port_id, ret);
+ return ret;
+ }
}
/* Setup eventdev */