From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Kicinski Subject: Re: [patch net-next v2 04/10] net: sched: introduce block mechanism to handle netif_keep_dst calls Date: Sun, 12 Nov 2017 23:47:26 -0800 Message-ID: <20171112234726.67211d6a@cakuba> References: <20171112155604.24061-1-jiri@resnulli.us> <20171112155604.24061-5-jiri@resnulli.us> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Jiri Pirko Return-path: Received: from mail-pg0-f68.google.com ([74.125.83.68]:49733 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751377AbdKMHr3 (ORCPT ); Mon, 13 Nov 2017 02:47:29 -0500 Received: by mail-pg0-f68.google.com with SMTP id g6so12096821pgn.6 for ; Sun, 12 Nov 2017 23:47:29 -0800 (PST) In-Reply-To: <20171112155604.24061-5-jiri@resnulli.us> Sender: netdev-owner@vger.kernel.org List-ID: 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? :)