eal: rename lcore master and slave
[dpdk.git] / lib / librte_eal / common / eal_common_lcore.c
index d64569b..66d6bad 100644 (file)
@@ -18,9 +18,9 @@
 #include "eal_private.h"
 #include "eal_thread.h"
 
-unsigned int rte_get_master_lcore(void)
+unsigned int rte_get_main_lcore(void)
 {
-       return rte_eal_get_configuration()->master_lcore;
+       return rte_eal_get_configuration()->main_lcore;
 }
 
 unsigned int rte_lcore_count(void)
@@ -93,7 +93,7 @@ int rte_lcore_is_enabled(unsigned int lcore_id)
        return cfg->lcore_role[lcore_id] == ROLE_RTE;
 }
 
-unsigned int rte_get_next_lcore(unsigned int i, int skip_master, int wrap)
+unsigned int rte_get_next_lcore(unsigned int i, int skip_main, int wrap)
 {
        i++;
        if (wrap)
@@ -101,7 +101,7 @@ unsigned int rte_get_next_lcore(unsigned int i, int skip_master, int wrap)
 
        while (i < RTE_MAX_LCORE) {
                if (!rte_lcore_is_enabled(i) ||
-                   (skip_master && (i == rte_get_master_lcore()))) {
+                   (skip_main && (i == rte_get_main_lcore()))) {
                        i++;
                        if (wrap)
                                i %= RTE_MAX_LCORE;