From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A92C01D131C for ; Fri, 30 Aug 2024 02:11:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724983878; cv=none; b=WthuwqoZ0CMZjyrR3sXHgKEqxFYcZabXAFTbp9TkP1/z/UV5weJLaxPhYsstRYl76uj/9krXr5Lxm/mDPj4CqWtSi2uSbJWTTSoBaHo4qcFBWdU2mLEWyWqg/JFYmGfWD28zfYlTH9vxOWHWB1gAlGH3OIzMRIGGie5skj5JzPk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724983878; c=relaxed/simple; bh=CLF8/Dnt1U3GQdOjQN5yCqvSSG1ers65+eLXYDU8VsU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QX+i3+ehNaFClvYwFnDZQq5uRleDyxZ53iJ4BnhdPNHb8nuEHaqg08b9ZPnsJDGnJVgTeMbq4sEPWwLgYeTCozLm6DwBkNd/ifEp0cGo3rQFOtJLrsfht/tS1/LiIdrtyWkhuel93eW3eEabvLypm//S1bKks9Fi0MpL/H0BRyE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hYRmVEbN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hYRmVEbN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51B23C4CEC1; Fri, 30 Aug 2024 02:11:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724983878; bh=CLF8/Dnt1U3GQdOjQN5yCqvSSG1ers65+eLXYDU8VsU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hYRmVEbNI5jLFjY33pYMvVm4/QmXjzFxjeIs9E9bXEUDWFYXBEKT0vGFxO0w5dZ+N OztTzK4rCPQ0O+j9bVqgs7pyDnivTEUCojaLozM7i22YK8G/Ao6IX4HwHduBEjI2nJ Jzr0/V0/ju7fqIHg+EbXQXhNRVp+ZRhAN5WSYUNgDhXrw5//MewgwphO9eAYYx7Th6 v4nhfMu1f0Nz+UjmOBHP5PcDC8meDaLV3opAv5rh0ErMw/FDimYKjZxDf9kg+ws1Mj f4EEO1ZG2k6bMEgx+63eYXpYO8o21U4yAfgSLaDiLW3rKxFENmeS0yjDIQpP96MAbK ck4ltRXarooLw== Date: Thu, 29 Aug 2024 19:11:16 -0700 From: Jakub Kicinski To: Paolo Abeni Cc: netdev@vger.kernel.org, Jiri Pirko , Madhu Chittim , Sridhar Samudrala , Simon Horman , John Fastabend , Sunil Kovvuri Goutham , Jamal Hadi Salim , Donald Hunter , anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com, intel-wired-lan@lists.osuosl.org, edumazet@google.com Subject: Re: [PATCH v5 net-next 07/12] net: shaper: implement introspection support Message-ID: <20240829191116.2af4da33@kernel.org> In-Reply-To: <2ddedcd3f4dd4d9986c3a3bc995a2c410c20440e.1724944117.git.pabeni@redhat.com> References: <2ddedcd3f4dd4d9986c3a3bc995a2c410c20440e.1724944117.git.pabeni@redhat.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 29 Aug 2024 17:17:00 +0200 Paolo Abeni wrote: > The netlink op is a simple wrapper around the device callback. > > Extend the existing fetch_dev() helper adding an attribute argument > for the requested device. Reuse such helper in the newly implemented > operation. It's not just for introspection, it's also for the core to do error checking. Does something prevent user from installing a PPS shaper in iavf right now ?