summaryrefslogtreecommitdiff
path: root/app/pdump
diff options
context:
space:
mode:
authorJianfeng Tan <jianfeng.tan@intel.com>2018-04-05 12:28:37 +0000
committerThomas Monjalon <thomas@monjalon.net>2018-04-18 01:26:21 +0200
commit660098d61f57f89aea648e10acade4f503d30a9f (patch)
treeda78cce5112e45aed7d6871540bdc069d4dd354d /app/pdump
parent83a73c5fef669e54a137e63449efe06bf7449149 (diff)
downloaddpdk-660098d61f57f89aea648e10acade4f503d30a9f.zip
dpdk-660098d61f57f89aea648e10acade4f503d30a9f.tar.gz
dpdk-660098d61f57f89aea648e10acade4f503d30a9f.tar.xz
pdump: use generic multi-process channel
The original code replies on the private channel for primary and secondary communication. Change to use the generic multi-process channel. Note with this change, dpdk-pdump will be not compatible with old version DPDK applications. Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com> Acked-by: Reshma Pattan <reshma.pattan@intel.com>
Diffstat (limited to 'app/pdump')
-rw-r--r--app/pdump/main.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/app/pdump/main.c b/app/pdump/main.c
index 457747f..1f43e3f 100644
--- a/app/pdump/main.c
+++ b/app/pdump/main.c
@@ -156,9 +156,11 @@ pdump_usage(const char *prgname)
"[mbuf-size=<mbuf data size>default:2176],"
"[total-num-mbufs=<number of mbufs>default:65535]'\n"
"[--server-socket-path=<server socket dir>"
- "default:/var/run/.dpdk/ (or) ~/.dpdk/]\n"
+ " which is deprecated and will be removed soon,"
+ " default:/var/run/.dpdk/ (or) ~/.dpdk/]\n"
"[--client-socket-path=<client socket dir>"
- "default:/var/run/.dpdk/ (or) ~/.dpdk/]\n",
+ " which is deprecated and will be removed soon,"
+ " default:/var/run/.dpdk/ (or) ~/.dpdk/]\n",
prgname);
}
@@ -743,22 +745,6 @@ enable_pdump(void)
struct pdump_tuples *pt;
int ret = 0, ret1 = 0;
- if (server_socket_path[0] != 0)
- ret = rte_pdump_set_socket_dir(server_socket_path,
- RTE_PDUMP_SOCKET_SERVER);
- if (ret == 0 && client_socket_path[0] != 0) {
- ret = rte_pdump_set_socket_dir(client_socket_path,
- RTE_PDUMP_SOCKET_CLIENT);
- }
- if (ret < 0) {
- cleanup_pdump_resources();
- rte_exit(EXIT_FAILURE,
- "failed to set socket paths of server:%s, "
- "client:%s\n",
- server_socket_path,
- client_socket_path);
- }
-
for (i = 0; i < num_tuples; i++) {
pt = &pdump_t[i];
if (pt->dir == RTE_PDUMP_FLAG_RXTX) {