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 A851CA00BE; Fri, 11 Feb 2022 11:12:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 987DA4270A; Fri, 11 Feb 2022 11:12:36 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2078.outbound.protection.outlook.com [40.107.92.78]) by mails.dpdk.org (Postfix) with ESMTP id 4796741144 for ; Fri, 11 Feb 2022 11:12:35 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=URqf67FEJBS5eSHwiyqCN/oADlmHIlhgfpT0qXbjYencyfbybJZiqvIqx5Hmz453k3lZImc1C0xGV4iMVlDPvjYF3rVV+tJsaTTiJYPSm8AkYVgt+WDO0VwvugSghuLToTxg1RtwjFmbvu4vPwI/3zgHoeUTbXDK3L+K8LAwRRVigXyoNqPMXxY4g7yxIXudC98O9I2RsRjVqWvFR4aErV017griIk3N63QngqUcNM3KtztA0WNIYu2nnP39FW7LV5H5kYD6iO0I5AJ7ttiYoVwkgkBqC3M95cjbIYuAxbl14Zp9K/ATWF8mikZGfigB7u8hjRt/n8mfDSt/v0oIZg== 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=yjnNwl37s/84v3DyQppyLHNpo5AtMwxP7gg4MfvuZ5c=; b=TcOUKxzZMiautNTUQqwtRVpleSxR1mP5vHXSGYdLw+fk75kdWdjJf7Hi2+B1IPdIivc19mDmmgQzUGibjhrV/LawNR1tzWTGg/1ey63Qa32jaTnHpTHQiKNVvpQHcNVqxWIQYVlrJQrSGY2oNJuG6R3oCflJN8PLTe1t5EGKrSJE1CTdaAlOKMTDNtCn9hiGZyPo/sWbmuGNa2P+1VdHacw/qWP4DqWzRqw5bq4KwxASVUAdaV6xmsQToxF7GHWjgQo4pJkDsqvSoUb/skyhkuWcjA2HLcv5CawJcdc6nfwADWVBmt9jnJyrhaG4sHgS7zXThIWzzNwt56Vk8TW0Og== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=yjnNwl37s/84v3DyQppyLHNpo5AtMwxP7gg4MfvuZ5c=; b=nclEgzYdeEibm0tmWAl90DRAtuTppFjMHcxR0h3zVhK8MCeCFfUKrn5IKBsZ2pGQlu8y/Z6PukvDv4h/6mvLL6CfCGoDabxlWiRoeB688GnzPyUFzWgCsH4KXI4xhAHk4J0Ks/rOHkhDPWti0jaUXPH5R3iu3EF6S344mFKATizj5IDVSDLhIAcAfIIr+38bqBWOyjPqsBJAvKi1PILw/Cm0TrNPa3iXq6yHNSKOaNzlwPmpIsGwEVIsGdmw+mCMNB5LFOJ5B0KuhO6DM3kg35/TlNjtv5db5+AVVXmwITYOSn7IR2DOHoBDkmTp0toUzqyOXjrzALf8saW0uamzzA== Received: from MW2PR12MB4666.namprd12.prod.outlook.com (2603:10b6:302:13::22) by BN8PR12MB4593.namprd12.prod.outlook.com (2603:10b6:408:aa::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11; Fri, 11 Feb 2022 10:12:33 +0000 Received: from MW2PR12MB4666.namprd12.prod.outlook.com ([fe80::9d4e:649c:c6b8:b353]) by MW2PR12MB4666.namprd12.prod.outlook.com ([fe80::9d4e:649c:c6b8:b353%4]) with mapi id 15.20.4951.019; Fri, 11 Feb 2022 10:12:33 +0000 From: Ori Kam To: "Sean Zhang (Networking SW)" , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , "ferruh.yigit@intel.com" , Olivier Matz CC: "dev@dpdk.org" Subject: RE: [v2 1/4] lib: add optional fields in GRE header Thread-Topic: [v2 1/4] lib: add optional fields in GRE header Thread-Index: AQHYHukjHzjYOAC1g06FMOLP2Rd1Z6yOId7g Date: Fri, 11 Feb 2022 10:12:33 +0000 Message-ID: References: <20220126084404.40178-1-xiazhang@nvidia.com> <20220211014530.77711-1-xiazhang@nvidia.com> <20220211014530.77711-2-xiazhang@nvidia.com> In-Reply-To: <20220211014530.77711-2-xiazhang@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1f435651-35fc-40c6-0e16-08d9ed470537 x-ms-traffictypediagnostic: BN8PR12MB4593:EE_ x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2150; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 207q+euTeDZ15Yq0wZFQ60rT1c9xQdU+74HZSn47uC5cU+baKDdXBy+ewo9I1LiCvTSQUNFJCVv9+5lZc7d434omy/DegbZC4duChCOtYPnZdaIddDgf0+UPzBCE8KnIsAve2aGok/UExGdf1g/xyF+tJ4+TDEALiME6s4CFJdj4AEOFdS9NT/SXfsFz8I1F9osoZSP/cm4G3nexE/AYKfjQelOuqOp+SexsoU4eMhMPW5thZ8rLs3oGGkau1VCxKh4Nzme3J8kXqT08UCsUf02IM1IIwh48LQqRNp3/hXz58jxdUkhahqCExHYiTY10NJjxrR9dbTaW5NHVlRl3ms7yKSYuqnlOWjLYr8ImZl+TNDv05WH45TiBMfCkatepiJbAg6jFHjZFT/z/IRONUcPOyIfAG2xrCR98k4UMqwUFnbsjdCRkSFtd8/VLRWCcLrLqYiW3RqNfy8Xhd330zYf0/wPO1nnrY9WwBX5pzH3tp+HnCforw8JYrr/H99XH1xi4JIJ3qSFALVVS6l2VjACZNRFAbsipV9/m7h3XF7vOGlctdfYCKc7rMEvTWm+sTYJucqRC6iSf7XYJwthx+A4OSxqp42+buLvSMhbI8UeSVIr03+lt2wstO2YwfnmsOITjZ04yojl5ZbFvbdytZ1Vm47E/NMGW6rC0Jjytoaqml9GMYSd0KXVjwRjFL8+PPie4dGPsd6eeaM5fKI7t8A== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW2PR12MB4666.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(110136005)(38100700002)(5660300002)(26005)(186003)(86362001)(38070700005)(71200400001)(76116006)(55016003)(33656002)(66476007)(64756008)(4326008)(66946007)(8676002)(83380400001)(508600001)(7696005)(316002)(122000001)(66446008)(9686003)(8936002)(66556008)(52536014)(2906002)(6506007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HbB/Sam4VtFZptPy8WnHg0fWKcn0imlnGAEfmbgKKNuq1C+ilLizp0WeBTk/?= =?us-ascii?Q?41I3juJYFOH7FGZWf6P5/ySTRgj7yXTwL3Yav6sPPEWWX5M/it5+clqs/OXH?= =?us-ascii?Q?i7LCs3Ll0be8O5VOlLoDlygzjxrXUaDP7tdOBx5V9oXt4uDGN+kNpzjyCAfS?= =?us-ascii?Q?dMKhk14xKb3+ufgzOlYbVXQOPkpKZ8kT51fN7bfHfx7HnjRpPt4QkhiCCarS?= =?us-ascii?Q?G88fSLFsq0dN6HRZ/Fj4f2BW+I1IrJHHXLYa7VUGsM/JeyBu3LnzOt30mKm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Q/m9hNygHD5zkrnTzJcfzjqrnxqqhiqap89kaZR83?= =?us-ascii?Q?hASV6gmlhrTZu0TQ98zdLbXIxVS3S2V5GE9jMO7yzrdO4pAkqUcYXgWp7uHl?= =?us-ascii?Q?FgP3pCPu8WQn4SpYI9lx8/dOOox4JlH7ribIoDZxn1GQXUEMgrK+R5bluW4o?= =?us-ascii?Q?k0330RLh53zljSoUnT4tCynk6nIPAlVksL3GX13Xrh6uZMu+msxDPrz/TBzV?= =?us-ascii?Q?EWf7DYHJx3qTD83zTTnMXooN1cUHwMsbnDjlpTLlATKAQWJ2ECSmOThbjDmy?= =?us-ascii?Q?icf9LcPrChFvRNPQJfR/uAJjCvDEzLnmjFP4ln8YfN3TaTg9Vlxb5uI75uOW?= =?us-ascii?Q?quPmppbkD3jWfv3665NS0NNau/7RleNptBjwSAQTshrnwL28fAbIOQke61VB?= =?us-ascii?Q?Vv7QdiyDE2mCzP9ZXhcQg1EYQ5K4RPmm0souKiuNlcjt/RTcBAThbcqHoo0J?= =?us-ascii?Q?cA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW2PR12MB4666.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f435651-35fc-40c6-0e16-08d9ed470537 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Feb 2022 10:12:33.4653 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Tu1MBOAg1pkFQWa1vz4vgU0tWaZYdC2jTCXlQXFCgYTzhkpgjva5Uh9Co7R+uJh2uEZnGg2Yb01ypHEpNoBuFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB4593 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 Hi Sean, > -----Original Message----- > From: Sean Zhang > Subject: [v2 1/4] lib: add optional fields in GRE header >=20 > There are optional fields in GRE header(checksum/key/sequence), this > patch adds definition of structures of the optional fields. >=20 > Signed-off-by: Sean Zhang > --- > lib/net/rte_gre.h | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) >=20 > diff --git a/lib/net/rte_gre.h b/lib/net/rte_gre.h > index 5897756..6c6aef6 100644 > --- a/lib/net/rte_gre.h > +++ b/lib/net/rte_gre.h > @@ -48,6 +48,28 @@ struct rte_gre_hdr { > uint16_t proto; /**< Protocol Type */ > } __rte_packed; >=20 > +/** > + * Optional field checksum in GRE header > + */ > +struct rte_gre_hdr_opt_checksum_rsvd { > + rte_be16_t checksum; > + rte_be16_t reserved1; > +} __rte_packed; > + > +/** > + * Optional field key in GRE header > + */ > +struct rte_gre_hdr_opt_key { > + rte_be32_t key; > +} __rte_packed; > + > +/** > + * Optional field sequence in GRE header > + */ > +struct rte_gre_hdr_opt_sequence { > + rte_be32_t sequence; > +} __rte_packed; > + > #ifdef __cplusplus > } > #endif > -- > 1.8.3.1 Acked-by: Ori Kam Best, Ori