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 7331D41C61; Fri, 10 Feb 2023 16:17:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5FC5F42C4D; Fri, 10 Feb 2023 16:17:58 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2058.outbound.protection.outlook.com [40.107.237.58]) by mails.dpdk.org (Postfix) with ESMTP id 4476542BD9 for ; Fri, 10 Feb 2023 16:17:57 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MaMf/u77B/yDnk6w2BY40WDDsTZfB3M3BsmdFVbx+mTL6Ua79h1uoG9WYcumWE4R+KiajZALnp4iQCiuglrJIafbFrG+Mj0/6Q7humns6qlApUFBAY5hqeP/a7l/6kWT9PVzNa0QRvN3ngM8jloPvVsEoFIauw6JKUzr/CWxX4xRwGY8AKE9STbA98BKVgndLn190fnoiNP66Js05hCf3R9v+om5LI8DEDUJLKALYSVDYMSF5+Dpu6I43gMx5Dv9zAx1Y2QwuPNW4mvYfJEE4sUuFi+pqPsz+P1hkmjz6GN9oCHEMTlgnhQDQ7RaeBhgpPrSoiegMyKfZjHxWefPbA== 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=Ce20dYlDuj4fApGrVry8j/eHtBrRhE9Zm2/cVUDHAYM=; b=MlLyibo671TRIEtfRFpF7afTCGsfxPjxyohYJPpkVY6ig/gKIJXvnRUryIW3xveedpcfe/InBZtOl0hzkBMT8fYsKhaGvYFgQTh44YxnMF/3HnggTbCWZKnsjVf05Vi7wtdrVvrn8NPF9RZy4DjEdGQXWCU+E+irjfZrXhbdaQumjpQPAHva0dZsWkZO2LAlolDsoSA3o4G5W11SxmldnFery94L4HpGd96vWpf/0D0MZDWyPc9pGco2RMZt6kEJmcpKRz40Wgtv57fwIgdbzPDKBCw3WgZPrh/UdaLLn0OLrqgivYJ8Xt+xJHJR7z6X5Dujxa3xH1OZ+BPCzAR3KA== 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=Ce20dYlDuj4fApGrVry8j/eHtBrRhE9Zm2/cVUDHAYM=; b=ka7iCdgSx5d4w+UpmswtXHYdyl1OBPZS8noIGdEXLHkB0BPEORjK+C1qhuDkMxHWXeYkWsRAd9VmRV6MjOq35oG5VnCWqXalCtCj8u0qWbVIbyOTHB3GPLnvlcD6OIw1mhnETaeuJt0rbS89CkGHi8oMYCv00MLwtDs/dPSYW4glVB35ysD0O2/GAl/3+8GmMo/4RvitWbYUJEMeIiFUL1Q+Sv1Ev0IYrXjIA4hrBxbkNcd8jelRx0XrnBcxU3jBzYi9rKbtqKybrotrBCdu2SR5OzN0gcEqrM7Fzy6+1gyGbkx/+ygxp0Sz9DIR/J2jCcHnfiJLvOYHGDCM4g2KJA== Received: from MW4PR03CA0108.namprd03.prod.outlook.com (2603:10b6:303:b7::23) by SJ1PR12MB6195.namprd12.prod.outlook.com (2603:10b6:a03:457::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.19; Fri, 10 Feb 2023 15:17:55 +0000 Received: from CO1NAM11FT012.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b7:cafe::dd) by MW4PR03CA0108.outlook.office365.com (2603:10b6:303:b7::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.21 via Frontend Transport; Fri, 10 Feb 2023 15:17:55 +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 CO1NAM11FT012.mail.protection.outlook.com (10.13.175.192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.21 via Frontend Transport; Fri, 10 Feb 2023 15:17:55 +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; Fri, 10 Feb 2023 07:17:42 -0800 Received: from nvidia.com (10.126.231.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; Fri, 10 Feb 2023 07:17:39 -0800 From: Viacheslav Ovsiienko To: CC: , , , , Subject: [PATCH v3 2/3] app/testpmd: add host port parameter into flow config Date: Fri, 10 Feb 2023 17:17:08 +0200 Message-ID: <20230210151709.1619-3-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20230210151709.1619-1-viacheslavo@nvidia.com> References: <20230206095229.23027-1-viacheslavo@nvidia.com> <20230210151709.1619-1-viacheslavo@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT012:EE_|SJ1PR12MB6195:EE_ X-MS-Office365-Filtering-Correlation-Id: 109c16f1-63c6-4797-6caa-08db0b79fc1d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UOFX5TEDxbJOIu1JqbOJqPbDSdm8U9whrZDDmjATo6X5t1RU6qXXDOCVAFmzewNBg3ZXz4jb4UZuL2/ib+ZGJOBlpeFeq6J6vi03rLhgNF7AoEx8fbiCejGG5x5aQWO2stDf2Cw6hnVfV3ohyPJM54I9BSV1qrvf8v4IuRh6d+nJG3d0Wma5PiJb7cyLEVZjCOmtKXPp9+CuiyIal7tngzBFj5QsSSHzLb9XbB95/BBxYfnDg6mRdSUuHn9hPZu3dAzhczy7ObiI1rKZrMJs5YXumESE4bU078SQWXB/lVYSpjKv7GGFlmTHz3onZqHm+0yt3kHm63I7Qe5XT7qg+WIPXOcsNjjpFFkdQx1FaQV1+bp7D97z9rPTN5vbKVULbKL6KsMYWeaFfHwaLaj2vEsY3DPxnRGE6Hwa0cGvYqKSkZoJIZCIXSUefHdl61Ow2khja1ddwfNwqIW8EqCC+NZzZYuJzQuC1qVYbDk4u8KHiGxNx5z//JXvm938rsZj6R2G84uYbHsZM3SkCu4j7TvwqS+BEk0aZyM3/CChDBqSeJI7CX4mfdO6MPkOxgLSD1g/tXjch3xFKAhf9K98tU1Pogg/sug59gFjEl1rkAsEUFcNL50FgrpOTsfVLwJlricRS6rGelB+iQi3QpK8X9jlkT9bGDyodZLFKX4CAAMe4ZpVFxa9ofOZ5iC+V7gxaMdPzbV+Njj2lzSAmTl5QQ== 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)(136003)(376002)(39860400002)(346002)(396003)(451199018)(40470700004)(46966006)(36840700001)(356005)(86362001)(36756003)(7636003)(82740400003)(82310400005)(26005)(36860700001)(2616005)(426003)(336012)(47076005)(186003)(16526019)(1076003)(6286002)(6666004)(478600001)(7696005)(316002)(8936002)(41300700001)(54906003)(5660300002)(2906002)(70206006)(40480700001)(4326008)(8676002)(6916009)(40460700003)(55016003)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 15:17:55.0229 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 109c16f1-63c6-4797-6caa-08db0b79fc1d 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: CO1NAM11FT012.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6195 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 Acked-by: Ori Kam --- 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 3b846ae73f..7778828919 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -230,6 +230,7 @@ enum index { CONFIG_METERS_NUMBER, CONFIG_CONN_TRACK_NUMBER, CONFIG_FLAGS, + CONFIG_HOST_PORT, /* Indirect action arguments */ INDIRECT_ACTION_CREATE, @@ -1114,6 +1115,7 @@ static const enum index next_config_attr[] = { CONFIG_METERS_NUMBER, CONFIG_CONN_TRACK_NUMBER, CONFIG_FLAGS, + CONFIG_HOST_PORT, END, ZERO, }; @@ -2767,6 +2769,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