eal: fix IPC socket path
Fixes: bacaa2754017 ("eal: add channel for multi-process communication") Cc: stable@dpdk.org Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com> Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
This commit is contained in:
parent
620952e060
commit
bed4c1dfa9
@ -489,10 +489,14 @@ mp_send(struct rte_mp_msg *msg, const char *peer, int type)
|
||||
return -1;
|
||||
}
|
||||
while ((ent = readdir(mp_dir))) {
|
||||
char path[PATH_MAX];
|
||||
|
||||
if (fnmatch(mp_filter, ent->d_name, 0) != 0)
|
||||
continue;
|
||||
|
||||
if (send_msg(ent->d_name, msg, type) < 0)
|
||||
snprintf(path, sizeof(path), "%s/%s", mp_dir_path,
|
||||
ent->d_name);
|
||||
if (send_msg(path, msg, type) < 0)
|
||||
ret = -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user