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 379AFA00BE; Thu, 16 Jun 2022 11:34:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2956B42C06; Thu, 16 Jun 2022 11:34:54 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2077.outbound.protection.outlook.com [40.107.244.77]) by mails.dpdk.org (Postfix) with ESMTP id 00CB94003C; Thu, 16 Jun 2022 11:34:51 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lq+qjVuAV2JnDG92fenjsnUBgxSbWWlmGz+VO/zIaoq2As866nYZgWD9eVMQsY55a7jGFhkdzrzS9ao3pWN6fI6EsL4FfzRAizRxDNpWd2gKFb4fxHwsJL2Nt+kaPuZHSx/RgR4gqIc2Vm/s+SKXAez2DaAUHXBRJIOQ6vhwziZ7jz3d0adZMfp6hJ45R+T9jogXs5KYVMTck7N47HQ4mlFYWcM0DzuMBVCa65WJPd9UyGZQOMCQ7QY76G0SJXuEYLJKm9lyGM6g1g2BXtO9UYl/7WAkC3StGd8zbkbnyumgouHuoZsMFy9L7UEUyvBpE2OpofDhjwBtRf09NKLxeQ== 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=KMGqINJXBzloCVCRHw7khkFmTO0a/geoROcFiSugBR0=; b=F5RnDjXdnfSmtPVqj37RgaWwYT6vtO5djxmdoCOlo11KO1GCtmYTODzisp5k7WKY+y5y+r0Kr1cIkU5zQ/xj+npfBHZzwFHXXMHQ9MqWUY+umvSVamv7UsCYeVLNXeqEDWU/kfeejm98FG3aFBr6nziZGuhsDTm9VV+zvKIBMsovw9UZRCsP8TPLAuPbUK9ta+EPE+QiZ/o4fXgPdwpLr5a+NdgQL2mDIyHc4qhfJjkCTuzuOWy0E9cc1SLcfXCFh8jWuCMu2xCCXx2eNvagAPVWKh8UqMWFQbxVVL1YglRrVWf4d/4+1xCsmALWU3NJ8g6lIX03xb3621qBoBZjGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.236) smtp.rcpttodomain=6wind.com 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=KMGqINJXBzloCVCRHw7khkFmTO0a/geoROcFiSugBR0=; b=mJLhAQRk08z3u+mesC4kMicV+YrBSjf48W13mJRgeiBNIkZRCclotxywOqtcHqKwho7WX9F4NZZ/2GZzRgYulDvtWyzJysDg4rlIOTlIw3lAayEmERBxhA5Vk3FonUlzvov0l2rQiFtF387q8HsWk6wadFxXvO/7Jw3dR4iOwaYczKj5knLMKcadVspEeOrl6+XCG7R2wJb0730jvpPNqAQHq8AZPaPuKM+CS5enqxZN9AOd4QJAJc9DAIR4oa3Po7X1UoHd6tkFKcFZis1V5xpqhrhMKEij6VyyY7WaajMsirSpR/3xRReBAej++EYBT5Xw8tdinH4kVouWPr6phA== Received: from DM6PR06CA0063.namprd06.prod.outlook.com (2603:10b6:5:54::40) by CH2PR12MB3831.namprd12.prod.outlook.com (2603:10b6:610:29::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.16; Thu, 16 Jun 2022 09:34:50 +0000 Received: from DM6NAM11FT027.eop-nam11.prod.protection.outlook.com (2603:10b6:5:54:cafe::cd) by DM6PR06CA0063.outlook.office365.com (2603:10b6:5:54::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14 via Frontend Transport; Thu, 16 Jun 2022 09:34:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.236) 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 12.22.5.236 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.236; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.236) by DM6NAM11FT027.mail.protection.outlook.com (10.13.172.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5332.12 via Frontend Transport; Thu, 16 Jun 2022 09:34:48 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL109.nvidia.com (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Thu, 16 Jun 2022 09:34:47 +0000 Received: from nvidia.com (10.126.231.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.22; Thu, 16 Jun 2022 02:34:44 -0700 From: Gregory Etelson To: CC: , , , , Viacheslav Ovsiienko , "Olivier Matz" , Ferruh Yigit Subject: [PATCH 1/2] net: fix GTP PSC headers Date: Thu, 16 Jun 2022 12:34:16 +0300 Message-ID: <20220616093417.27843-1-getelson@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] 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-Office365-Filtering-Correlation-Id: a70ff99c-17d9-42ef-9d4c-08da4f7b74dc X-MS-TrafficTypeDiagnostic: CH2PR12MB3831:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XaS8hNIXdU++vQejPnIJxVmG7oQGDW7sEc60Kk2ayhdfOGhYSzGsljxjpWDyXE7TjfKzE5L4aAxKvmgD1emG6ThS15vXvQQpa/wvvJc1GZaJ/o+jTrCzmkU2QbGJtQYLMutLK8DsFKp4TmzI3dsicwPgsiPqNqujMuPbWPPdzlLKQoho9YhGMp2zcetEBgqysbnDmlx3+kwE5gIneW6KfU637vRTnwliTrcQUFmw2XVH3XTOWWuDspilhUih1y7S61vTuyuaAKUOXLZ5lmhjT3xjOY227GM4Ay80GOGJ9Ro8ADrOOzYRBoTpCgCZLVa/svPqKTtMG751vg1/6KAC2fLHVgBkHS50rvlSaXjFdSsOdXEFop2ciZ9Hj6L4IdQ/pwMPEqowkEJFMKi/VCK1Dd9pVx5qSNryhiMX9E7VsRcPMP20OP0dehNpRa8Y3j5lX8gb7w2LCLy30ZL4HbfRbxrgALMNOsRzXkid+PFcJU9QFfRrk7cEdLCdIAu1QMYgS1dAfzRLRNvCpsD0PRd/nkihyBVv+JGtUT3M3WsN7dHO7H1GOlMWL6DvJjLQQvUVjcTcZXksmq/JsBDORvdRj5d6JX60UM69tS+Ih6ozN4Nb2PrLcPltxzRngJjMAX4SceMwLKmMAwa1vO9jE1ILQEPYBcUGgZqPhMKmzObaE9yREodY28GRVDSO80a2lVLFmeV0ZGkzwQcrQjqP2WuNNQ== X-Forefront-Antispam-Report: CIP:12.22.5.236; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:ErrorRetry; CAT:NONE; SFS:(13230016)(4636009)(40470700004)(46966006)(36840700001)(40460700003)(36756003)(36860700001)(81166007)(47076005)(316002)(356005)(86362001)(83380400001)(26005)(336012)(7696005)(16526019)(6286002)(1076003)(2616005)(426003)(508600001)(186003)(54906003)(6666004)(8936002)(6916009)(2906002)(55016003)(70206006)(70586007)(82310400005)(4326008)(8676002)(5660300002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2022 09:34:48.5283 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a70ff99c-17d9-42ef-9d4c-08da4f7b74dc X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.236]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT027.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB3831 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 Fix bitmap fields order in little endian section of GTP PSC headers. Fixes: e8ca1479cdc4 ("net: add extension header for GTP PSC") cc: stable@dpdk.org Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko --- lib/net/rte_gtp.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/net/rte_gtp.h b/lib/net/rte_gtp.h index dca940c2c5..9849872366 100644 --- a/lib/net/rte_gtp.h +++ b/lib/net/rte_gtp.h @@ -75,11 +75,11 @@ struct rte_gtp_psc_generic_hdr { uint8_t spare:2; /**< type specific spare bits */ uint8_t qfi:6; /**< Qos Flow Identifier */ #else - uint8_t qfi:6; /**< Qos Flow Identifier */ - uint8_t spare:2; /**< type specific spare bits */ uint8_t pad:3; /**< type specific pad bits */ uint8_t qmp:1; /**< Qos Monitoring Packet */ uint8_t type:4; /**< PDU type */ + uint8_t qfi:6; /**< Qos Flow Identifier */ + uint8_t spare:2; /**< type specific spare bits */ #endif uint8_t data[0]; /**< variable length data fields */ } __rte_packed; @@ -100,12 +100,13 @@ struct rte_gtp_psc_type0_hdr { uint8_t rqi:1; /**< Reflective Qos Indicator */ uint8_t qfi:6; /**< Qos Flow Identifier */ #else - uint8_t qfi:6; /**< Qos Flow Identifier */ - uint8_t rqi:1; /**< Reflective Qos Indicator */ - uint8_t ppp:1; /**< Paging policy presence */ uint8_t spare_dl1:2; /**< spare down link bits */ uint8_t snp:1; /**< Sequence number presence */ + uint8_t qmp:1; /**< Qos Monitoring Packet */ uint8_t type:4; /**< PDU type */ + uint8_t qfi:6; /**< Qos Flow Identifier */ + uint8_t rqi:1; /**< Reflective Qos Indicator */ + uint8_t ppp:1; /**< Paging policy presence */ #endif uint8_t data[0]; /**< variable length data fields */ } __rte_packed; @@ -127,14 +128,14 @@ struct rte_gtp_psc_type1_hdr { uint8_t spare_ul2:1; /**< spare up link bits */ uint8_t qfi:6; /**< Qos Flow Identifier */ #else - uint8_t qfi:6; /**< Qos Flow Identifier */ - uint8_t spare_ul2:1; /**< spare up link bits */ - uint8_t n_delay_ind:1; /**< N3/N9 delay result presence */ uint8_t snp:1; /**< Sequence number presence ul */ uint8_t ul_delay_ind:1; /**< ul delay result presence */ uint8_t dl_delay_ind:1; /**< dl delay result presence */ uint8_t qmp:1; /**< Qos Monitoring Packet */ uint8_t type:4; /**< PDU type */ + uint8_t qfi:6; /**< Qos Flow Identifier */ + uint8_t spare_ul2:1; /**< spare up link bits */ + uint8_t n_delay_ind:1; /**< N3/N9 delay result presence */ #endif uint8_t data[0]; /**< variable length data fields */ } __rte_packed; -- 2.34.1