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 D553B41C30; Tue, 7 Feb 2023 15:02:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1678042670; Tue, 7 Feb 2023 15:02:45 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2058.outbound.protection.outlook.com [40.107.93.58]) by mails.dpdk.org (Postfix) with ESMTP id 7994240E6E for ; Tue, 7 Feb 2023 15:02:43 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BAiuHYcmt2P1ax4KE5+jCSr8h76EqFIlHoYaw9R4x02EVzB4bVq1OLqVYt47dHNGTSn/JPQgHxd/Gx/bp14GjBKMaYa6SPasMw6jTjB03toVxVvSKKAmwJ6ayHvcz5wAG/ppgiXDwWJliuGv4HXTHkRqiZdru8xu+ZlxbZHKeGMiZPdY+gm6VEhp+JHuqffJ8ITwKKbT/t6qjFVMqmAUUPlZRTfq2vdlQT52QVLSWBlrzNycNqlUg/FdqONfYEE6D/MwHsmI27hDcb5QGENRTVGjeGjwkwY0Y6Q8yL2ac4n9bct3T2vJxCsUX1iFeUmhEPnyW209Y/Gro3cgdircow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VYvomAou2sAKzXkQgbcxj7NmwhuBvuojK2w0SKsdWkc=; b=GQFukTel2PyM+wkX6Mi+c2nPWpSJRrcmgMMd8cnG6jp3+tbTe+W1tLCCNbvFERyfGcfIAJYuZ4L4pNY8kKem/UYbi0LAdI+BEyCmBJ5MiORkzdaMkZ46NWSBch0W4z2QCqWf0+RzynbVag2pLLccvidCYy5ePTbhOy5Tyc+fCib7GDNwQduc7OjA8LBdZVvybJls58PzzceH5vfxvN9qThsNBmoFqerN1hv1rkbBciRTIgAngLc9pPHctORTH2NZNEsikcQ0PbubStSW2ZumfovH/uYszjD9zw2J/6n8UfbZ1g9WG0CkPDBFlPdG3LZ7tJhCImbywe4+1oRdFVYBdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VYvomAou2sAKzXkQgbcxj7NmwhuBvuojK2w0SKsdWkc=; b=oSYeGfZX3Dwkic91+qjqW/spOS6xEMlcXUVGvHqnAsY3MoS3R3VHaPF3tiVBdWJhc9ngG0VfVOWK0Nj4aeNi3C+PYbjaXwwZF9rD1LUZwXkvGRC9k1Y+rIDD8WaFq/tEvyxOMjLGwazFoSt8DjBUpBvA7PErf5FlRw7b2/tl6EVUho+4Hb/5tz7gfr4D/6LEdKcVDF5gGR92u10rk5qs4w1sIVagvYp97e/oyeoRrJQw2MjUSvF4TOticxhfBsmhv0HCC1CQLYtOlM5Uf2P+9/QccpYpXlYi7W8Xcqcugyvu2vkRhF5qg2qttLGEAhAuBQuJkdrzm0iMc4nvRsxXRQ== Received: from MW4PR04CA0373.namprd04.prod.outlook.com (2603:10b6:303:81::18) by MN2PR12MB4470.namprd12.prod.outlook.com (2603:10b6:208:260::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.34; Tue, 7 Feb 2023 14:02:41 +0000 Received: from CO1NAM11FT051.eop-nam11.prod.protection.outlook.com (2603:10b6:303:81:cafe::a1) by MW4PR04CA0373.outlook.office365.com (2603:10b6:303:81::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.36 via Frontend Transport; Tue, 7 Feb 2023 14:02:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CO1NAM11FT051.mail.protection.outlook.com (10.13.174.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.16 via Frontend Transport; Tue, 7 Feb 2023 14:02:41 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 7 Feb 2023 06:02:30 -0800 Received: from nvidia.com (10.126.230.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 7 Feb 2023 06:02:28 -0800 From: Viacheslav Ovsiienko To: CC: , , , , Subject: [PATCH v2 2/9] app/testpmd: add host port parameter into flow config Date: Tue, 7 Feb 2023 16:01:59 +0200 Message-ID: <20230207140206.29139-2-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20230207140206.29139-1-viacheslavo@nvidia.com> References: <20230206095229.23027-1-viacheslavo@nvidia.com> <20230207140206.29139-1-viacheslavo@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT051:EE_|MN2PR12MB4470:EE_ X-MS-Office365-Filtering-Correlation-Id: c1fb90b9-4e15-424d-9f97-08db0913fa92 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SG+8Vgqp4i01rtrbHjkXudDfe5p6OoD/TZIlpQzi0wQTIFq8rhvai84d0nHBKbXFg3zOx6uI81Z504ppeK8G+otOfmep0jqYJNhObb/jgzD/RLPe61E9fMBYT9E87uu3MFHBQCVLRlqcgyLPFe/HAZZCyqaorPbM13ieSv1cfPTQtdYRwfNYZ/s2a/+Vt+ZSYgkgh84tx0SAcER1AUHeziXabjEej7Y/KF4GJ4OngF0mBaImfhqZioDm0vvKPAN92OvnLOgKWMPBpHDOUSa6//32zKujqhk2tUg2xWqrCZTuvQbnfIue17PF+0xr0EhyVdjqYJSVHg5CgMDgx/LGpQj9w9ZMY6m5jsHnlmsSudMVU0VaOMcDZ6xra3cP7aHMIJ1HP2HCto8MloEVWcqU8JWoRK7v3YsmSmK2dW90V+b22mIg30GpYHagIr4de6DdYHJuUW3OTG553nDEM296/oSic9tzS2ySXUNEtNgi4wmhAFm3pC2w9ylFnsNP2t2ElFO+SKjX3i1+LKPa+oGRX8BFYhaJCQejNNlMhmxrIUooO1f1Nrnxb0Y0xSwD3s5khz0FoWjTRqAMt55RZ/whRCb+LCaf4J7k1iDp84VEHSXg5ABsHrnEQNNlwYNXmFC6Pa+9JSrmKhH+X054CotfD92mmbeny/0yx+WAW7CwK6wRGj5S8teQa3CkstMSxumNAkJ1jaePsijzfekvdV8T3A== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(396003)(376002)(136003)(346002)(39860400002)(451199018)(46966006)(36840700001)(40470700004)(36756003)(40460700003)(41300700001)(7696005)(316002)(54906003)(1076003)(6666004)(478600001)(5660300002)(2906002)(6916009)(8936002)(70586007)(4326008)(70206006)(36860700001)(26005)(7636003)(356005)(8676002)(82740400003)(6286002)(55016003)(40480700001)(86362001)(426003)(16526019)(186003)(2616005)(336012)(47076005)(82310400005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2023 14:02:41.4436 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1fb90b9-4e15-424d-9f97-08db0913fa92 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT051.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4470 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 Host port id parameter is added to "flow configure" command. Signed-off-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline_flow.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 88108498e0..b88756903b 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -228,6 +228,7 @@ enum index { CONFIG_METERS_NUMBER, CONFIG_CONN_TRACK_NUMBER, CONFIG_FLAGS, + CONFIG_HOST_PORT, /* Indirect action arguments */ INDIRECT_ACTION_CREATE, @@ -1098,6 +1099,7 @@ static const enum index next_config_attr[] = { CONFIG_METERS_NUMBER, CONFIG_CONN_TRACK_NUMBER, CONFIG_FLAGS, + CONFIG_HOST_PORT, END, ZERO, }; @@ -2719,6 +2721,14 @@ static const struct token token_list[] = { .args = ARGS(ARGS_ENTRY(struct buffer, args.configure.port_attr.flags)), }, + [CONFIG_HOST_PORT] = { + .name = "host_port", + .help = "host port for shared objects", + .next = NEXT(next_config_attr, + NEXT_ENTRY(COMMON_UNSIGNED)), + .args = ARGS(ARGS_ENTRY(struct buffer, + args.configure.port_attr.host_port_id)), + }, /* Top-level command. */ [PATTERN_TEMPLATE] = { .name = "pattern_template", -- 2.18.1