test/telemetry: fix typo at beginning of line
[dpdk.git] / examples / ipsec-secgw / event_helper.c
index 865dc91..8475d54 100644 (file)
@@ -1461,16 +1461,16 @@ eh_conf_init(void)
 
        /* Set two cores as eth cores for Rx & Tx */
 
-       /* Use first core other than master core as Rx core */
+       /* Use first core other than main core as Rx core */
        eth_core_id = rte_get_next_lcore(0,     /* curr core */
-                                        1,     /* skip master core */
+                                        1,     /* skip main core */
                                         0      /* wrap */);
 
        rte_bitmap_set(em_conf->eth_core_mask, eth_core_id);
 
        /* Use next core as Tx core */
        eth_core_id = rte_get_next_lcore(eth_core_id,   /* curr core */
-                                        1,             /* skip master core */
+                                        1,             /* skip main core */
                                         0              /* wrap */);
 
        rte_bitmap_set(em_conf->eth_core_mask, eth_core_id);
@@ -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 */