Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp807406pxj; Thu, 17 Jun 2021 14:29:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzumXWad1VoU8QrXixxCvzH74GKlUe6S6S/134r/4jWlk55GI6dXbwUqqyDpw+nzUQ9BNi3 X-Received: by 2002:a05:6402:4413:: with SMTP id y19mr447394eda.207.1623965365287; Thu, 17 Jun 2021 14:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623965365; cv=none; d=google.com; s=arc-20160816; b=J1/2L2S5HQo/hZ8SidZZqM2IlRKUoiKnVhZG9N3eNgCRkt423bU8sErh5yjNWeoCE1 1Sxx4aFSDohjknZxPcmvduprMLPHxnNMC6drXsulZl2djkujAv09o/P0/jd+Hba8i+qy vD0yS08zFNFWUa3Xr0EGmmyUpNt6lVH7EdhsaIJs3ISHSb6TaZijNcaDeQbT1qi1SMEz bKraC1PnMuhNEGzAUzwvce3Xy/wn9AoLcfBMbofDCAEkwDl7j0lB5u70YlyrekvHp/pf SHErxTOKGJnc2PTL42tFXQr3ZWci/JckaRCovLiBwgMbH2PV+yJYvD4nnhMmP01MRNM5 UfMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WcfYPRE0/EJf8qotBrb5aK+0y3nj++4NLAbgWTjHHrg=; b=CqKgASYL5wH06xzk50HYKhk4ZFqkwC6jUdjMLDuX8OfYanjLhQ2sksMVZFiQdHpcZY //o+sHlAEN78vPa7XdMvOTZNiAcXlfmGkfwAx9SVaHvpiD66lgmXiFvVnQ5hxoFaSHx2 M+vXAC4TF/ryLDCGY1vTTsYq6P6jiy4KESsLmpLX32NeRMjcF3q6qINC2LANo5cJSQ9P /aI9YqYKiGjlxROLAIdlASeUywwxH4XSEd77t3dMgQEfv4KR3li4H5bvJsWSzghwdATd 4TYnrWIhyG9y2q1LMU9Rfg/vza2CscHWSAPNmVHZjiPN4jJU8LCSSlTPwsl0RVtnuwac nsHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=OodPNxwi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ar21si207698ejc.100.2021.06.17.14.29.01; Thu, 17 Jun 2021 14:29:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=OodPNxwi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233697AbhFQTqW (ORCPT + 99 others); Thu, 17 Jun 2021 15:46:22 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:43398 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231186AbhFQTqV (ORCPT ); Thu, 17 Jun 2021 15:46:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=WcfYPRE0/EJf8qotBrb5aK+0y3nj++4NLAbgWTjHHrg=; b=Oo dPNxwiG8q4J96mStd1uisfqYOSYVu9/iAm5VSCebDFL0XXBpP3QwOZbaYTEtAHCDE4V/MPNKxHvIV IvA92ML69hEYFIUg820lYU5I8tY3e8seuFnVQfHmPdnNZ7FdUxWRQLdJRRs+Gc8dBpQ2AHIs4+zLc o/0COcKLatUmDVU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1ltxvq-009xSv-Oe; Thu, 17 Jun 2021 21:44:06 +0200 Date: Thu, 17 Jun 2021 21:44:06 +0200 From: Andrew Lunn To: Oleksandr Mazur Cc: "jiri@nvidia.com" , "davem@davemloft.net" , "kuba@kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net-next 00/11] Marvell Prestera driver implementation of devlink functionality. Message-ID: References: <20210609151602.29004-1-oleksandr.mazur@plvision.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 17, 2021 at 05:30:07PM +0000, Oleksandr Mazur wrote: > > Prestera Switchdev driver implements a set of devlink-based features, > > that include both debug functionality (traps with trap statistics), as well > > as functional rate limiter that is based on the devlink kernel API (interfaces). > > > The core prestera-devlink functionality is implemented in the prestera_devlink.c. > > > The patch series also extends the existing devlink kernel API with a list of core > > features: > > ?- devlink: add API for both publish/unpublish port parameters. > > ?- devlink: add port parameters-specific ops, as current design makes it impossible > > ? to register one parameter for multiple ports, and effectively distinguish for > > ? what port parameter_op is called. > > As we discussed the storm control (BUM) done via devlink port params topic, and agreed that it shouldn't be done using the devlink API itself, there's an open question i'd like to address: the patch series included, for what i think, list of needed and benefitial changes, and those are the following patches: Please wrap your emails at around 70 characters. > > > Oleksandr Mazur (2): > ... > > net: core: devlink: add port_params_ops for devlink port parameters altering > > drivers: net: netdevsim: add devlink port params usage > > > Sudarsana Reddy Kalluru (1): > > net: core: devlink: add apis to publish/unpublish port params > > So, should i create a new patch series that would include all of them? > > Because in that case the series itself would lack an actual HW usage of it. The only usage would be limited to the netdevsim driver. We generally don't add APIs without a user. And in this case, i'm not sure netdevsim is a valid user. Can you refactor some other driver to make use of the new code? If not, i would suggest they are not merged at the moment. When you do have a valid use case, you can post them again. Andrew