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 17EF0A0547; Sun, 4 Apr 2021 09:46:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4ACC9140EAE; Sun, 4 Apr 2021 09:46:22 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2040.outbound.protection.outlook.com [40.107.244.40]) by mails.dpdk.org (Postfix) with ESMTP id 19CD6140E81 for ; Sun, 4 Apr 2021 09:46:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TCUrDZRk2H04lQ1c5d+Qp3RIti1UuCbl8ovw6kUTdSBeHMeCp2BtG5qfuHcGI4YmQ/aAuPNKnSWmWlO8x6v+4Ebe7Mby8RyI3YztPJzN9RTgvTKztZ1FT8534tgOksB2M8uAYmrSg9nC/xvacFvziQAfrSOOIdWKYcwO2JEI0tnt/A55CAxiKAuC+e8QBz9qwcwPn48uNHq/9f0O3MaNUnwbcVHBGNCd0k6owRBmoQbeKkhumv/oCuXeC36EvG9jcsIjFzkV6+mQn5wMfXOnrUeIyFsoRYQBg1Z4aLy37v8vFGD8zgmC3ENEWBwbSAmGHmU4qUubrC+Wpf3HkFIRUw== 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-SenderADCheck; bh=zbvdwtJff/4IcJ+Lf4L/NjlR7SEmnOAexf81cDQ/ohQ=; b=J7XqQBycMT++ub1fdIok7HBRr7TTXFnhWGIxxuQUXzK9IwQKnldVuqbxsE++EENK+pShRv73rZmlvV+U+sKyxk6si9/YHoQ1+RKy3H6tNyIsQ3ga+YgJnuxxntzJuysMRPrNVmJZ8iIdXENQ+GfLM7fTsqbixyYMDyWPxJwfHG+cCKJnGRKK6xCp5DhNSDfIK6oEf9K4YXoDq2sOz/myaVOTR6oWWO/cg9yaZ+oCYCrdM386f8XdD/BQqEir608DjZ0CnAHxnreAM+vazjeGGIPVUKKf8H1n1xP/GYy3zlARb2HXrrMDKDrNB0SkNzDtkABBh7jNipoS94uDXQgEGw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=oktetlabs.ru smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none 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=zbvdwtJff/4IcJ+Lf4L/NjlR7SEmnOAexf81cDQ/ohQ=; b=UhePfY+3mTkwPye2AKsAVl5pawmSdbBYUclTDy9VEed1cRhGXUQ520QJNcFimQvpEVm7raHjeVIfXScGL0xV0NCKkVAWmUnejs/B2upReeo8sHoXog9cdXYwFsFIv6QCLjxJEghFMITJx+qIakecMUduBrHoVTakp+o9GTj1wnzYXVYCfcPwXuql8IYE226KdxaPugwL2f19cKMJWFGpxvSujwUIruyljSVanDl8L6fiFaX7v4fxA7uOgifRqMuz3m3NUTznKq7sgTK7vgoOi2bIbmgGf0+r1TSuuumnRCt+NNp8E5glD+w8IxhMixzJPvequ9W8rkyJRfchMr0wwg== Received: from MWHPR02CA0006.namprd02.prod.outlook.com (2603:10b6:300:4b::16) by BN9PR12MB5097.namprd12.prod.outlook.com (2603:10b6:408:136::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28; Sun, 4 Apr 2021 07:46:16 +0000 Received: from CO1NAM11FT058.eop-nam11.prod.protection.outlook.com (2603:10b6:300:4b:cafe::b0) by MWHPR02CA0006.outlook.office365.com (2603:10b6:300:4b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.29 via Frontend Transport; Sun, 4 Apr 2021 07:46:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; oktetlabs.ru; dkim=none (message not signed) header.d=none;oktetlabs.ru; 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 CO1NAM11FT058.mail.protection.outlook.com (10.13.174.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.3999.28 via Frontend Transport; Sun, 4 Apr 2021 07:46:13 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 4 Apr 2021 07:46:09 +0000 From: Raslan Darawsheh To: , CC: , , , , , , Date: Sun, 4 Apr 2021 10:45:51 +0300 Message-ID: <20210404074552.24190-2-rasland@nvidia.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210404074552.24190-1-rasland@nvidia.com> References: <20210330075036.6579-2-rasland@nvidia.com> <20210404074552.24190-1-rasland@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 27ebd91f-99cb-47e0-8e9d-08d8f73db8de X-MS-TrafficTypeDiagnostic: BN9PR12MB5097: X-Microsoft-Antispam-PRVS: X-MS-Exchange-Transport-Forked: True X-MS-Oob-TLC-OOBClassifiers: OLM:2000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XNkbIj0a8F7uykwNFbSPAM9cIdzRPra4TO1DlwVBjpAkx912hHHf2TgQ2xH8S+YgN0o2gb7kcOS4ctjlRPm5gf3mZEMwOVuLq+aZ+DHsm41Xtajsj2Oa1oGWGviC7vMNaIXEWq2l/f5FhOjXFkK1DHYgrdK/4u5+yF2BuTOa/VcotxTEwPbXtRYV4ZJmeOezikMrUUWIkts04qdfjiBN7xjROtjMdFMdQ2z4ekkNa19joS5thGmx+5ukHqMhz/B8j5nM4P0lrceggHqtmQu2U+oBhsXLZocHl4+4xmx8CmjlEWcHkeoTPZJFXVCpi7CY+h5SPGSHj7UgC6UiR4EmQho09cFKNJvwpErRsFKBwYQXqRXcrQALYeE04FXy8r6uDThB6Mqz1trCMoln5dfM3ca+WLHam8s9biYgfWG/47RpAc9Q/yJGAcHReDVP0+8BYfjgjBVhpuLBNzhtbMw4yEiUJgkGlaR1iECAerFxtShIWj5rmQlewZlykoLb/DXKCXfnlKFz8aJ+072HfJqOnnXuk/rZRW4lKNdlMZn36j1UBX/J51Ab9/5fQAm2DWHmOdpI4zPqCXhU8IXYvu5RPLT1Shq4/h8PKm+y7/BNqTD1NDILwUfjXOYeAJSozb7kSHUdGiPOXCYb7Tt0SM0uVl8hNIrQQOYWaSsIl7WAsEE= 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)(136003)(39860400002)(396003)(346002)(376002)(46966006)(36840700001)(336012)(478600001)(426003)(70586007)(186003)(47076005)(36756003)(70206006)(2616005)(54906003)(82310400003)(5660300002)(1076003)(6666004)(55016002)(2906002)(8676002)(16526019)(316002)(36906005)(26005)(107886003)(4326008)(8936002)(110136005)(36860700001)(86362001)(6286002)(7636003)(82740400003)(7696005)(356005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2021 07:46:13.8474 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 27ebd91f-99cb-47e0-8e9d-08d8f73db8de 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: CO1NAM11FT058.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5097 Subject: [dpdk-dev] [PATCH v4 1/2] ethdev: add new ext hdr for gtp psc 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 Sender: "dev" Define new rte header for gtp PDU session container based on RFC 38415-g30 Signed-off-by: Raslan Darawsheh --- lib/librte_net/rte_gtp.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/lib/librte_net/rte_gtp.h b/lib/librte_net/rte_gtp.h index 6a6f9b238d..088b0b5a53 100644 --- a/lib/librte_net/rte_gtp.h +++ b/lib/librte_net/rte_gtp.h @@ -61,6 +61,40 @@ struct rte_gtp_hdr_ext_word { uint8_t next_ext; /**< Next Extension Header Type. */ } __rte_packed; +/** + * Optional extension for GTP with next_ext set to 0x85 + * defined based on RFC 38415-g30. + */ +__extension__ +struct rte_gtp_psc_hdr { + uint8_t ext_hdr_len; /**< PDU ext hdr len in multiples of 4 bytes */ + uint8_t type:4; /**< PDU type */ + uint8_t qmp:1; /**< Qos Monitoring Packet */ + union { + struct { + uint8_t snp:1; /**< Sequence number presence */ + uint8_t spare_dl1:2; /**< spare down link bits */ + }; + struct { + uint8_t dl_delay_ind:1; /**< dl delay result presence */ + uint8_t ul_delay_ind:1; /**< ul delay result presence */ + uint8_t snp_ul1:1; /**< Sequence number presence ul */ + }; + }; + union { + struct { + uint8_t ppp:1; /**< Paging policy presence */ + uint8_t rqi:1; /**< Reflective Qos Indicator */ + }; + struct { + uint8_t n_delay_ind:1; /**< N3/N9 delay result presence */ + uint8_t spare_ul2:1; /**< spare up link bits */ + }; + }; + uint8_t qfi:6; /**< Qos Flow Identifier */ + uint8_t data[0]; /**< data feilds */ +} __rte_packed; + /** GTP header length */ #define RTE_ETHER_GTP_HLEN \ (sizeof(struct rte_udp_hdr) + sizeof(struct rte_gtp_hdr)) -- 2.29.0