From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3C23AA00C4; Thu, 28 Jul 2022 00:55:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D4ADF42BC0; Thu, 28 Jul 2022 00:54:51 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 0FF5A42BAE for ; Thu, 28 Jul 2022 00:54:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658962487; x=1690498487; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7DIJdGBhhTi2g2X6BRxSQ0emsktRdh2ueXI7HokequQ=; b=HHF2eh85Xf94qlLKLqYaqngnMZ4yIMHw4fuu0RMj1+B0ebRgVSrX41Jq GcF2rBVDfftsfe7+CFfpuUsJ1obwyfGYOeUaj11n3FWTUXip11bUZRLkY NT/8lhvkaN2e7PNn1r7OjmSBz9aoZtLMAfAh25b8PASVl9absyOJfV58K I+P+nFA2NwoYmAnEqizdY/uq6sdNtaIKGG+6uvIyq0cGFK2yF9mq4u8Mh 1LjM5CxXKxHBmSmNtogxKZgNpprS+HJRFbAD4OMPZE7RNjmBo5navkabe aOnZn2JtsonWAsr2WJsAbXEn0RaLyOgtIc8cpJaSxqevh786PK5QAQa3x A==; X-IronPort-AV: E=McAfee;i="6400,9594,10421"; a="285912187" X-IronPort-AV: E=Sophos;i="5.93,196,1654585200"; d="scan'208";a="285912187" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2022 15:54:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,196,1654585200"; d="scan'208";a="628572631" Received: from silpixa00400573.ir.intel.com (HELO silpixa00400573.ger.corp.intel.com.) ([10.237.223.157]) by orsmga008.jf.intel.com with ESMTP; 27 Jul 2022 15:54:45 -0700 From: Cristian Dumitrescu To: dev@dpdk.org Cc: "Kamalakannan R ." Subject: [PATCH V4 13/17] examples/pipeline: remove the obsolete mirroring configuration CLI command Date: Wed, 27 Jul 2022 22:54:27 +0000 Message-Id: <20220727225431.600913-13-cristian.dumitrescu@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220727225431.600913-1-cristian.dumitrescu@intel.com> References: <20220727223639.598932-1-cristian.dumitrescu@intel.com> <20220727225431.600913-1-cristian.dumitrescu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The pipeline mirroring configuration is done through the I/O specification file, so this CLI command is no longer needed. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R. --- examples/pipeline/cli.c | 76 ----------------------------------------- 1 file changed, 76 deletions(-) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c index b26e73c706..fa828c008b 100644 --- a/examples/pipeline/cli.c +++ b/examples/pipeline/cli.c @@ -2457,68 +2457,6 @@ cmd_pipeline_stats(char **tokens, } } -static const char cmd_pipeline_mirror_help[] = -"pipeline mirror slots sessions \n"; - -static void -cmd_pipeline_mirror(char **tokens, - uint32_t n_tokens, - char *out, - size_t out_size, - void *obj) -{ - struct rte_swx_pipeline_mirroring_params params; - struct pipeline *p; - int status; - - if (n_tokens != 7) { - snprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]); - return; - } - - if (strcmp(tokens[0], "pipeline")) { - snprintf(out, out_size, MSG_ARG_NOT_FOUND, "pipeline"); - return; - } - - p = pipeline_find(obj, tokens[1]); - if (!p) { - snprintf(out, out_size, MSG_ARG_INVALID, "pipeline_name"); - return; - } - - if (strcmp(tokens[2], "mirror")) { - snprintf(out, out_size, MSG_ARG_NOT_FOUND, "mirror"); - return; - } - - if (strcmp(tokens[3], "slots")) { - snprintf(out, out_size, MSG_ARG_NOT_FOUND, "slots"); - return; - } - - if (parser_read_uint32(¶ms.n_slots, tokens[4])) { - snprintf(out, out_size, MSG_ARG_INVALID, "n_slots"); - return; - } - - if (strcmp(tokens[5], "sessions")) { - snprintf(out, out_size, MSG_ARG_NOT_FOUND, "sessions"); - return; - } - - if (parser_read_uint32(¶ms.n_sessions, tokens[6])) { - snprintf(out, out_size, MSG_ARG_INVALID, "n_sessions"); - return; - } - - status = rte_swx_pipeline_mirroring_config(p->p, ¶ms); - if (status) { - snprintf(out, out_size, "Command failed!\n"); - return; - } -} - static const char cmd_pipeline_mirror_session_help[] = "pipeline mirror session port clone fast | slow " "truncate \n"; @@ -2746,7 +2684,6 @@ cmd_help(char **tokens, "\tpipeline meter set\n" "\tpipeline meter stats\n" "\tpipeline stats\n" - "\tpipeline mirror\n" "\tpipeline mirror session\n" "\tthread pipeline enable\n" "\tthread pipeline disable\n\n"); @@ -2958,12 +2895,6 @@ cmd_help(char **tokens, return; } - if (!strcmp(tokens[0], "pipeline") && - (n_tokens == 2) && !strcmp(tokens[1], "mirror")) { - snprintf(out, out_size, "\n%s\n", cmd_pipeline_mirror_help); - return; - } - if (!strcmp(tokens[0], "pipeline") && (n_tokens == 3) && !strcmp(tokens[1], "mirror") && !strcmp(tokens[2], "session")) { @@ -3217,13 +3148,6 @@ cli_process(char *in, char *out, size_t out_size, void *obj) return; } - if ((n_tokens >= 4) && - (strcmp(tokens[2], "mirror") == 0) && - (strcmp(tokens[3], "slots") == 0)) { - cmd_pipeline_mirror(tokens, n_tokens, out, out_size, obj); - return; - } - if ((n_tokens >= 4) && (strcmp(tokens[2], "mirror") == 0) && (strcmp(tokens[3], "session") == 0)) { -- 2.34.1