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 56EF642608; Thu, 21 Sep 2023 18:33:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E7754013F; Thu, 21 Sep 2023 18:33:13 +0200 (CEST) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2067.outbound.protection.outlook.com [40.107.102.67]) by mails.dpdk.org (Postfix) with ESMTP id 5A736400D7 for ; Thu, 21 Sep 2023 18:33:12 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=emGVgMEIIL+35bzO4m+9gA73QhH6Z2VRM2N+SVF1wgTW814tVwxrN9jnd3zcY06WR1Uu76DtaviZFH18hnIfQV2cAY8ICmHZtRWjWjpvebdxDCX5v5VNhkHk9e3QK695tR5PrX4cH1OKUOUvYVBT1VQp4spGGhUxKkB674Z4xl19/hA+tFR2pBrmolM06PwZOx+fhWBJYX5vBAwIoibPKSLlfLblxM+7fEufxQ7p+Rtj9P2sZYD7uaMdZe8xq2WkF53yihRRDhr0OB71kChkBvhIJ42bb4v9GHtchrdqFl25eRFDe6wpO02/N/mr2+TiK/WnGPhJmRgn5V063VfHfw== 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=jLmng3NeWhvTc0ZE+bLFq2al2UXzFmGb3wOnxtl1sLg=; b=dGO485e7ABCO6noDfNtEtpl0Qpgl9oz/R9kCqUs8R+28n04JrwFDjTZZH9EMQgoA/N72XY51t4sgZVoW2YbQg+YJwE3qa491qCAWArdhgUc6tPOI3UD8Vm6IZ73H6e5FjFgb6wB+fSEhxVRyOAZY1YqvpeOcNoT38S380FU1OFxqZif68dHfpqkrpLHUTzXJNbKOCBexgHiuMXtZFqQoufE2p2wxpNwQp+IfpcfWqBkYhmE8hUnRyEvR6nXhulhzeSlFO6GMn91pRgAnZ8/1lk1AMn9eKTiOJJsogT/tJyDKi6f0Mjygp1e/8qkWzHX9qB3vwMIj/hBcGNM1TgMQzg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jLmng3NeWhvTc0ZE+bLFq2al2UXzFmGb3wOnxtl1sLg=; b=zmtky0+UZpd78lTSR7giOqjLUIbRfEWQmjbgs5Y8zAsrIxLluumbrC0tli5ejmWUo2d10qVpXE1b2ylvEO/RYDFNJgxtvusuC3zNvkik3qWgN8oQcQFHT6WQDXeSws2WTNWkEmzZG8rIJpbor7zXpVruGN7zOfCpL63bSNWXIi8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by CH3PR12MB9023.namprd12.prod.outlook.com (2603:10b6:610:17b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.28; Thu, 21 Sep 2023 16:33:08 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::102f:c69b:d3e5:7fe8]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::102f:c69b:d3e5:7fe8%4]) with mapi id 15.20.6792.026; Thu, 21 Sep 2023 16:33:08 +0000 Message-ID: <834275fc-c34c-4411-bf25-41250f418bdd@amd.com> Date: Thu, 21 Sep 2023 17:33:01 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ethdev: validate reserved fields Content-Language: en-US From: Ferruh Yigit To: Bruce Richardson , Stephen Hemminger Cc: dev@dpdk.org, thomas@monjalon.net, Andrew Rybchenko References: <20230525203942.129413-1-stephen@networkplumber.org> Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKKm/6BQJjb9DJBQkC+3/YAAoJEFRTPtCK Km/6d94P/irGq3m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PW6Ku 3FQ= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AS4P191CA0021.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:5d9::6) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|CH3PR12MB9023:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c3bebb4-9e5a-48b4-52d0-08dbbac06fea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4DC5QCQZ7OZXZ3m0Fl+4GvmNa1k0FnZpk5ugiUR49yvKnNgwVo853KOfJAjbJWG9pyZIDSF26VsQmo/3d6Ohym2g3E14jM5Xfbs/xD7O1/yJuKtu0845s2HAxO9zfF4kTLeWpSOcRkwvBI+IRsMuH6Zpb2Oiy3ztnAIvRCKk2R086kPM4fLdldF2T7EBeDrWXfiESO1NqZrpeP9o9cO0xn7dkAG8j60G0m49C8uFJHYncsZjo3DSETQIYq8bjYGeo1MAUmv1fz6k6XP2eDiXVFIIVjCLwlXUTyexC9bUmDW1T32JO2OxD104H/D3464J+1VREYlLsQElOCRVeKNln3gND39GeSqdikry9jq+L5ChlsGYRrxkfH5Z0NmUowd77unUGx2M2O+LSzf3Jrxb3KCFxtfpAC9khPXf3ES+RyI45G9EPAkOy/2C5ziVbhpK4Wd2O4XWmuDCT6v24xunNrWa/FUImBTj0Fr92HsKoH6opqzL7ICvggNMrQtp35I8UaH0RvCLc6p47yignoKZ9fqDTHKt8Qti+X4CLcDBY9Nj8iHbzDxsjkZ8caTOUqmwL8+HkCCmj75WeeavnC/+DJZptoXINby+eZYQ4sZuLSCuW4p9MaZu9p3pJ3aXomOZo6iAtnTNqVIyj3gRu/NOGQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(366004)(39860400002)(376002)(136003)(346002)(451199024)(186009)(1800799009)(41300700001)(478600001)(31686004)(8936002)(4326008)(8676002)(2616005)(38100700002)(316002)(6512007)(66476007)(66556008)(66946007)(110136005)(44832011)(5660300002)(26005)(53546011)(6506007)(6486002)(6666004)(2906002)(86362001)(31696002)(36756003)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Qk5EK2tKSGZOQ25PY2dJVnZWdGd1aU1QUjY2TGdMQWtiSFRuMktOaGJoVFB0?= =?utf-8?B?SncxZmZjdng3VU1aSGY5NWtzL2d0cHVTYjBmakRKbUgxZjNzQUVYMFdzSUlx?= =?utf-8?B?akVzdXJxTXlPcVZQaTduY0FvdkpxSHJjTUNaMDhycVNndE1MN3l2U0kyVXdW?= =?utf-8?B?a1NqdzdXRE5RdENGL2xoZ085c1NqVTZtTUhrWWNPZDBzMTB2Y21oMXZlMEVG?= =?utf-8?B?K3QzcnhSckRMM0pOSnlSWlpVeDRXNVppcTBQeVYzeHU1T1p1R2pxRUUyUit5?= =?utf-8?B?YXJPc3A0OWgrR0VBRnlhemFtS1ZxTkJCcTgyME5Sd21QUWdLeW80UVdNQS9U?= =?utf-8?B?NnBFOWYxeVdVL0s2Y29BVm5TckI1VXUrSW9Rb3pGT2l2L0pqZUJFMU9lc1lN?= =?utf-8?B?Z1JQSGozVVZ2RWdQZm5HMFZsSllkMnV2dWkwY04rM1Zua0pYSVNhUUYvS3d3?= =?utf-8?B?OTgrazhkM1ZUZFQxZkFJdkpoaHg1VVlUT3d1dHYvMlNDbUJDdXZpMWNsSGZp?= =?utf-8?B?MVhnMC8rcjFvRzFDZkhmTHlRUDh0eG5pMGQyekx2Szd5YUVOUUlpb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3RHpmMUNYUTZ3K3YwMTZMeXlrbHRY?= =?utf-8?B?bERyMzNadFdYMHRsWkp2OUV6V2wzN25IdFJoVjJOakI5NGU3TmZLa29YVnlY?= =?utf-8?B?eUpsTVdOYWhmV1ltRVBQQUVaTFRQRUh5bUNHcDZUd21FQ2RnRCtVOFlsRmtO?= =?utf-8?B?ZUM0VHVORllobSt6ZFpZTUZ2Z1ZETlUraE9vSUloUUlBUmVPSTVpNFdJY25Z?= =?utf-8?B?c1VzcjhHWkU5ZHAxVkI3SFJWU3hnYVhIc3l2Y3VleWVXbDJOSlF4dmhQQXJ0?= =?utf-8?B?OGdPa2Q3alNXRStWejRMSDdrdC9BYlBaVUcwTk1ZaGVkK3ZIQTJ4bUU5NHNF?= =?utf-8?B?RWV4N1JNb2FIS05TdGhGSW8yMjlzNzZVbG9OQzh6YisvRm9WckwvNkp2c0Zl?= =?utf-8?B?QWRmME01WFdkenhOM3o2YTU0ZGVzZFAxbWZoRkY0azVZN3BCaFp1ZHBGYjRx?= =?utf-8?B?eUxJV0pJSVpxT1hLV0VkcnNMR1pjd2RGc0xubmhUdk1WdjBaUXNib0YrZGxX?= =?utf-8?B?WjZCbEk1V25BYTRZWGZrSTNxRFA4WFQwdzF5QzljdlEzb3lsM3dvWW92Vkti?= =?utf-8?B?eENWbkpxbmNyN0hEYkFhSy9oQTZUNXQyVFN1U0szdnIvM3gxdGdVd0FxU2hW?= =?utf-8?Q?v+Wn5ep6YodImVT6KygtayFPm?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c3bebb4-9e5a-48b4-52d0-08dbbac06fea X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2023 16:33:07.9648 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UaXtq0EoFV0unHnuQ40bZO6OIOxqEURQqDscL74RYMg2s5/3fHUGCMH0VUL+quYa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB9023 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 On 9/21/2023 4:12 PM, Ferruh Yigit wrote: > On 5/26/2023 9:15 AM, Bruce Richardson wrote: >> On Thu, May 25, 2023 at 01:39:42PM -0700, Stephen Hemminger wrote: >>> The various reserved fields added to ethdev could not be >>> safely used for future extensions because they were never >>> checked on input. Therefore ABI would be broken if these >>> fields were added in a future DPDK release. >>> >>> Fixes: 436b3a6b6e62 ("ethdev: reserve space in main structs for extension") >>> Cc: thomas@monjalon.net >>> Signed-off-by: Stephen Hemminger >>> --- >>> lib/ethdev/rte_ethdev.c | 41 +++++++++++++++++++++++++++++++++++++++++ >>> 1 file changed, 41 insertions(+) >>> >> Acked-by: Bruce Richardson >> > > Acked-by: Ferruh Yigit > > Applied to dpdk-next-net/main, thanks. > some unit tests are failing with this patch, both iol and github actions reports it, need to investigate the root cause. Based on findings, we may need to drop the patch from next-net, fyi.