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 5A85D41B86; Tue, 31 Jan 2023 03:03:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F153E40EF0; Tue, 31 Jan 2023 03:03:45 +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 77AF840DFB for ; Tue, 31 Jan 2023 03:03:44 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n8ZgWXuv2YcyYkuqnJoEzfo0BqnFxd0GGOx1ecB/4x+3FrSa4cJvP4U432V33Bvf12Fc8ogV/t8t713zp+V3W1la5L+yccvaYhqasRjEttRl+SdPNTfgU6Vclf4jrBdejINJUl05HNJCcGK8r2cR3GgoduXk8DvcleqCqfDxfQL5UwPrm9ksKdk6ZOTtcZkZ1xiyKBdEpI/eM2ttPH35yN8I2vjUPsTAJD9TSJsd+CpX26EEdwFevo0EIgMQeWqLmlPkCD5UKPDAJGRmiywFzb8FPLcp9GrjjOIrZzNQL+iYcWubM0ggA6c0SbhwbnZx8CJOYrKIdRHMvxIZ1rTVsg== 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=MzfsJHaYyKHXDGxXZhYh1ShZGY3JISrDpRCNK2Gj8Mk=; b=CviXj9nQpI+VHIb1lSr/ui2Ad2dwu+FBFYM4wsNa1rUuTvI17cUrN6/4sRtzdkMqxvwbGarXH9iSqz1bW7PcC5lKH1EFXTAhxDABUhIXKmUQhyhzOoTyx6kgMNdia/TFrYTe0ywnRZ313KYfd6wJJWpm6c+GU34Z0YLIBvfHNcWatoCzGS380arj7qTHZ5nho50PTzCbAvJa7bUh6SODZMM8njZEu+9E4hlYZQ90eBNvJxNSiTaDlmNRR0gwYAGX2KUyCqvw18xuH89fTXA6PJO1lwSzafQWZEGprlJqJik12tivmYTDR+kTji+hEP11oAVEY/Xh2PsMFX8vKchZkA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=MzfsJHaYyKHXDGxXZhYh1ShZGY3JISrDpRCNK2Gj8Mk=; b=rTMVR+JmDDwyIqTGbMbfI+kyJn+2uoAMDGOBNM0Xm/qogqhI0VX4ROy6BWnpcOChOEaLjHXj2S0IwM/WN/N4E91jxNoQOM4lWT/09ugKcWdHXzqDjFzm0IiXw7pL+obhTzoTZ86rwEeiF5Q0qQN3IAu3Q/s7LGOOQsC5vWU8JSp/XgiVgQmi/3WiRU+BQC6whDOg3yjegIcinDHLeT4txlxSyb0gSPeetYWOR+tWSPWTlX1nCIluMKmqk/91ctdk31TXchQXT8sLF/0g0HdEBgHtVSZmrtF4AJzVje9FrfNGIpxXOtFurpUaVfDlEXRJEfC3MV7uAEok1JtQueIY0Q== Received: from BN9PR12MB5273.namprd12.prod.outlook.com (2603:10b6:408:11e::22) by DM4PR12MB5818.namprd12.prod.outlook.com (2603:10b6:8:62::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36; Tue, 31 Jan 2023 02:03:42 +0000 Received: from BN9PR12MB5273.namprd12.prod.outlook.com ([fe80::2296:10b9:2661:d795]) by BN9PR12MB5273.namprd12.prod.outlook.com ([fe80::2296:10b9:2661:d795%4]) with mapi id 15.20.6043.036; Tue, 31 Jan 2023 02:03:42 +0000 From: Rongwei Liu To: Stephen Hemminger CC: Matan Azrad , Slava Ovsiienko , Ori Kam , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , Aman Singh , Yuying Zhang , Ferruh Yigit , Andrew Rybchenko , Olivier Matz , "dev@dpdk.org" , Raslan Darawsheh Subject: RE: [PATCH v3 1/8] ethdev: add IPv6 routing extension header definition Thread-Topic: [PATCH v3 1/8] ethdev: add IPv6 routing extension header definition Thread-Index: AQHZNF9etRydylFxuESS1WiqhsKrHa63LGkAgACbPSA= Date: Tue, 31 Jan 2023 02:03:42 +0000 Message-ID: References: <5da6632a-0976-dc1f-facb-f778c8aad8e6@oktetlabs.ru> <20230130035941.1495874-1-rongweil@nvidia.com> <20230130035941.1495874-2-rongweil@nvidia.com> <20230130084746.101226e2@hermes.local> In-Reply-To: <20230130084746.101226e2@hermes.local> Accept-Language: zh-CN, 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-traffictypediagnostic: BN9PR12MB5273:EE_|DM4PR12MB5818:EE_ x-ms-office365-filtering-correlation-id: 1c508710-17a2-4dc0-b63d-08db032f6094 x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: cKaWWGMFkvFuOCrbpvku9sqL7ea6Op8cas32Uz0o2YJDNclNl6xQ0X16FaLA6Dfsacg7dh/EyRG7tJ+dwJpAt6sPvbSlxR2HktGAk6u2OWvK/ICG+JzCwCawic/KAokZbR2pvtdgI0cCXySHN0gSlTjk8W6BXPMAlUsibXFFcqR3bgsNlcihp42vCdSOsLwzcNWpyYUpq42SeW7X/7mkOHxG5feD3qXoovtc+7HcyrmizqiblYrAdGhdcOJtBNJU3LidDkNhep8qfbwiJ48Ij5htCwYVPBgRNDKypCfmypBR3wkvXXI2k6azzctA/7nrSFi4NgTnERjGsBhid6nZnwYLqHYz5U/DwiPjh1oE7l2lZqsnV1AWG8ybrT1UT76sBMg2DwEkbJ08Px+Q8xzla46j5eZlZHSXwELLQh1YDysmdnFbCRPiaxhMba6dRUuGhAP83/x9swHrReXBwHdgp2wxxsisk7xzDC4bFMD/3uUfeq1PlFPMlWnoGHCRgfpJUPW6iy1mwA3KzgnIJPyASax1nNPMEHoYtWxY22KpmqRbJXk6CRqjI/pd3ECFJmz3mGwLPjmlKEvc5jp+CiBg5LtfZ68QMMtKsJhFYRRip9rQ1oiVT39MxdhKrkr4VW0Z/z/ZnFm6MqxLfAqA8Y2TkMQ+OT9rNdSt8hNW80aXEDrC9oKVDUyem/AqScL7proiA5gEMxYSKXryYu0qnj71pg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN9PR12MB5273.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(396003)(346002)(136003)(376002)(366004)(39860400002)(451199018)(2906002)(52536014)(5660300002)(38070700005)(86362001)(83380400001)(8936002)(41300700001)(478600001)(71200400001)(26005)(9686003)(7696005)(186003)(6506007)(53546011)(107886003)(33656002)(54906003)(4326008)(66476007)(66446008)(38100700002)(8676002)(66946007)(76116006)(66556008)(6916009)(64756008)(122000001)(316002)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?+QnT2TdJq3vm+kCMqqZYB+FbX2ym/H5Zm2HbWf/O9NY8KI7J7JkcUrKNj1wy?= =?us-ascii?Q?Ce3uKNtV5ew5/YNHWu/DEJiDiswgN6MEB4FTm6utmsSf3wFBRYlugzZH6Oy8?= =?us-ascii?Q?mWNnnF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FBi0wpKdX7?= =?us-ascii?Q?I4aov6n2F7rwbbGUOz9NimEh8AM2g/ZooSFM9xUPou2y3wDThQY3ZNKT8DPU?= =?us-ascii?Q?d9nN7RV9LTlvkYBsz9J/KnExX8yqPJ9aLuk4FGHQ31D8dZCQOyakXkRDe5G1?= =?us-ascii?Q?0tncVk3S1HNWBVV2SmsthxL7Y8r5F7j4s3IfHdK/Xwt+s0PJyN0vF8/YEugT?= =?us-ascii?Q?LI1gW3yHzBT7z5JHFNA0hLLNRU5PJ5vbhPJKJGOodapM1gytZ12bXrwajf6t?= =?us-ascii?Q?29n/CC5qRkcN2qFT94Qd8J9MMVQCQMtW0iJpJFmjqil9bZ++0eCfG608VD5X?= =?us-ascii?Q?tjNjDqwKrH+1NNwX3sjjm0VrsBB+BPQaZejTnbtls9wy/dbecDftzg23SkQV?= =?us-ascii?Q?lT9d2roQp5/XYW+DsNu6sCOLoWhNmThQx1Gjeb9oyCZ73pCrzAuXbKkte3Gz?= =?us-ascii?Q?vQYe1QDeJyXtiGaeTL2CZmaxNB+u13DJCmc6GBTdjQD8E9VPyEawBzSAt+KS?= =?us-ascii?Q?HnpDIola+fO3HL5HdhJdBHKjVU7VfTgEZtAPGuY4k0Ir2smVmVrWpy1eS3ID?= =?us-ascii?Q?ib/rBuF2iaGfqE63jxH/XDPUhOrZhLed+clKqh6u?= 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: BN9PR12MB5273.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c508710-17a2-4dc0-b63d-08db032f6094 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2023 02:03:42.1605 (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: t4KaHELS6k3dsiFo0C5XSUrmsMwYiqSPAMtdVZ/U1A7hjX03Xk0O8Cwv9t2OK/Q0AC+6GY4zwbvuzfTHEIKQUA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5818 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 Stephen: BR Rongwei > -----Original Message----- > From: Stephen Hemminger > Sent: Tuesday, January 31, 2023 00:48 > To: Rongwei Liu > Cc: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; Aman Singh > ; Yuying Zhang ; > Ferruh Yigit ; Andrew Rybchenko > ; Olivier Matz ; > dev@dpdk.org; Raslan Darawsheh > Subject: Re: [PATCH v3 1/8] ethdev: add IPv6 routing extension header > definition >=20 > External email: Use caution opening links or attachments >=20 >=20 > On Mon, 30 Jan 2023 05:59:33 +0200 > Rongwei Liu wrote: >=20 > > > > +/** > > + * IPv6 Routing Extension Header > > + */ > > +struct rte_ipv6_routing_ext { > > + uint8_t next_hdr; /**< Protocol, next heade= r. */ > > + uint8_t hdr_len; /**< Header length. */ > > + uint8_t type; /**< Extension header typ= e. */ > > + uint8_t segments_left; /**< Valid segments numbe= r. */ > > + __extension__ > > + union { > > + rte_be32_t flags; > > + struct { > > + uint8_t last_entry; /**< The last_entry field= of SRH */ > > + uint8_t flag; /**< Packet flag. */ > > + rte_be16_t tag; /**< Packet tag. */ > > + }; > > + }; > > + __extension__ > > + rte_be32_t segments[0]; /**< Each hop IPv6 addres= s. */ >=20 > Use flex array rather than zero size. > Zero size arrays cause warnings with later compilers. Sure. Thanks.