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 1B6C1A0C41 for ; Thu, 4 Nov 2021 10:35:52 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0A9A641181; Thu, 4 Nov 2021 10:35:52 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2069.outbound.protection.outlook.com [40.107.94.69]) by mails.dpdk.org (Postfix) with ESMTP id 2BA5640DFD; Thu, 4 Nov 2021 10:35:50 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C7J77HDwuVqjZPTrhOJ9Na59BFtUcycQwc2nE9zxZdAHnY78zE9ov2lRuVoB3mODbkmAgyeU9OFi2U4I5qgxzInmfmFHuzf/R4XQW44hUV8zZ5+V1Qm+Jx4S3O7JhgpQngtFlc506q6V2mjHEFvW6XErwKuparl3QHOiXOZVMeJngE5VYTWZmjr7EIW4kRklutelGdW6ctB6sY8/bBeoC7YKsKhnnK4o7d6abNaPmTsCxe3Aoh9+p0JwwUi4FP2qwRPz0PsHvhDNzF8qViDEYB2/8GsWVOKeXwqaK9y1b0Lk1MpHShVsN8XZ0X6v2iuCgW3wPEyM/VS67vcnpLxRgA== 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=txF7Uim3Z/KNEHgfCU0h/+toDaKFycHxhW0Fjcrl5jE=; b=aun3bthJlTdcLpFZYoGAuSy75Z/nglzyimvpdkqXEcCJ3IRWgyWsy8BB/cnHWXKO1LQpS/DvUzRkifqAIcN9jMtGTb0MNTv9VZECZwyOOv6rpVv87AWyjBr1He+WqKiwTiO45bt9jireU7miAlItM1jeTLQ7QQPV3rDLbu0mwAMrcfxB2rLk/AlmCwTLgb0IwlDMfIMpny0cp4cw/9B1Vrx2yYBAHjdizmD1htlj53h12PUN+XTcSu48q+cR9GpAWja/Ld6F/sJUMZn8CG3/WvX5NhvY9wgPcXGkWS6d1qy90O1A4aYFRLf+/Zf3kugjrCgDMQ+Iy4ShFRlM3mlHxA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine 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=txF7Uim3Z/KNEHgfCU0h/+toDaKFycHxhW0Fjcrl5jE=; b=DX3u0yFOT2MPeypdizFab9e0nf3vrA7C8DEdF12QBeWwqJMGIVBYtxlETEYo6nI09wNfdn8dJW2sAGrE7wcb3hWsKJB/tqHkaxdjIUiP3qMHnixIQtfyAlOwYK3BvXHBvCV/qvtaj9MY0SUNaOUa0UUDpa0e8/jEQC4xVunE/CUTVQp2UT9Qd6j2600ACyl3yBQk49IkYcKAFhiEXBzdw02OK0jwhJWZ9mgVOgVJf8kEYQ7AAhAr8I0JU595NMVxhlDMgzUF53PcqwHiuTvkYs4vYXg6DMegC+4M5XIcDLdkfS2kSJWjfmC/XvA1t07h619zlYnyw/x6iv+GQ70Qww== Received: from BN0PR02CA0045.namprd02.prod.outlook.com (2603:10b6:408:e5::20) by DM6PR12MB2601.namprd12.prod.outlook.com (2603:10b6:5:45::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.17; Thu, 4 Nov 2021 09:35:48 +0000 Received: from BN8NAM11FT031.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e5:cafe::ba) by BN0PR02CA0045.outlook.office365.com (2603:10b6:408:e5::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Thu, 4 Nov 2021 09:35:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT031.mail.protection.outlook.com (10.13.177.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4669.10 via Frontend Transport; Thu, 4 Nov 2021 09:35:47 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 4 Nov 2021 09:35:43 +0000 From: Raslan Darawsheh To: CC: , , Ori Kam , Xiaoyun Li Date: Thu, 4 Nov 2021 11:35:16 +0200 Message-ID: <20211104093518.8922-1-rasland@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1a419f85-6201-48b5-27d0-08d99f767b8d X-MS-TrafficTypeDiagnostic: DM6PR12MB2601: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dJoYCU2wFbL8zou5KCWdwh/axRRGLXMnwXLvKHUcEYU48DExdnUHwEE9ya6hGjEAZPsVJx9yk+YowtsDLYRcVbZe64GMkTOrb/54ORBMeE5o84klBfAceenndI4s6nvmY7H4XksZB/Kb/0WSwdJuZnOOKMC3NgB2kZ6KrEGzrLfy4I0xEvDTVEI1SkF4E+xjlTqDiZQFmJHD/5hL+omeX6FbpvBJc/Rraws6uVxRCz37PDAtA6Zh5q2huRhRFTQdVeRJJHwwRQvKCRoiS/CWFnJalAqDaNOTx5D/qY4M//ejH4dtd6LglyR2YN7ANMmKgWkE3DaM8N5s9uvUvGSz+0BSTzNbHqZQd4QVVpyA/QCc3UqK9sk9I252iHDvx3mEe0W3I+99RCaSzjVVCnlOcaw49X7XUrKUSohB5rZVcRpHL9OiPh0Tpa06LBvhAgj5w7CLKyWb2AUhJh+YhhziL+sByqJN06TQ8Zvm9Z2N3m3Q+suZa60Vhw5Y81hcGsYNtXI6R/R5CprMUOBs/K9CgxAaVdyn1kZZCMuf+ARcNd+19O/th40I9Jv5kCB0IlSx0QbyCSVcmYJQpeNQuPtZTk2wNusngCh/YOoOs5tJKrkBrlDEJ1ETnhckzdT99Fu/ipteMbRt9h2vOF5TTg4ZZuFwRhYLS4ABmeVWSkVeRaB0xaFXqwz1ZRquVuo6BnCXRrx3xcNgaUZmyZkyadrlHw== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(70206006)(4326008)(16526019)(70586007)(4744005)(36756003)(2616005)(26005)(86362001)(6916009)(2906002)(5660300002)(7696005)(36860700001)(186003)(1076003)(6286002)(336012)(316002)(54906003)(82310400003)(47076005)(356005)(8676002)(508600001)(7636003)(8936002)(83380400001)(6666004)(55016002)(426003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2021 09:35:47.5712 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1a419f85-6201-48b5-27d0-08d99f767b8d X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT031.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2601 Subject: [dpdk-stable] [PATCH] app/testpmd: fix gtp psc extention header length X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Current implementation for raw encap sets the length to be in bytes, but, GTP extention header length is an 8-bit feild in 4-octet units. This fixes the length calculation of the header length. Fixes: 9213c50e36fa ("app/testpmd: support GTP PSC option in raw sets") Cc: viacheslavo@nvidia.com Cc: stable@dpdk.org Signed-off-by: Raslan Darawsheh --- app/test-pmd/cmdline_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 24b224e632..b4c5aacdbe 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -9213,7 +9213,7 @@ cmd_set_raw_parsed(const struct buffer *in) uint8_t qfi:6; uint8_t next; } psc; - psc.len = sizeof(psc); + psc.len = sizeof(psc) / 4; psc.pdu_type = opt->hdr.type; psc.qfi = opt->hdr.qfi; psc.next = 0; -- 2.25.1