From patchwork Fri Nov 10 07:04:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Etelson X-Patchwork-Id: 134078 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AEA53432EF; Fri, 10 Nov 2023 08:05:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 19858402E7; Fri, 10 Nov 2023 08:05:10 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2045.outbound.protection.outlook.com [40.107.223.45]) by mails.dpdk.org (Postfix) with ESMTP id 694354026D for ; Fri, 10 Nov 2023 08:05:09 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EI8uValOckE/AAjDM+be86EZzZQ+ic6Qv+2qLEIg5Pz2K8MG2M32K9WmsFf+qGGovkjdFntnVPGF6mC74ySfrla35chqHfeB8sykI27mNhTUZxOro6UXum3K28ZNU04gGKaHznLUAzQIkwPpiJCgYyksw7mjP9YVWXl9Kpj4yeEiIG1r9H8S5WQBy1/srTQ5AQ5wUU9pk4VrMfwYl8rvfPhzT2n9lORwzgFi61l9Yu37Y3LJvPOidO6P+MPvrgqLgJQ30sHI4vM4tN/GYI19+boOpG7DQukGbuX8MvfegWuPlxQptu3QeYzpkeCt9/xgTMHQR+gGDfvAPJGIleF+wQ== 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=STjqYRfsGniyb+DuoHkypNAi1pR9Dtl1ootTklPqSPI=; b=ElZ90dDyUOgEPbe0T8Sex2u8f5iTkG4Wh9oopODVx43MZIF7khUtEVKcxINkwKrKSAToYPc0Su/qJnVofH7ZiHkCW86GcL90GbHqtJTV8eDJdUcLmi7w0vqs8mSmLStJnKW2rBMSUCkKidsqMFh1kyt3cEbaYljf/8TS+Gj7um1lGilZxny4+I/EgRniQxxOlhSjpD7i8sQ353+QF6r7Jj8aD39BEUN4BJGgYhR/4koF8cp5lHF3sjJvNrMfErXPM5+0B/nc1Mm3Fe2Kv6aByse0cxP1Xq2e8sdFAOEMBVNY1hIWuEv7ukkxpUtef+ri3hV49r59T1IAvnH3ZYmNLQ== 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 (0) 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=STjqYRfsGniyb+DuoHkypNAi1pR9Dtl1ootTklPqSPI=; b=R1hZNpxX9yaf04F18hknP87F4D5SbCq5CXyGGK5UHrbUQkT2XSsOp03yWScK3X7jeR3d2m5FE8KydsvuKxfISq+RTHcMH2WnP2RtAe5qe1ab8XJz8rXX8yHm454Fk0J+1zgfa0vlB3SiTzrvZ1qX2jXZ38DTX2mWYkU1BAlXDa3OAkLJXg02YhoL2WSrOFZL4rCSz95EtgetOItOw8sltDceaLelMg7zuWLnxrlfJtyW78zzEZ2GnZOcSi1Z6woTcHYkmXhgN1pf5PFFOfsgZclTa8FXVB0DfbaEUkr1YLXZpb33eX/RByiDXNkCSQkg7acfMuI3jdd0uNILWfvPMQ== Received: from MN2PR19CA0054.namprd19.prod.outlook.com (2603:10b6:208:19b::31) by SN7PR12MB8604.namprd12.prod.outlook.com (2603:10b6:806:273::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.29; Fri, 10 Nov 2023 07:05:06 +0000 Received: from BL6PEPF0001AB73.namprd02.prod.outlook.com (2603:10b6:208:19b:cafe::4f) by MN2PR19CA0054.outlook.office365.com (2603:10b6:208:19b::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.19 via Frontend Transport; Fri, 10 Nov 2023 07:05:05 +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 BL6PEPF0001AB73.mail.protection.outlook.com (10.167.242.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.16 via Frontend Transport; Fri, 10 Nov 2023 07:05:05 +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.41; Thu, 9 Nov 2023 23:04:53 -0800 Received: from nvidia.com (10.126.230.35) 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.41; Thu, 9 Nov 2023 23:04:51 -0800 From: Gregory Etelson To: , CC: , , Ori Kam , Aman Singh , Yuying Zhang Subject: [PATCH v3] app/testpmd: fix indirect action list ID size Date: Fri, 10 Nov 2023 09:04:37 +0200 Message-ID: <20231110070437.517715-1-getelson@nvidia.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231108163445.422772-1-getelson@nvidia.com> References: <20231108163445.422772-1-getelson@nvidia.com> MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] 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: BL6PEPF0001AB73:EE_|SN7PR12MB8604:EE_ X-MS-Office365-Filtering-Correlation-Id: 43bc9495-7fab-4e09-4c6a-08dbe1bb5dfe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tbB37FW6o+LKHjRFd37n1K84OUX9aVvcupEkiJHhQz3Fwt6LR6JWGlpFEgndYPdQD0vnw9Dc107QR15bAwhbh96TcJ/U7ONJNvlkmX6+My3czEUh5OQ8IGhMzYvMwajmVxOTF67F/afjr0P9+b9FMW1yebsUjQ77i0CeTM+rxFvuVIRuqXuXhzaVhWIzH0xn8jK5Owwi8gE1T5u/KwsAp7C9XnI2mgyuS1AiIRgzyK6u96QXknHXpbso6AX2et12ITHVKN/6Yt3HPLdbc8R/c2QMXDX+S2lGp4SyS0lzbr1kywvFzGuSvxJ8obG6q6l4SW62ad0n+NM4o6/HBy2B17Itj9EebJQVX7ICvxhM3M/8ErbvfpNPnHOm/l+tSzPPE7vtOe6UD23jx2MzZKfO3YvYmUtNDm+0HHAQZv3HUGSl3aU4cZuu42/bDvFLM9ynKfcnijU7ihbKr3atYPkrEtoWNiz5DIVXVPwFGvVkxDKipcEkqkw6cn3IyBKcSK21jK04Rq29o8010L3peMex2DpYjgIQQw6Qtcu5ROisI5doNu3CSWKWSjdoXYER9dORO7bqGA2bupG1lzqu6HkPfDAsAPk/+laMHKvzrFm/v+J6XjoL9RORzLUrmHJz4siQjrI8TQL+xW1nfF9MBBWAWdL608qTZ+yroc+zxQ5BpgwLVHOoGm/BpI0lLp3osj/r8CvFiQyBTRN2T31MNG+wpp4wGjJII3C5gHpRnbRcb1q85TC20Qd8RMG0AlKFwF5S 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:(13230031)(4636009)(376002)(39860400002)(136003)(396003)(346002)(230922051799003)(82310400011)(1800799009)(451199024)(64100799003)(186009)(40470700004)(36840700001)(46966006)(2906002)(82740400003)(8676002)(4326008)(41300700001)(356005)(8936002)(7636003)(1076003)(83380400001)(316002)(47076005)(426003)(336012)(5660300002)(70206006)(54906003)(478600001)(110136005)(70586007)(40480700001)(40460700003)(16526019)(36860700001)(6286002)(6666004)(86362001)(7696005)(55016003)(26005)(36756003)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2023 07:05:05.3106 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 43bc9495-7fab-4e09-4c6a-08dbe1bb5dfe 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: BL6PEPF0001AB73.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8604 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 Testpmd maps indirect action lists handlers into application IDs. Testpmd API defines indirect IDs as 32 bits values. The patch fixes indirect IDs size in ACTION_INDIRECT_LIST_HANDLE and ACTION_INDIRECT_LIST_CONF tokens Fixes: 72a3dec7126f ("ethdev: add indirect flow list action") Signed-off-by: Gregory Etelson Acked-by: Ferruh Yigit --- v2: define `id` as uintptr_t v3: define indirect ID size as 32 bits --- app/test-pmd/cmdline_flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 0d521159e9..ce71818705 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -7383,13 +7383,13 @@ static const struct token token_list[] = { .name = "handle", .help = "indirect list handle", .next = NEXT(next_ial, NEXT_ENTRY(INDIRECT_LIST_ACTION_ID2PTR_HANDLE)), - .args = ARGS(ARGS_ENTRY_ARB(0, sizeof(uintptr_t))), + .args = ARGS(ARGS_ENTRY_ARB(0, sizeof(uint32_t))), }, [ACTION_INDIRECT_LIST_CONF] = { .name = "conf", .help = "indirect list configuration", .next = NEXT(next_ial, NEXT_ENTRY(INDIRECT_LIST_ACTION_ID2PTR_CONF)), - .args = ARGS(ARGS_ENTRY_ARB(0, sizeof(uintptr_t))), + .args = ARGS(ARGS_ENTRY_ARB(0, sizeof(uint32_t))), }, [INDIRECT_LIST_ACTION_ID2PTR_HANDLE] = { .type = "UNSIGNED",