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 2BA0DA034F; Tue, 30 Mar 2021 09:51:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A23F1140DBB; Tue, 30 Mar 2021 09:51:01 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-eopbgr770077.outbound.protection.outlook.com [40.107.77.77]) by mails.dpdk.org (Postfix) with ESMTP id 70BC1406B4 for ; Tue, 30 Mar 2021 09:50:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HJA+H8NgkxkhQyUhAFsYyk1mPjE2cjeD0z048QQ4mFLPMk9edj33Z6e4SY9WaKpnRndpzr9qEaQ7a+yuTiK6aQtfs2wrW1ijQAXL9stI5FggVqKwr809HDR6gFGgxN4TF9BRyUfpGfgpVOJZbmItJm1KYqzXASkYB6ZoXxmJ4dxQuLilKSzuXi3iJviC+Kun56dfjcSdwUbOZ5dDeMgrplbjmgIRVgJHoqKzWklh9f6HtQfhm8Y2k2qkndhM0LSev2xqlRr0RBOTXFk3seGXa2CSlTzpFNcdYtkjQv9sb1ACl+PpU+OFFo5LuawG4Yu693wd5GdH7Td2uXiBCuJtJQ== 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=C679x+324IGJ35jzFTj1TJKl2Vpf8y1/L5Ifr2tj6xg=; b=ceqKpuA/XhupYsdmJL64tq3bQ6F717q86r8Ktl5+Gh5Br01LaXiD6VbHuZupeFhxe0RfJaFTHyoUqOQq4O0WD8B3iyBEPq9HBxvZsf7EoOJeeEmI7NCiqJUMd2F4UVkidr98ITW+anmo2/roC9DA+TKKsfFcyLwTS5T4Hnk73Fa6v3s6gODNVHPJJTqQv05fak/6aHhhtA7dFU9WMGvQB7n1l/2/YQINyhH4Q1NpWfezYxdwf02j5GYWjnxzhcmH/k63V2QHbkUj4Y6gWVKJ08OHUx4eQqJcHYU4ZUqYSi2Z+8+W22/wcQIH4t9OBArj6aScrbqvk5mRwKdfWGKpTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org 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=C679x+324IGJ35jzFTj1TJKl2Vpf8y1/L5Ifr2tj6xg=; b=je8Lsy1gKzbwijxofFK3YYHSNjsKWF5GXcm1XhJtMln9M0mIyb7PvdPxHE5KxyAU2In1dN1+Pn7EmZ6FO6UkEMaPK0Ry0VppQFvrEylyzwzJGx8aQJArhLonJkP/iqXiHSNYckn/U2YMKEQWdmvYDnk9bjJGwPXu8zEDi0GZvOCmZyJH+bEAImIWmdsyPBaHxMaA6IDFBJCmWY79WIxHyzai+P51hRBclsRe/3fEL1KuDfAwLnSEfw57O5J9Pi9Fuvsbr5qK5DK4Cx29GkULgCLgh+YC45ZQGdYqTkxTrVH//YZIEHv2yh8haFfLLIv+N3iZoLNklA468MpTnLTXNw== Received: from MWHPR17CA0071.namprd17.prod.outlook.com (2603:10b6:300:93::33) by DM6PR12MB4283.namprd12.prod.outlook.com (2603:10b6:5:211::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.26; Tue, 30 Mar 2021 07:50:58 +0000 Received: from CO1NAM11FT053.eop-nam11.prod.protection.outlook.com (2603:10b6:300:93:cafe::86) by MWHPR17CA0071.outlook.office365.com (2603:10b6:300:93::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25 via Frontend Transport; Tue, 30 Mar 2021 07:50:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; 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 CO1NAM11FT053.mail.protection.outlook.com (10.13.175.63) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.3955.18 via Frontend Transport; Tue, 30 Mar 2021 07:50:57 +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; Tue, 30 Mar 2021 07:50:55 +0000 From: Raslan Darawsheh To: CC: , Date: Tue, 30 Mar 2021 10:50:35 +0300 Message-ID: <20210330075036.6579-2-rasland@nvidia.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210330075036.6579-1-rasland@nvidia.com> References: <20210323121134.19113-1-rasland@nvidia.com> <20210330075036.6579-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: 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: d3e8fe17-47b4-47b2-0288-08d8f3508e07 X-MS-TrafficTypeDiagnostic: DM6PR12MB4283: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eeLGkHWqZqRve9TE0nXCqQNjYvxJT4vQxFjKKOEJCjS0w+gEeR+R/rDv4GuEaHFLW/dKkeKjEkUHfEtkCoZxf1blbu3Mvtym0WFuOYiBPM9FVO+XU2LpOCSef3Jdvm1wxvjZn4+ywBNSThflZ3ch6AeS1K1QDPy8Qetk5+a829EIKCF4YC8XCFLlaEmVtrEg0CB0ddgfB1+zYJw+i0u+O93cMjcKQYTeBI7Prhkn78olbu9j3Gjwen6tY3r4jlRrYLuM9GMwYPJzLBI1m1K666RJfV99ZkgjGT3cpKcWA95Vbj2FffKVWJydkAR+bRaiv/TL4LrGUZAypjaDqDskNKduuiIDq1CcJ4B+itO1wbUBUqYN2LmgIWc+jtECw1zG7cr34TKUgmdC6luWnDlCM29CaNFJf38Fukcp72gBqFLHh5URjy4LiN5HdRuHaD9MrDT1EXdf898Bb6B/LruAZSB4Ahtlg/Qo5fmy6ybu4h5ikcVTNJ30o0KIKljZLkQ68ovQeLQo4WDzsbmMH3gjRwe1zH5ZdAI6O91JYKoxX+lnpVgZfqUvBiJkSRhLRF+ErsdUBlUrE0Joflb+x+qnaIaEDPWrq4Ulwx63QWEAsnTDc3SN5h4QiT8VMOcFeTTko8zTsfoofbpSRB3EkopR713IkqQ1IX1uZ/sGo6pay0Q= 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)(39860400002)(376002)(136003)(396003)(346002)(46966006)(36840700001)(5660300002)(36756003)(6286002)(36906005)(186003)(16526019)(54906003)(1076003)(8676002)(82740400003)(26005)(426003)(55016002)(8936002)(316002)(36860700001)(4326008)(2616005)(356005)(86362001)(47076005)(6916009)(7696005)(70586007)(6666004)(70206006)(336012)(2906002)(478600001)(82310400003)(7636003)(107886003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2021 07:50:57.7633 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d3e8fe17-47b4-47b2-0288-08d8f3508e07 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: CO1NAM11FT053.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4283 Subject: [dpdk-dev] [PATCH v2 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..8af48ea1ec 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 extention for GTP with next_ext set to 0x85 + * defined based on RFC 38415-g30. + */ +__extension__ +struct rte_gtp_psc { + 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