]> git.droids-corp.org - dpdk.git/blobdiff - examples/ipsec-secgw/event_helper.c
examples: check stop call status
[dpdk.git] / examples / ipsec-secgw / event_helper.c
index 865dc911b86462f35bb0e669e32b032cf22bccca..ce4dbdc085fa59a92c758d8ca1d77ba1b58a3346 100644 (file)
@@ -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 */