pdump: fix default socket path
authorReshma Pattan <reshma.pattan@intel.com>
Fri, 24 Jun 2016 16:36:19 +0000 (17:36 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Jun 2016 14:50:09 +0000 (16:50 +0200)
commitbdd8dcc6e2886e80bed96e2e5c6f833791fef721
treee9d9f2d681c07c4db07008e8b5ff206356108de5
parentf0cb66e3de4037beea44ead0a89ccee9686a1e6a
pdump: fix default socket path

SOCKET_PATH_HOME is to specify environment variable "HOME",
so it should not contain "/pdump_sockets"  in the macro.
So removed "/pdump_sockets" from SOCKET_PATH_HOME and
SOCKET_PATH_VAR_RUN. New changes will create pdump sockets under
/var/run/.dpdk/pdump_sockets for root users and
under HOME/.dpdk/pdump_sockets for non root users.
Changes are done in pdump_get_socket_path() to accommodate
new socket path changes.

Fixes: 278f945402c5 ("pdump: add new library for packet capture")

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
lib/librte_pdump/rte_pdump.c