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 887FBA00C3; Tue, 1 Feb 2022 13:48:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 40C8E40698; Tue, 1 Feb 2022 13:48:00 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2061.outbound.protection.outlook.com [40.107.93.61]) by mails.dpdk.org (Postfix) with ESMTP id 7B75740691 for ; Tue, 1 Feb 2022 13:47:58 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AR+JQkwtDI0sG4K0aGczLI9HLjhBV+/PLbKMHvcHXp/0Lof7QCdTTS+yTvCBeypfY+HnMRPoyLiPosOYDKe9KgVwwbjvlr1rKB39vqI6PXHUm0gUnwAW0o5L6D5IQ4RTIIu71RPkGGLi52euTBnPUswtztPQeE2MVdESEQrVv5tntchXcQuZluNTOttCnmltvUFFqlye4Urug7R7ZQTa6AN+7z7b8+AnBqZPckv87BC7uw9gXA9MjQqZeounyWtKY8H6fXY5BpfEKOkG2ueQOjimNnk5AcjO7xsYkXz6udtL9AgXZ95xo4Rec77xPNFHQnvgiI+ddohTE3jqjY6aYw== 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=jdt+Gg7bSOSL+BpEOYq7GTeyeX1rFiUqniNhu3o/Rmo=; b=oKMVyjE3R5mcodEoF8Nrst0Xqn2eWg3L0OCjNJtHSPQv8xxcxr6ah49/cRRNen8PfPMSc2ehYvKIZHAKBKXQuI28a8GxySXW5ZMSneZRCXETh3MJ82tgTyJXeV6LvsWHl01Kd0JIRLUxTH497/ZNxjn4iScrT1Hoy3eGqj8UUryb8docLrL8qcUJylgOf5Lo0Rf1CGvJiRmZrhlckdQkLgvzcKjVmbXU6FmWrlevJTae1Q6gJcqex+SWytJMpWw4h8ULe135ZlsdFIraZUCFeDo0SdbSf8S6eGf+EFdbx0WRYVEsC/W4jALeRFnwsmCAUO4LlYxH9vyAkMyTO6XgQA== 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=jdt+Gg7bSOSL+BpEOYq7GTeyeX1rFiUqniNhu3o/Rmo=; b=o6hrAGYgC8TaqXbyqlXuzH0o3qcOwT5Yf/Rg3a/ZZCBfozigsz43Rc/mZNYGL8gmqEwgzcyYnPP708F8spFX3E3pvegwTiKSHisMngn7wGuwj+i9skSRTnW01Xek5KwdJZcX0g957SnCSJhRikMXLlnUIIg8d/nGcdBkyaOZGkaXtsCyrWc5EiVmKUMmmabRx3fuNrSYlgzSpaaVg8jR/Rmlwdane6plUoMlw6gNbf4ahaHsSMBVxgfuXaQsEQHFJH/TwsAt8hVC7E1NbhzUsDULKt/nldypcfz3Y1/97WJmm0hacIRcJDKb3mLVjFMcI93oyziiuJro7ik7gLqYyQ== Received: from MW2PR12MB4666.namprd12.prod.outlook.com (2603:10b6:302:13::22) by CH2PR12MB4328.namprd12.prod.outlook.com (2603:10b6:610:a6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.18; Tue, 1 Feb 2022 12:47:56 +0000 Received: from MW2PR12MB4666.namprd12.prod.outlook.com ([fe80::1869:1984:7899:8cbb]) by MW2PR12MB4666.namprd12.prod.outlook.com ([fe80::1869:1984:7899:8cbb%4]) with mapi id 15.20.4930.022; Tue, 1 Feb 2022 12:47:56 +0000 From: Ori Kam To: "Sean Zhang (Networking SW)" , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , Olivier Matz CC: "dev@dpdk.org" , Ori Kam Subject: RE: [v1 1/4] lib: add optional fields in GRE header Thread-Topic: [v1 1/4] lib: add optional fields in GRE header Thread-Index: AQHYEpDv7jQ+0uRH90eoIsUqDAMpi6x+rjNQ Date: Tue, 1 Feb 2022 12:47:56 +0000 Message-ID: References: <20211230030817.15264-2-xiazhang@nvidia.com> <20220126084404.40178-1-xiazhang@nvidia.com> <20220126084404.40178-2-xiazhang@nvidia.com> In-Reply-To: <20220126084404.40178-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: 7e0e8283-4ffa-4dd2-aad1-08d9e581120d x-ms-traffictypediagnostic: CH2PR12MB4328: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: lWcM7Oc4ZVoHhuBv075UhV0+vGLf2wRxutKx69eh4SNvHXdp38A5b2rCTrGSGFU/qzNzDZ1x1nowo3hcCRtr9EYukHyJLjUF7dWBAQ7eH9ikkyu40VQwvux+ff2HOj8hwSO+lEsXl/mq2A8X6p0FCdi2Pjo1SNqyDsYZud1DD+d5omwVrz0cHRvEhShL2CHLwaXxlfYYdUu5LUqtAeqDdPyuGQEnu099qFcEo5Mbxw8WUy5sZvsbP5o+cVr2flX07jPVdnY8JNnEvlxmYlGLinMkP7gWS7n7WrfpEx0nFj1qG0FAD7OxzbAEoAcbTSC+4HZZW1QupHODhdVWrlXaLH/SoT5x3WiQ5+15VxBm32iC2y8QyEDxvtA1v2opCkpHV9jOvOaasN/pKcNRm1N8MB4OZ1UESit/spTl3PZ0HIGnoT02fL7W7SyWvhii7rB6TLn2+Opx17/btQiXM9cD6/+XXIdk+mNjEFMciLZ7QPeTVe5Dn9SBksrtmJhgjcBgkPuuZSKR3yOe4zpFmHib8CyoFDqBd6SG67Ddvgiaynjb06FfDeSSQabyobvtOK+ITyMgGchwP1toqS0yYWVNkch62BzXF/POmipq7I1Pi+V3qfoL9lAbYmGuOJCg1fPfM308NVeLmagBP4Lu2RUhvHe+FpPzPPcSfH6v50dZuOqCpyn5tl6d4+byO5791oYRlC6n2pVJtNFSeNd7dk69dg== 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)(66946007)(66556008)(52536014)(508600001)(8676002)(55016003)(66476007)(6506007)(76116006)(4326008)(64756008)(7696005)(66446008)(86362001)(9686003)(122000001)(8936002)(2906002)(5660300002)(316002)(107886003)(83380400001)(38070700005)(33656002)(186003)(26005)(110136005)(71200400001)(38100700002)(54906003)(20210929001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FJo+Lkjc+UHn2JYC3SfZFtRIhQBr6Ri+X53dar81r+76AcpAhVEz4/nU4WM1?= =?us-ascii?Q?NAepy3g0KbGnvX8LP94EmYxjS6PvP5xMWQl4AzNdUlYcgFnv8P0imt9vUVe9?= =?us-ascii?Q?i9StNrwx9ne0Be/yqt8CtBUA+bu9mb1kGtF25H9UqY5ZT5tAC1pSi9YcFXbx?= =?us-ascii?Q?SLtoLmwWXY5lIDQYqquyMsiEaY2mH27+HwvtvNhSLDA6t8QdOxDZyvcUN5lY?= =?us-ascii?Q?PcfJkqMAuGgX1aMBhSO2hAYkZJOGC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?us-ascii?Q?grkXWnbS2JN0tCwxQ4r8kq1gU2GvvQOznpLKvaOpeRaGt76Oh91AzAYQnRUr?= =?us-ascii?Q?pc4ewtnv+9mQo90thNF3rCi3JgPxyEYagee6feSGGN99FgiE9g4yiArjlf3A?= =?us-ascii?Q?ZvKXRV06LnboC0W8Iwp+fKAE4yMdZQ25bv+WId2wYPhr+EGv2QvY0ScNvDmb?= =?us-ascii?Q?WcL8kZxRzWqxpfoe91CqSIqKj6q2gXqd95mzQH0OdyUS5NhHeq5EwSFELfY7?= =?us-ascii?Q?MunGPp7HlSoG0RehjMeEbm8MNMwNa4WIKmTn2oe8oyphVqTk/ui3Ro59Ijh4?= =?us-ascii?Q?i3iyduNuKCO5raxgaJPWIUhC7dXK69+oi2JV75SOM3yjH1ptOlb1Zp8pkFDN?= =?us-ascii?Q?Bg9OTpWFkXElZ2GLyVubXsklUmdg9AXd4vsuGR/T/6vUXxy/YHhum0cI2quZ?= =?us-ascii?Q?pt0tBhlbOPW1Xwo/MkmY+wYI+Edcm99zuAtYFCln1IbGlZIewGfmF6khNUA/?= =?us-ascii?Q?PTZ+CQ+du8uG1vlYk5dHAZE=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: 7e0e8283-4ffa-4dd2-aad1-08d9e581120d X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2022 12:47:56.4969 (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: khUsOONcQobWLW+Ziz0DI0Ii5scwtCHLCco5TjYSIRWJZFI+/8vmv4cDgq245zd2/10Urs6RTN7lRzL5NumLrQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4328 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: [v1 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 | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) >=20 > diff --git a/lib/net/rte_gre.h b/lib/net/rte_gre.h > index 5897756..5113e79 100644 > --- a/lib/net/rte_gre.h > +++ b/lib/net/rte_gre.h > @@ -48,6 +48,27 @@ struct rte_gre_hdr { > uint16_t proto; /**< Protocol Type */ > } __rte_packed; >=20 > +/** > + * Optional field checksum in GRE header > + */ > +struct rte_gre_hdr_opt_checksum { > + rte_be16_t checksum; > +} __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