ipc: handle unsupported IPC in init
[dpdk.git] / lib / librte_eal / linux / eal / eal.c
index 75ed0cf..3e1d6eb 100644 (file)
@@ -320,7 +320,7 @@ rte_eal_config_create(void)
                rte_mem_cfg_addr = NULL;
 
        if (mem_cfg_fd < 0){
-               mem_cfg_fd = open(pathname, O_RDWR | O_CREAT, 0660);
+               mem_cfg_fd = open(pathname, O_RDWR | O_CREAT, 0600);
                if (mem_cfg_fd < 0)
                        rte_panic("Cannot open '%s' for rte_mem_config\n", pathname);
        }
@@ -1014,7 +1014,7 @@ rte_eal_init(int argc, char **argv)
        /* Put mp channel init before bus scan so that we can init the vdev
         * bus through mp channel in the secondary process before the bus scan.
         */
-       if (rte_mp_channel_init() < 0) {
+       if (rte_mp_channel_init() < 0 && rte_errno != ENOTSUP) {
                rte_eal_init_alert("failed to init mp channel");
                if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
                        rte_errno = EFAULT;
@@ -1253,7 +1253,7 @@ mark_freeable(const struct rte_memseg_list *msl, const struct rte_memseg *ms,
        return 0;
 }
 
-int __rte_experimental
+int
 rte_eal_cleanup(void)
 {
        /* if we're in a primary process, we need to mark hugepages as freeable