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 D9FCC42607; Thu, 21 Sep 2023 16:04:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC690402DC; Thu, 21 Sep 2023 16:04:47 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2066.outbound.protection.outlook.com [40.107.101.66]) by mails.dpdk.org (Postfix) with ESMTP id B91BF402C9; Thu, 21 Sep 2023 16:04:46 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mRaNXCSMHuwaE3n1lDFAj4Qk+hzTsItDbm09ILKGQs2eXJIE2sQB+r9cMXv+j9JJ5V5bI2iC7iEhevUPpcjmOfbx50Vm4LyugiqpisBMffu57ED6lKF39b9V9pZqBOskEbOM9amgeAeM393n83hSFRkXyPXB4nqMLMUQa6Ltgg8fNL8kDi778g4Xh6PEnOdGHft8/myGhHdFoBxtGqskJx+Um73HDGroqP1R3dGAZXKV4sHzbQXIB+N7m/hhdTyKLU7MJFUXSo1HZ/ERvoCiGA6cRtdzHv+PNYcPu+Vj93rKLXA0vqjSkR+ZpGZ+IMz1jVKS9aUuhMgeTKGBcRLrZA== 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=xd6eG6xvn62lchWWWyJrUqYk9uen6vDIlEquHHAXT2k=; b=J2Old9FVMGpTlqh4IFJi+vlUudBV4/kfQtzs0LTCLZtSMEdn1z2RQ05VR3vbji3TVz857JQ4ZC6iDAB2Fy3FRfoN1vmEBNVCkwy/xVOF4XHlRi5TdNk3KMEZ4dVaxRUvqwCDwWYoA2IQR0OlLzNUwhqFSK3lJrUsLASY2ri8KJ9k/kmN9Ab6b/UbsYkXyDyGygiBwGj0NRL5QSRJRl97jgya8U2+GULHChhsn8Ea1dHxsv9HntLyygjPajNfi6MU40gGzRCQSRoZ0lzZjqhXsJsq6DfMxXJCd6kFDD/BdHpXF1lynO/FJymhc5bPhiUSl1emwTgkCJVI2j4VlZLDUw== 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=xd6eG6xvn62lchWWWyJrUqYk9uen6vDIlEquHHAXT2k=; b=eK2836gI9G8wGKydG5c8Ut6nnIVXl+VG1YQV7PqcZpYpYLfpGqWdlUP7UOLx1cNyInWtpUCSPqXIhGfy+uOXDUGBwtcB4qP7lqwg4eMIYrTtBGf4UjKKiNk8ObG4CTmreqwfme7R0u8UzoPjYydp6L7ej7bxb47QGzS4oGLSVRw= 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 MW4PR12MB6801.namprd12.prod.outlook.com (2603:10b6:303:1e8::8) 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 14:04:43 +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 14:04:43 +0000 Message-ID: Date: Thu, 21 Sep 2023 15:04:35 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v16 1/8] net/ntnic: initial commit which adds register defines Content-Language: en-US To: Thomas Monjalon , =?UTF-8?Q?Morten_Br=C3=B8rup?= , Mykola Kostenok , Christian Koue Muf Cc: "dev@dpdk.org" , "andrew.rybchenko@oktetlabs.ru" , "techboard@dpdk.org" References: <20230816132552.2483752-1-mko-plv@napatech.com> <2362c757-3cf7-4b4b-b507-402781d9a810@amd.com> <4499805.irdbgypaU6@thomas> From: Ferruh Yigit 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 aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAw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JqIJY9wTJo5gD9EgGIbItv3qWTq29dihLYpzd6dqB708k7 4RBz9051oLaFVGkguFw/tXmA17nx+c2uR5jx8wb4j68umG2X++0dSta5eHAVhmtXvrqPW6Ku 3FQ= In-Reply-To: <4499805.irdbgypaU6@thomas> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P265CA0280.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:37a::17) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|MW4PR12MB6801:EE_ X-MS-Office365-Filtering-Correlation-Id: 9018bf74-5856-4398-b888-08dbbaabb432 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: btgpfhYyXIHfIzzHi/RGsVSAMtRNI0b3oPisQV9LanJm3OUQlyCxketNgDrS2THqRmVuVEDf3VRuKJ2P3ktFGnjDdK7LV+BS4rRRXntsXNnugD2m0jyXHAgF4v5w6OQyCAjjKjlDyIUtZyiOpZCOQyLDLXOyfP9oGNtQqgp3rUE5ZsxthrfQKfj3sslOnRi8iLLCCxmNU85NweLQTTRBaFJ9+QTMVm4GPeqqKCU8940a0weCD9bR2RRU94CzChKakq2vtd1Tou5yw/Xdoxo5ev4hpdNLTLsWHFTqkfbmBITKR1Y0GI6ijziOs2Wtc4ZHEEoZKH32DI7F761qSJyb+x4T0hdddunh2ssEspX4qFhrioPWhQ1dS7gebUOPPAuUbma4ryBGiK0yI35ZJjOVT+8yI+JQcV9epkrbQ/dlH3Hes3RDNCANqaQtJ3XhE8cqLyYaXRBxi2ubMAiDqMTW9EvAxKTgKVWlykIxmPkZmtibTYVjRL7d69pnbz9ZmzC78RDcy1Mbss+Lwbh597Fdkt0doKJ90SZT1nu8Z6lP4Invq9tgOh72qh9fcNv3DMtKQYl0UWKNlxyphx+cDRmCYWyWShNokDD3tBKrG3XcQQy2dtBj/zEaDQkqIM9pPw9u+ITgoHLyB7hTyo2qHuE8lQ== 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)(346002)(136003)(366004)(376002)(39860400002)(186009)(1800799009)(451199024)(31686004)(6506007)(6486002)(6666004)(53546011)(478600001)(83380400001)(36756003)(38100700002)(86362001)(31696002)(8676002)(2616005)(2906002)(30864003)(4326008)(966005)(6512007)(44832011)(8936002)(66574015)(41300700001)(66476007)(110136005)(26005)(5660300002)(66556008)(54906003)(316002)(66946007)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Ukh2VFFFejloYllHSXJuNmlKdmpJcjBrSWxPckpJY1RMMmVvRFhCdDdCMExJ?= =?utf-8?B?WXRPeUNZSEtoYjJsV3V1b0w0U1A5YkhuRmpNZWFwNFdiUDY2Z1NPSzQ3SUFJ?= =?utf-8?B?d0x4NFYraHllUmNDT1dxMy9meDVFaXFDZUJ4dlZYQ3FVUjJ6UENXVjBnd3lY?= =?utf-8?B?WC9Ya2RMRllxLzBUUy9rWWFnVU11aSs5ZThkQnJOdnRzNUVWSERtWFZjcGJD?= =?utf-8?B?RzdCck5Wb3pKY2RISzMzaExNQ08rWTNhVWUzOUJRb2FmNWpwV0JBRkFTc3ZU?= =?utf-8?B?SG9KY2w5ZFVHL0IvK016NGlCRkJYNk1ON0NUdjNKM2xORGhqUE8xYmxjNVlH?= =?utf-8?B?a1pWeGR4cldvZHNLN2pZNzRLcStPZ01yQUk3Q2FRWU9pamU5Z2ZjNU5VZzFP?= =?utf-8?B?R21yc0tPN3dPemZVM0p0YmovVG1pTmR0WGZGcXNFVkIwb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NUzNnZ1RIVXZIZnpjOXdxYXlmblVl?= =?utf-8?B?VCtiaUk5Y1hYZ0R1dFJyTTZOcnNtQUw4cld6WkRlZ2VzTURpeHJxbU9qOGhu?= =?utf-8?B?WDc1Vi9Ucm44OHFDN2xIaW5GTXczRkY2cU1CdjdPL1JEZG9NRitPald3ODAz?= =?utf-8?B?TGFDQlNNQXdMVWM3My9vOUJEVnJSK09zUnh2VXVicDlDVXRaS1RUZGVKc2NC?= =?utf-8?B?MWJRZmJsdzN2RHU4Y21MamdMeWxjR0JnYU1oQ051TVFJNkE5M3hYWjVPeHU2?= =?utf-8?B?SmxUaDhvTytkdWZYa2trU2xwQS94djJkNmJzWkVjaTF2cUhxZEdsR09QVTRq?= =?utf-8?B?Z2FxVFZaODgrL0ZvNUY0N3g3RzhUZHFRbFAvM0lwRWE0dndTa0NJakFUM0pw?= =?utf-8?B?enFGOHdiNStJNHVDdmJCRmlkaVJGNXJOaU9CdHg2NEJRUFZqdWZuTWo2Zkpl?= =?utf-8?B?WEN4RkNnMU8xazE0TEJFdXc3Wnk1c0o4bWU3RU9rVlZGVW9ZQkQ3dmVyNnhC?= =?utf-8?B?ZUMybmFwMkFFUGJ4amNtSEd0WVFHbUUvSXBCUXVYMDV4ZStxMlNqdXRXQWw3?= =?utf-8?B?WFRTZVZtYVI2YVdwRHdNODhTS05kcTluY09JTDlsUUdHNlR3dU9yM2VmYjdp?= =?utf-8?B?NVNxeThrbkdUcDJyalovb09tdWcreUg4a1V5UE00QnRDRjRwZ2FYcjVpNSs5?= =?utf-8?B?K3d4MXh6cDhjT0phTmkxOVA4ZWJLS0VBN0hwTlh3bkYrYVc2ZVQ4MkJiM3ZE?= =?utf-8?Q?kCvguxwJ6dTAto/cYGHDCFY7A?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9018bf74-5856-4398-b888-08dbbaabb432 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2023 14:04:43.0282 (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: VcJCqpML/0KSKylOhHZk/Q40f0TAXp+HZ7qsfG56LPcR8TOuYmkU4CUaa4B/APQD X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB6801 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/20/2023 2:17 PM, Thomas Monjalon wrote: > Hello, > > 19/09/2023 11:06, Christian Koue Muf: >> On 9/18/23 10:34 AM, Ferruh Yigit wrote: >>> On 9/15/2023 7:37 PM, Morten Brørup wrote: >>>>> From: Ferruh Yigit [mailto:ferruh.yigit@amd.com] >>>>> Sent: Friday, 15 September 2023 17.55 >>>>> >>>>> On 9/8/2023 5:07 PM, Mykola Kostenok wrote: >>>>>> From: Christian Koue Muf >>>>>> >>>>>> The NTNIC PMD does not rely on a kernel space Napatech driver, thus >>>>>> all defines related to the register layout is part of the PMD code, >>>>>> which will be added in later commits. >>>>>> >>>>>> Signed-off-by: Christian Koue Muf >>>>>> Reviewed-by: Mykola Kostenok >>>>>> >>>>> >>>>> Hi Mykola, Christiam, >>>>> >>>>> This PMD scares me, overall it is a big drop: >>>>> "249 files changed, 87128 insertions(+)" >>>>> >>>>> I think it is not possible to review all in one release cycle, and it >>>>> is not even possible to say if all code used or not. >>>>> >>>>> I can see code is already developed, and it is difficult to >>>>> restructure developed code, but restructure it into small pieces >>>>> really helps for reviews. >>>>> >>>>> >>>>> Driver supports good list of features, can it be possible to >>>>> distribute upstream effort into multiple release. >>>>> Starting from basic functionality and add features gradually. >>>>> Target for this release can be providing datapath, and add more if we >>>>> have time in the release, what do you think? > > I was expecting to get only Rx/Tx in this release, not really more. > > I agree it may be interesting to discuss some design > and check whether we need more features in ethdev > as part of the driver upstreaming process. > > >>>>> Also there are large amount of base code (HAL / FPGA code), instead >>>>> of adding them as a bulk, relevant ones with a feature can be added >>>>> with the feature patch, this eliminates dead code in the base code >>>>> layer, also helps user/review to understand the link between driver >>>>> code and base code. > > Yes it would be interesting to see what is really needed for the basic initialization > and what is linked to a specific offload or configuration feature. > > As a maintainer, I have to do some changes across all drivers sometimes, > and I use git blame a lot to understand why something was added. > > >>>> Jumping in here with an opinion about welcoming new NIC vendors to the community: >>>> >>>> Generally, if a NIC vendor supplies a PMD for their NIC, I expect the vendor to take responsibility for the quality of the PMD, including providing a maintainer and support backporting of fixes to the PMD in LTS releases. This should align with the vendor's business case for upstreaming their driver. >>>> >>>> If the vendor provides one big patch series, which may be difficult to understand/review, the fallout mainly hits the vendor's customers (and thus the vendor's support organization), not the community as a whole. >>>> >>> >>> Hi Morten, >>> >>> I was thinking same before making my above comment, what happens if vendors submit as one big patch and when a problem occurs we can ask owner to fix. Probably this makes vendor happy and makes my life (or any other maintainer's life) easier, it is always easier to say yes. >>> >>> >>> But I come up with two main reasons to ask for a rework: >>> >>> 1- Technically any vendor can deliver their software to their customers via a public git repository, they don't have to upstream to https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fdpdk.org&c=E,1,NpoJejuuvPdOPfcFJYtsmkQF6PVrDjGsZ8x_gi5xDrTyZokK_nM11u4ZpzHgM10J9bOLlnhoR6fFAzWtCzOhRCzVruYj520zZORv6-MjJeSC5TrGnIFL&typo=1, >>> but upstreaming has many benefits. >>> >>> One of those benefits is upstreaming provides a quality assurance for vendor's customers (that is why customer can be asking for this, as we are having in many cases), and this quality assurance comes from additional eyes reviewing the code and guiding vendors for the DPDK quality standards (some vendors already doing pretty good, but new ones sometimes requires hand-holding). >>> >>> If driver is one big patch series, it is practically not possible to review it, I can catch a few bits here or there, you may some others, but practically it will be merged without review, and we will fail on our quality assurance task. >>> >>> 2- Make code more accessible to the rest of the world. >>> >>> When it is a big patch, code can be functional but lots of details, reasoning, relation between components gets lost, which makes it even harder for an external developer, like me, to understand it (I am a mere guinea pig here :). >>> >>> If a customer would like to add a feature themselves, or fix something, even after vendor no more working on that product anymore, customer needs to understand the code or some reasoning in the code. >>> Or if someone wants to backport the driver to rust, or a DPDK developer wants to do a rework that requires updating all drivers, or a tester would like to analyze the code to figure out behavior difference of the devices. I think I have witness all above cases in real life. >>> >>> If driver is split into more patches, it makes patch easier to understand which makes code practically more accessible to other developers that are not expert in driver. > > I fully agree about the 2 reasons for upstreaming piece by piece. > > >>> Overall, yes splitting patch takes time and effort, and yes this is an overhead for a code that is already developed, but I think benefit is big so it worth doing the task. > > In the meantime, if some features are not yet upstreamed in a release, > a user can apply the missing patches from the mailing list to get the features. > > >>>> We, the community, should not make it too difficult for vendors trying to upstream their drivers. I certainly consider it unreasonable to ask a vendor to postpone the release of some existing features by effectively an entire year (considering that only LTS releases are relevant for most of us) because we want the vendor to refactor the patch series to match our preferences within an unrealistic timeframe. > > You're right Morten, we try to be as welcoming as possible, > but as Ferruh said, we want to be able to understand how a driver is built, > even if not understanding all details. > > In Open Source, I think not only the code should be available, > we must also take care of explanations and documentation. > > >>> Agree to not make upstreaming difficult for new vendors, and indeed we are encouraging more vendors to be upstream their code, this is in best interest of both sides. >>> >>> Distributing upstreaming effort to a year was just a suggestion, it can go in earlier as it is becomes ready but I can see it will take time to split driver into features and upstream them. > > Driver features can be added until -rc2 (in one month). > > >>> As I am from a vendor too, I can understand the product/customer pressure, but I hope this approach can encourage vendors start upstreaming early or even better upstream as they develop the code. >> >> Hi Ferruh, >> >> First of all, thank you for starting the work to review our code. >> >> As Morten said Napatech plans to take all responsibility for the >> quality of the PMD source code. We expect to provide all fixes >> needed in the future. If for some reason Napatech stops maintaining >> the code, then we have been informed that the DPDK community >> might delete the PMD from the repository, and we understand that. >> >> In regards to splitting the code, I don't see this a good option. While >> I of cause agree it would be easier to review and understand, the >> code should also result in a meaningful product. Of the 87k lines >> of code, 53k lines is needed to start-up the FPGA to a state the it is ready >> to receive traffic. But at this point all packets would simply be discarded, >> and to be honest, there are better and cheaper options out there, >> if nothing more than basic functionality is needed. 34k lines are >> used to setup filters based on rte_flow. The thing is, that you need >> to initialize all modules in the FPGA TX- and RX-pipelines with valid >> data, even if you don't need the features those modules provide. >> As a result, if you split up the 34k lines, then the product would not >> be functional. Of cause some of the top level logic could be split out, >> but at this point we are talking about splitting 87k lines into 80k and 7k, >> which I don't think is worth it. > > Actually I think it is worth. > There is a benefit in isolating the small basic init part > from the more complex features. > > >>>>> As far as I understand last patch opens a socket interface and an >>>>> external application can sent control commands via this interface. >>>>> I am not sure about this side control channel, what is missing in the >>>>> DPDK API? Can we try to address them in the DPDK layer instead of a >>>>> driver specific solution? >>>> >>>> That would be great. >>>> >>>> AFAIK, other vendors also has a bunch of out-of-band communication, >>>> e.g. magical EAL parameters to the MLX drivers. So let's not be too >>>> hard on the newcomers. ;-) >>>> >>> >>> I did some thinking for this one too, >>> >>> As we are in userspace, it is easy to have side control channel, and this can make users life easy, so this is a practical thing to do. >>> (Indeed there are already some ways to do this, without PMD exposing a socket interface.) >>> >>> But this also reduces effort developers putting on DPDK layer solution, because it is always easier to add more support to the driver only. >>> And overall this reduces portability of the DPDK application, each application becomes unique to a device (This is a bad thing, but I also need some feedback how bad it is in real life.) >>> >>> To balance this, we said if a feature is too specific to a device, it can add device specific API and this is better than device specific features pollute the common, most used code. And push back to introduce more new PMD specific APIs unless it is really needed. >>> >>> But creating a socket interface directly from the driver is more than PMD specific API. Technically application control interface can rely completely to this. Even we assume this is not for control, but just for debug, I can see it can be useful for debug and again practical thing to do, I am still not sure how much it hurts if each driver has a custom socket interface for their debug needs. >>> >>> Overall it makes more sense to me to have a unified/common interface from drivers to DPDK applications, which is through the ethdev layer. >>> And improve and extend the ethdev layer to satisfy driver needs. >>> >>> In this specific example, I am for rejecting the socket interface patch, but I would like to get more feedback from @techboard. >>> >> >> The reason we have the addition control channel is not provide >> additional functionality. We have customers with use-cases that >> require multiple processes. Since Napatech adapters do not support >> configuration through VFs, then secondary applications must send >> their rte_flow to a main application, which will then setup the flow >> through it's PF. This control channel "hides" these details, and >> make the product easier for users to adapt to their existing solutions. > > I think you need to explore VF representors. > This is what is done with other drivers, and it make them compatible. > >> If you stand firm on rejecting the control channel, then we have >> to go back to the drawing board on this issue. We did look at >> DPDK's multi-process support, and actually had some support >> for this, but we determined that for our use-case it was better >> to have a communication channel, and no shared memory. > > I'm not sure your need is about secondary process. > Let's discuss this need in a meeting if needed. > Anyway, the message is that we want to be part of such design decision. > > >>> And related to not being too hard on the newcomers, unrelated to being a newcomer or not, if a process/feature/approach approved once, some others will point to it and will ask to do the same which is fair in their perspective. I had multiple instance of this in the past. >>> >>> Of course we are being easy to newcomers but not in a way to allow code that we believe is not good thing to do, but going easy on process may be :) >>> >> >> We are grateful for any leniency you may show us ;-) >> >> Thanks again, >> Christian >> >>> >>>>> >>>>> >>>>> Thanks, >>>>> ferruh >>>> >>>> Thank you, Ferruh, for taking good care of the community by providing constructive feedback like this to new NIC vendors! >>>> >>>> Please note that my feedback is entirely process related. I didn’t review the driver, so I have no technical comments to the patch series. >>>> >>>> -Morten > > > We are going to discuss the process in the technical board today. > > Hi Mykola, Christiam, As discussed, following are a few good examples from the DPDK history, there is no "fits all, fixed guidelines", but they can serve as samples: Marvell cnxk: https://patchwork.dpdk.org/project/dpdk/list/?series=17449&state=%2A&archive=both Solarflare sfc (before patchwork series support): https://patchwork.dpdk.org/project/dpdk/patch/1480436367-20749-2-git-send-email-arybchenko@solarflare.com/ to https://patchwork.dpdk.org/project/dpdk/patch/1480436367-20749-56-git-send-email-arybchenko@solarflare.com/ Intel ice: https://patchwork.dpdk.org/project/dpdk/list/?series=2842&state=%2A&archive=both