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 906C5A0C43; Mon, 18 Oct 2021 13:59:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1B5EC40141; Mon, 18 Oct 2021 13:59:57 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 7CC684003C for ; Mon, 18 Oct 2021 13:59:55 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10140"; a="215159163" X-IronPort-AV: E=Sophos;i="5.85,381,1624345200"; d="scan'208";a="215159163" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2021 04:59:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,381,1624345200"; d="scan'208";a="493554042" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga008.jf.intel.com with ESMTP; 18 Oct 2021 04:59:54 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 18 Oct 2021 04:59:53 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 18 Oct 2021 04:59:53 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Mon, 18 Oct 2021 04:59:53 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.102) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Mon, 18 Oct 2021 04:59:52 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B4nJ7FSlb5CSniaOFk4dItK4V1Ny9s+gYzDYh2/nvEgoIEpVdBDcQ0CwIL/878KAMF7f5klE0pEAW3xUgVUEWUNq1wIP7p2kt6PIl2GcEybS+mOLRczyU9xHDwACai8WW7FxazEE1/iBk5fsI0Zz+F6iuow/0f9JTiaorvPEMi22NhB4lr5Bkf6BvtoYxUNodRx5Cp5CBpyHzkSt4dbc5VZSQxcFj216JnuzTPQyuNb8ajlry69S4ueUz/WRrl5wfQodLb9Efq0k/WTJyXXm5PON2nGpwCqtGrehdku7PPWyVkxWGCgpGnOCLedSuzFcsIggnoS2j2G0MUaEqNrdEw== 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=XyG5HcV9POYumN9Dq6J1MMxjWifw+D1Oi3NhNWJlxpE=; b=NiWTZkfO13WBS74UPnDoGQP/C9vXNBi1YgfdWPXdfNt11mUmCpqPjcDkoiWMn/JHVK85xPIQUC8HR7aWd4OYv2+lo7v2KeiGr5dSu4k91yZKrvECi5MOs0lDvcYv+JmgB2CIof5bdr99Oswd2cnfld3qYEfoCxoJUCksAxUgWSgmLD/1o3s12UilK6OWjyNE7/etrMKymWGUww0K0w3yGegda7Wa17fOme2stn/xch3qWPMGvmewiZSfWMfMB/N3vt4pRqto2nGVfNri/qGPqUkiOqyBsH+Km2EKla8SkQf5kdAF2bwZ/iS913rShtrLDNtwNjwfxAciD0H+ju97lA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XyG5HcV9POYumN9Dq6J1MMxjWifw+D1Oi3NhNWJlxpE=; b=uMBlM3nRcqnBke6QyvY+fmPYA5pAgoj5Oq97g29DdL+RLh5kQDd2kigKVirzPzUTVPc7sJQbICXO1aI8OzT28j1epsk2Z9sxCoTfwZJeO8TmFl+GN8dI1KoC9Mu4R/hJ0uBsO0b61PIFrI3G9KqpkfhfbkYORyNa184g1gffdoU= Authentication-Results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB5126.namprd11.prod.outlook.com (2603:10b6:510:3a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Mon, 18 Oct 2021 11:59:49 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c%5]) with mapi id 15.20.4608.018; Mon, 18 Oct 2021 11:59:49 +0000 Message-ID: <7d85bbb3-204d-fe64-9552-3564a7e86e5e@intel.com> Date: Mon, 18 Oct 2021 12:59:41 +0100 Content-Language: en-US To: Dmitry Kozlyuk , "dev@dpdk.org" , Andrew Rybchenko , Ori Kam , Raslan Darawsheh , NBU-Contact-Thomas Monjalon CC: Qi Zhang , "jerinj@marvell.com" , Maxime Coquelin References: <20211005005216.2427489-1-dkozlyuk@nvidia.com> <20211005005216.2427489-3-dkozlyuk@nvidia.com> <9a9ab2b5-89d1-1653-9022-ebf1b8a86902@intel.com> <0f16daab-6040-2973-03f3-8bc4e954c84e@intel.com> <789becd1-24dc-b31c-6795-f1e4107a6266@intel.com> <6e148fd8-c7b9-dd90-d286-a54ff0faf713@intel.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DU2PR04CA0294.eurprd04.prod.outlook.com (2603:10a6:10:28c::29) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 Received: from [192.168.0.206] (37.228.236.146) by DU2PR04CA0294.eurprd04.prod.outlook.com (2603:10a6:10:28c::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Mon, 18 Oct 2021 11:59:46 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4d90e16a-de31-405a-f189-08d9922ec923 X-MS-TrafficTypeDiagnostic: PH0PR11MB5126: X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o4JHgwtO6EFj0CS5iFZVtlOAxNipNiu1Rvmor8IEQlS6aF8oy2fzcPTM7RYhvElpsP9d85sMnry9M3GlmY3AebeTOKhlJfokAIJAnQJb/Yd5RUBYMfuD3RgCkeq057mFtLJnekNAKbkQWv6Vf0HRfB91311va9G3VqfYXScdU/ApKKssA+peJstv8zztiecXosoE/teApyYzxCsEu8/iWyVejg9nHhZskdTroKOK4PyobWNA/8RAE3+gUmrV2XpW4/fszDFCxcetRUdrLQzpGMmEQ38Sxst8dvECSF/WwKF+eOTd/0yQ3tk1hbVPXDaBO1aoNOkdGzVEdCGNbdzqLH2KXyklmj0avaZly2fdVWUkEMhI9H5QMl9AVXqdsONP/Kde3ezzE7l/pABtY2blPEs5udtO1fBM7We/27w4eB67+40TepxPNsxlCmCvAMZmPAAp5uQ/IN8N9/1MM3QMpJpKs/siQHvxAaCIzAIq7iY0ym2b+mk3wYSaXEZKfyQFUYRRzTEgyFF9ocDuCI07SnzsbX4c8b2Y8AJYUCbbOz3/T41f77eJDxBWFONKgwZ/myV1PcmSeHPqXEJ9Hs6imYG7KVDvmxzXKW58LQJsLoi45iIgGcqvB76nIuzuqVMuDZNdUThjFwDCmAgm4J5NyrenxcJN2yBna8rgC/X8y+y4Vp+G68NJdFRMegN9OCSYg++lZX9plBaZR1Bus6F0Yw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(66556008)(31686004)(2906002)(186003)(6486002)(6666004)(31696002)(44832011)(54906003)(5660300002)(4326008)(38100700002)(83380400001)(8676002)(508600001)(8936002)(66946007)(53546011)(86362001)(36756003)(110136005)(316002)(2616005)(82960400001)(26005)(16576012)(66476007)(956004)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SElXYVJZd0h6WGpPemFkQVJmZ2x0ek5SeVFhaERnN3gxRFVVS2VUU2VVUjJj?= =?utf-8?B?aVdBYkcrSDN5OU5GVWZZMlZlYi9ybEx0WXlWMFcxdUpLc2VIYWpnTFVkMGJX?= =?utf-8?B?VGRSYTRyVVdxbklJRkRKV3NkSnRDa1BJblMvTVZzSDkzRVB0SktWdlpZV1Vk?= =?utf-8?B?NlQ2ZEZERm5XaTBaZE5TbzJvY3RVRGpNN1BQbG0vUTdkRXBBemd2U1UwVXNS?= =?utf-8?B?N1dpNUphK1h5QWtGNzBST1ZDUGFhSjZiT1FkRHNOaEZ5RXhIWDJEMFhwWkFk?= =?utf-8?B?dGFBR0ZvK2RtUGJuanNvWDB4clh0dlp0RWVSZ1g3TURoT1BoQS81dnU1Szhm?= =?utf-8?B?bHZhL2VzTUxRcFVFSnp3VU4zeG9lTjNmYTMvSTZQY3pDN296dFJDeGJmTGto?= =?utf-8?B?cGQ1NnpYb0tpWTVyZ3ozcytwSkE3dTJIRkMza1pSTURoM1E4ZEt5RVE4TmJD?= =?utf-8?B?Vm1RMTFvTmgwSGxDVU5FRThURTB3Y2pOMkYzSXM2R1YyZzViV1VwS3JqSTFm?= =?utf-8?B?KzVyODMyRFFNaW5PMTdZL3cxZkxRcjI4cUs3dmZlbkJNTWdJSHpqcDVkV042?= =?utf-8?B?ZWw4QzVvVHpXcGdQZVlrR1Rvdm45QmptV2JYSExNV3JyUTFLcUNFcmhVaXdu?= =?utf-8?B?aWZHVlJMVy9rRFAzVytBclRiYzlERWF5Y0N3WFRicjZ1QW5TdHZVN0p2MzJu?= =?utf-8?B?NGdqUEF1eXViWTJ3NUIzT0hoOW02by8xUmVMTTF6ZnVaa3dVV3ZsL3NWOGZu?= =?utf-8?B?d29GWUtNTGJ2L1ExcXhDOHF0cXhxUkNUaXp0Um5FY2hBcFVUVjE1c3FjNkpN?= =?utf-8?B?Z2RPWjZZSjJHVHlkNGhkQ2txc21Ibk5NbDdlK3ZxcnlhM2dnR2RBZHYrekds?= =?utf-8?B?TVhKbk9QcmpDUW9RMFBoUkJ0TVhnQU8wUEpYL05BWkdMNTFyZU5FaHRVWTdH?= =?utf-8?B?THk3TWlqQW85dmxlN2pFNnAxS2VKckM0MWw3bUdYc2lzTGpoZHljTkNMMkQ1?= =?utf-8?B?M3VRb056RDFJVVdFWXFGNnhDV2g0SjNRR3VyNk8vbVMxMUZBUlpFUkg1dy80?= =?utf-8?B?a01qMFRYMHRiYUptdnI3QThRQi9scGJ4bXhyeEZDVW5oWjQyVTNHRHhhMWZr?= =?utf-8?B?amZtdFdLb2tWRFJram5oY1YvWXFjWEpwVnlqbGp5T2dCNTdaT2JmRUIzQXNX?= =?utf-8?B?K0FrRzd2M0RPRlB3NndTSEFJWWczTUcvbGhuY0pqSzcyNzMzZVZiTWFxQ1BX?= =?utf-8?B?amRQcmRPcmF2azhUOWhMYzlTN28xUnd3Y2xvaE9ZaDdpbE53NlpDVUwwUFUx?= =?utf-8?B?SXdueXBMT3IrNnVIbnM3U3FUZWNrand6WC82SmQ2U1VtVzhZUFM5c2dYRXR1?= =?utf-8?B?emFqTVVzMjg1eUsxdXhYQkgrZUJwNGwxSUtDYnR0NGVPejU4ZDE2SEtDZWcv?= =?utf-8?B?aFplaWFXaDhUc0poS3BpNGUrUWM3cEdzT3crYk03Z2ZaMEh0TURUUU9SQm5a?= =?utf-8?B?bks3UCswdHh1K0JlZG9wMkNDRmpMR3RmNEQ5SitqeHhCeEZOSVpHWkhobXVS?= =?utf-8?B?eDFzUTFaVzBSRjhzdm94SXhHN2t0SnJEckhxWXJubU0yc2E3SkZvSTBoRVQr?= =?utf-8?B?QStlZnNaK0tWcERsazV0VDYweThKQThySjc1dXl1UGt0Vzk0b1dqRlFWeW5N?= =?utf-8?B?a0NaZjFJYkhTZHlUbnlob2hrd05QTUNKNjRweGlGR0N5K1VYTkpacmx3cFdV?= =?utf-8?Q?7WAy8hld/hLNaNdrAh1YNjZrIcz2l1csBKjsylM?= X-MS-Exchange-CrossTenant-Network-Message-Id: 4d90e16a-de31-405a-f189-08d9922ec923 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2021 11:59:49.3011 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: X7G49UIXsRSWAYTDdLzZpwQ9TC7rQEyIBUxf/khuJW0AehaRkL5sMz4ySKms1pF9lmbyKev6oqj6jrvnXJ19uQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5126 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 2/5] ethdev: add capability to keep shared objects on restart 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" On 10/18/2021 12:13 PM, Dmitry Kozlyuk wrote: >> -----Original Message----- >> From: Ferruh Yigit >> Sent: 18 октября 2021 г. 11:42 >> To: Dmitry Kozlyuk ; dev@dpdk.org; Andrew Rybchenko >> ; Ori Kam ; Raslan >> Darawsheh ; NBU-Contact-Thomas Monjalon >> >> Cc: Qi Zhang ; jerinj@marvell.com; Maxime Coquelin >> >> Subject: Re: [PATCH 2/5] ethdev: add capability to keep shared objects on >> restart >> >> External email: Use caution opening links or attachments >> >> >> On 10/16/2021 9:32 PM, Dmitry Kozlyuk wrote: >>>> -----Original Message----- >>>> From: Ferruh Yigit >>>> Sent: 15 октября 2021 г. 19:27 >>>> To: Dmitry Kozlyuk ; dev@dpdk.org; Andrew >> Rybchenko >>>> ; Ori Kam ; Raslan >>>> Darawsheh >>>> Cc: NBU-Contact-Thomas Monjalon ; Qi Zhang >>>> ; jerinj@marvell.com; Maxime Coquelin >>>> >>>> Subject: Re: [PATCH 2/5] ethdev: add capability to keep shared objects >> on >>>> restart >>>> >>>> External email: Use caution opening links or attachments >>>> >>>> >>>> On 10/15/2021 1:35 PM, Dmitry Kozlyuk wrote: >>>>>> -----Original Message----- >>>>>> From: Ferruh Yigit >>>>>> [...] >>>>>>> Introducing UNKNOWN state seems wrong to me. >>>>>>> What should an application do when it is reported? >>>>>>> Now there's just no way to learn how the PMD behaves, >>>>>>> but if it provides a response, it can't be "I don't know what I do". >>>>>>> >>>>>> >>>>>> I agree 'unknown' state is not ideal, but my intentions is prevent >>>>>> drivers that not implemented this new feature report wrong >> capability. >>>>>> >>>>>> Without capability, application already doesn't know how underlying >>>>>> PMD behaves, so this is by default 'unknown' state. >>>>>> I suggest keeping that state until driver explicitly updates its >> state >>>>>> to the correct value. >>>>> >>>>> My concern is that when all the drivers are changed to report a proper >>>>> capability, UNKNOWN remains in the API meaning "there's a bug in >> DPDK". >>>>> >>>> >>>> When all drivers are changed, of course we can remove the 'unknown' >> flag. >>>> >>>>> Instead of UNKNOWN response we can declare that rte_flow_flush() >>>>> must be called unless the application wants to keep the rules >>>>> and has made sure it's possible, or the behavior is undefined. >>>>> (Can be viewed as "UNKNOWN by default", but is simpler.) >>>>> This way neither UNKNOWN state is needed, >>>>> nor the bit saying the flow rules are flushed. >>>>> Here is why, let's consider KEEP and FLUSH combinations: >>>>> >>>>> (1) FLUSH=0, KEEP=0 is equivalent to UNKNOWN, i.e. the application >>>>> must explicitly flush the rules itself >>>>> in order to get deterministic behavior. >>>>> (2) FLUSH=1, KEEP=0 means PMD flushes all rules on the device stop. >>>>> (3) FLUSH=0, KEEP=1 means PMD can keep at least some rules, >>>>> exact support must be checked with >>>> rte_flow_create() >>>>> when the device is stopped. >>>>> (4) FLUSH=1, KEEP=1 is forbidden. >>>>> >>>> >>>> What is 'FLUSH' here? Are you proposing a new capability? >>>> >>>>> If the application doesn't need the PMD to keep flow rules, >>>>> it can as well flush them always before the device stop >>>>> regardless of whether the driver does it automatically or not. >>>>> It's even simpler and probably as efficient. Testpmd does this. >>>>> If the application wants to take advantage of rule-keeping ability, >>>>> it just tests the KEEP bit. If it is unset that's the previous case, >>>>> application should call rte_flow_flush() before the device stop to be >>>> sure. >>>>> Otherwise, the application can test capability to keep flow rule kinds >>>>> it is interested in (see my reply to Andrew). >>>>> >>>> >>>> Overall this is an optimization, application can workaround without >> this >>>> capability. >>>> >>>> If driver doesn't set KEEP capability, it is not clear what does it >>>> mean, driver doesn't keep rules or driver is not updated yet. >>>> I suggest to update comment to clarify the meaning of the missing KEEP >>>> flag. >>>> >>>> And unless we have two explicit status flags application can never be >>>> sure that driver doesn't keep rules after stop. I am don't know if >>>> application wants to know this. >>>> >>>> Other concern is how PMD maintainers will know that there is something >>>> to update here, I am sure many driver maintainers won't even be aware >> of >>>> this, your patch doesn't even cc them. Your approach feels like you are >>>> thinking only single PMD and ignore rest. >>>> >>>> My intention was to have a way to follow drivers that is not updated, >>>> by marking them with UNKNOWN flag. But this also doesn't work with new >>>> drivers, they may forget setting capability. >>>> >>>> >>>> What about following: >>>> 1) Clarify KEEP flag meaning: >>>> having KEEP: flow rules are kept after stop >>>> missing KEEP: unknown behavior >>>> >>>> 2) Mark all PMDs with useless flag: >>>> dev_capa &= ~KEEP >>>> Maintainer can remove or update this later, and we can easily track it. >>> >>> Item 1) is almost what I did in v2. The difference (or clarification) is >> that >>> if the bit is set, it doesn't mean that all rules are kept. >>> It allows the PMD to not support keeping some kinds of rules. >>> Please see the doc update about how the kind is defined >>> and how the application can test what is unsupported. >>> >>> This complication is needed so that if a PMD cannot keep some exotic >> kind of rules, >>> it is not forced to remove the capability completely, >>> blocking optimizations even if the application doesn't use problematic >> rule kinds. >>> It makes the capability future-proof. >>> >>> The second flag (FLUSH) would not be of much help. >>> Consider it is not set, but the PMD can keep some kinds of rules. >>> The application still needs to test all the kinds it needs. >>> But it needs to do the same if the KEEP bit is set. >>> Only if it is set the application can skip the tests and >> rte_flow_flush(), >>> but these optimizations are small compared to keeping the rules itself. >>> >>> Item 2) needs not to be done, because the absence of the bit is *the* >> useless value: >>> it means the unspecified same behavior as it is presently. >>> It is worth noting that currently any application that relies on the PMD >>> to keep or flush the rules is non-portable, because PMD is allowed to do >> anything. >>> To get a reliable behavior application must explicitly clear the rules. >>> >>> Regarding you concern about maintainers forgetting to update PMDs, >>> I think there are better task-tracking tools then constants in the code >>> (the authors of golang's context.TODO may disagree :) >>> >> >> Hi Dmitry, >> >> This is a valid concern, and adding code to the drivers proved that it >> works. >> >> There are multiple authors updating the ethdev layer and expecting PMD >> maintainers will do required changes. For your case you are updating the >> PMD >> you concern but how other PMD maintainers will even be aware that there is >> something to change in their PMD? >> By your change you are putting some responsibility to other maintainers, >> without even cc'ing them. And it is for sure they are not reading all >> emails >> in the mail list, they can't. >> >> Task-tracking is an option, it the past I tried to upstream some todo doc >> for PMDs. But I can see the additional maintenance cost to trace features >> from a central point, comparing the distributing it to PMDS (adding code >> to PMDs). >> >> I think best method is whoever doing the ethdev layer do the relevant >> change >> in the PMDs, but has the obvious problem that not able to know enough >> about >> the PMDs to update them. >> >> We have used the following option, and it worked in the past: >> - When an ethdev feature require change in PMDs, ehtdev supports both new >> and old method >> - PMDs set a flag by default to request old method, so there is no update >> in the PMD default behavior >> - When PMD does the required changes, it removes the flag >> - This lets me (or other maintainer), to trace the update status and ping >> relevant maintainers >> - When all PMDs updated, ethdev support for old method removed >> - This method allows PMD maintainers do the change on their own time > > Hi Ferruh, > > Thanks for sharing the experience. > You suggest updating PMDs with an explicit reset of this bit, > despite that it will be zero anyway, to attract maintainers' attention. ack, but please with a brief comment to clarify intention. > From user's perspective it will be all the same: KEEP bit reset, > not a special value saying the PMD is not updated > that we would need to deprecate and remove later. ack, only it needs to be clear for application that PMD not advertising KEEP flag means behavior is undefined, it does NOT mean PMD flush rules. Which you already said updated like this in v2, but I am just stressing it. > If this understanding is correct, then for sure I can add a patch > updating the relevant PMDs. >