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 936A341BE9; Mon, 6 Feb 2023 10:53:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8253542D67; Mon, 6 Feb 2023 10:53:29 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2080.outbound.protection.outlook.com [40.107.223.80]) by mails.dpdk.org (Postfix) with ESMTP id A48A242D50 for ; Mon, 6 Feb 2023 10:53:28 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WIalxRMBqo0NkWHsbAqR+bdx0Rq+PqgOyPxAbNGsFHcaxwfuA8HS3e7l9AdpOQ9TuVkTx8rAA3Eq61xJRhTvK/zZs9ptaoZaUJ4xYAt2BqvCF2iU+BKO0Ve+i8NdbPkHoKVJnUDt5NnsMxRWNQfrayoTFUykLr97ZbZGj2RZqC0Pcuua6fHRSvuLSQ+GLdyjgZeUftKcvbJn7N/1k/Nb9KEQpmwCML7/UlcLYBC4Xpco+SO7A56Yg3p/eRUjZDnc2B5x2YmlULKpmw8+T5s+JErOUUotTBkMVpfxUlDZ5KQUY58WNTGw3iTVeWvJ2R8h9sTj3ZC7GhDlb8MVpN1lhA== 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=UlXzqpZBnYo27TxZG6y5mZjWyzLsGD3LH0nj/BuIbpplvj1as33YSYkBb2ColZKFNXMBfmIjKE5eLD71/gyBUeC0Alo6O/I8mfItUC9c9yGJu6gbHCs+nv6KsyUmDX3lajcYwoxg7I14f7ptcYwxjOzRCH3r+amJPxTAasBcC9OmgJ/EyF38ehrDiYpMNsnMMuRyApTEYSpxgCQ4RvLveFzVDbFcb98hVVGqoV1R5QzhtfWPjn8wYu/f9d9pK17XzQv6gNfBX9ANwcIB3Cutm77Yv7BVRJC7c9AxZ6jI1V2sq0vP8evPgHU4AXVGPuPxPgqs3cyIK+y5OsrkJtL4IA== 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=IBlF7QZBhLowGl6ynqqbGt30wBqBd+cJX0oCwHARpYNebblcb1Z+ybk+Yan5SupNn5D5qd2B+MIutHK17CT7dnKpGSed0NQX9NvMLGninhfFoN/GqYwlmHeNWbO9iCoJInhFAeGIdIqkIlG6mpVyKuO4GKORiCB7OL199QTIl+0f0jI4M/EKbEs3TVRM+XwQQ3tmNLaU9ME0mm5VdExquqjrrSEan8PxLyUS0kqu60/92aUqDYX/UnflzixAHipSqhqukt9nJgtogIJIbuQUeKFpJHU284hdc4m5Ldqr2aF8rZkM3qyF4bDJcEx5B09jWBwaSvpKp/14VUBfVKTrIQ== Received: from CY5PR14CA0003.namprd14.prod.outlook.com (2603:10b6:930:2::19) by PH8PR12MB7027.namprd12.prod.outlook.com (2603:10b6:510:1be::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.34; Mon, 6 Feb 2023 09:53:26 +0000 Received: from CY4PEPF0000C96D.namprd02.prod.outlook.com (2603:10b6:930:2:cafe::b4) by CY5PR14CA0003.outlook.office365.com (2603:10b6:930:2::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.34 via Frontend Transport; Mon, 6 Feb 2023 09:53:26 +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 CY4PEPF0000C96D.mail.protection.outlook.com (10.167.242.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.21 via Frontend Transport; Mon, 6 Feb 2023 09:53:26 +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; Mon, 6 Feb 2023 01:53:13 -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; Mon, 6 Feb 2023 01:53:10 -0800 From: Viacheslav Ovsiienko To: CC: , , , , Subject: [PATCH 7/9] app/testpmd: add host port parameter into flow config Date: Mon, 6 Feb 2023 11:52:27 +0200 Message-ID: <20230206095229.23027-7-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20230206095229.23027-1-viacheslavo@nvidia.com> References: <20221228165433.18185-1-viacheslavo@nvidia.com> <20230206095229.23027-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: CY4PEPF0000C96D:EE_|PH8PR12MB7027:EE_ X-MS-Office365-Filtering-Correlation-Id: fec57971-60cf-4570-700e-08db0827fe0d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GlPg65gIHfdOo4SnEQHbp2EsQ87NUMEWG4D9MiDtjalnMgN3P4VuDoW05LIG8ree/buDg73wRRFw8sO7vIvfwHaDQr+j+yFkIJbnAO6ylMjeMD6U/PeF0keHZx4M0iR1THXynma2nAhWpagv03UmuDQg/mRWD/73JXw/4ukibIxOFa34dBKtykzW9MQl94ZGVJFW/NfjnDnOAjMgMBMLBAJPHkldP5NTnJc79BzzYyUoEs1eORZKph7nVWFbypf0BcRqYxJxPLf8mpEvtPpAdo3yf85tyNtFCDopeaCmUYu5vef4PQYR1LZAe+JlOe4E7r45yjYmpQHmdgvmJw1N59pv8ml88+K1UsnHJkFx+MJexEJkd/s5ZcKG3FSAyvSuIXoDr0VNon7aO6qenRXtYWL6VUcAGfzlvcQHT9vKtkCKJnCtDSZ2wMpZSnHnI0CJ96/7vRFwGU7ya4WnNgUFpNfVh4gFjUOJXOs53GiTZchVYmQb9T4yTu6SKRoi99+uBRLdDwkbOQHLEmjlA6o5h2+uxUClKK+wrFBkl2ZYDbFq25uOL/Ia9yvs+1kkLYaD+xumKvWtOJ1sPnALIuPwp8PCJibcCuhCfUIvZcZZnjZZsVdDFNGSqLS3APlosJEoqEfPH/E8F55m8m/M/EcwjVeOdZTkkYrWwNJHz3ObXynTItAdjgLBh9E0gUC4pNzjdURFYCMSVxV5CBThzORy6dh4VRKcFK4RyIQVn1FrNYxT0Zo8CVjXL11GfzGbae5J 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)(346002)(136003)(396003)(376002)(39860400002)(451199018)(36840700001)(40470700004)(46966006)(316002)(54906003)(6286002)(26005)(86362001)(82310400005)(55016003)(7696005)(336012)(47076005)(40480700001)(426003)(36756003)(186003)(2906002)(40460700003)(36860700001)(8936002)(5660300002)(6916009)(4326008)(8676002)(41300700001)(478600001)(2616005)(16526019)(6666004)(1076003)(82740400003)(356005)(70206006)(7636003)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2023 09:53:26.0534 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fec57971-60cf-4570-700e-08db0827fe0d 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: CY4PEPF0000C96D.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7027 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