From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [patch net-next v2 04/10] net: sched: introduce block mechanism to handle netif_keep_dst calls Date: Mon, 13 Nov 2017 09:35:55 +0100 Message-ID: <20171113083555.GJ1986@nanopsycho> References: <20171112155604.24061-1-jiri@resnulli.us> <20171112155604.24061-5-jiri@resnulli.us> <20171112234726.67211d6a@cakuba> <20171113075844.GF1986@nanopsycho> <20171113000334.1ebb5d28@cakuba> <20171113080816.GG1986@nanopsycho> <20171113001723.089f77ca@cakuba> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, davem@davemloft.net, jhs@mojatatu.com, xiyou.wangcong@gmail.com, mlxsw@mellanox.com, andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, ast@kernel.org, daniel@iogearbox.net, simon.horman@netronome.com, pieter.jansenvanvuuren@netronome.com, john.hurley@netronome.com To: Jakub Kicinski Return-path: Received: from mail-wr0-f194.google.com ([209.85.128.194]:44783 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751975AbdKMIf5 (ORCPT ); Mon, 13 Nov 2017 03:35:57 -0500 Received: by mail-wr0-f194.google.com with SMTP id u97so13707191wrc.1 for ; Mon, 13 Nov 2017 00:35:56 -0800 (PST) Content-Disposition: inline In-Reply-To: <20171113001723.089f77ca@cakuba> Sender: netdev-owner@vger.kernel.org List-ID: Mon, Nov 13, 2017 at 09:17:23AM CET, jakub.kicinski@netronome.com wrote: >On Mon, 13 Nov 2017 09:08:16 +0100, Jiri Pirko wrote: >> Mon, Nov 13, 2017 at 09:03:34AM CET, jakub.kicinski@netronome.com wrote: >> >On Mon, 13 Nov 2017 08:58:44 +0100, Jiri Pirko wrote: >> >> Mon, Nov 13, 2017 at 08:47:26AM CET, jakub.kicinski@netronome.com wrote: >> >> >On Sun, 12 Nov 2017 16:55:58 +0100, Jiri Pirko wrote: >> >> >> From: Jiri Pirko >> >> >> >> >> >> Couple of classifiers call netif_keep_dst directly on q->dev. That is >> >> >> not possible to do directly for shared blocke where multiple qdiscs are >> >> >> owning the block. So introduce a infrastructure to keep track of the >> >> >> block owners in list and use this list to implement block variant of >> >> >> netif_keep_dst. >> >> >> >> >> >> Signed-off-by: Jiri Pirko >> >> > >> >> >Could you use the list you add here to check the ethtool tc offload >> >> >flag? :) >> >> >> >> It is a list of qdisc sub parts. Not a list of netdevs >> > >> >Hm. OK, I won't pretend I understand the TC code in detail, I thought >> >that would give you all netdevs, but possibly duplicated. >> >> Yeah, eventually you can get it. But still, it is unusable to check the >> offload flag cause it has no relation with the block cbs. > >OK. Depends on which flags you intend to check. I.e. is it OK to >offload filters of the bond, because all its slaves have offloads on >but the bond itself doesn't. Is that what you mean? No. What I mean is, there is not always 1:1 relation between a registered block cb and netdev. For example in case of mlxsw. When multiple mlxsw devices share the same block, there is only one block cb call for all of them.