mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
netdev-dpdk: Print default vhost-sock-dir value & update documentation
When no vhost-sock-dir value is provided, print the default location.
Update the documentation to reflect the fact that vhost-sock-dir values
are now subdirectory loctions rather than full paths.
Fixes: d8a8f353c2
("netdev-dpdk: Restrict vhost_sock_dir")
Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Acked-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -3100,7 +3100,7 @@ dpdk_init__(const struct smap *ovs_other_config)
|
||||
if (process_vhost_flags("cuse-dev-name", xstrdup("vhost-net"),
|
||||
PATH_MAX, ovs_other_config, &cuse_dev_name)) {
|
||||
#else
|
||||
if (process_vhost_flags("vhost-sock-dir", xstrdup(""),
|
||||
if (process_vhost_flags("vhost-sock-dir", xstrdup(ovs_rundir()),
|
||||
NAME_MAX, ovs_other_config,
|
||||
&sock_dir_subcomponent)) {
|
||||
struct stat s;
|
||||
@@ -3121,8 +3121,7 @@ dpdk_init__(const struct smap *ovs_other_config)
|
||||
}
|
||||
free(sock_dir_subcomponent);
|
||||
} else {
|
||||
vhost_sock_dir = xstrdup(ovs_rundir());
|
||||
free(sock_dir_subcomponent);
|
||||
vhost_sock_dir = sock_dir_subcomponent;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user