From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamal Hadi Salim Subject: Re: [patch net-next v7 07/13] net: sched: use block index as a handle instead of qdisc when block is shared Date: Thu, 11 Jan 2018 08:25:36 -0500 Message-ID: <243389ac-25d8-a75e-3092-fd234333ec8b@mojatatu.com> References: <20180109140731.1022-1-jiri@resnulli.us> <20180109140731.1022-8-jiri@resnulli.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, xiyou.wangcong@gmail.com, mlxsw@mellanox.com, andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, michael.chan@broadcom.com, ganeshgr@chelsio.com, saeedm@mellanox.com, matanb@mellanox.com, leonro@mellanox.com, idosch@mellanox.com, jakub.kicinski@netronome.com, simon.horman@netronome.com, pieter.jansenvanvuuren@netronome.com, john.hurley@netronome.com, alexander.h.duyck@intel.com, ogerlitz@mellanox.com, john.fastabend@gmail.com, daniel@iogearbox.net, dsahern@gmail.com To: Jiri Pirko , netdev@vger.kernel.org Return-path: Received: from mail-it0-f68.google.com ([209.85.214.68]:38267 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932306AbeAKNZj (ORCPT ); Thu, 11 Jan 2018 08:25:39 -0500 Received: by mail-it0-f68.google.com with SMTP id r6so4263716itr.3 for ; Thu, 11 Jan 2018 05:25:39 -0800 (PST) In-Reply-To: <20180109140731.1022-8-jiri@resnulli.us> Content-Language: en-GB Sender: netdev-owner@vger.kernel.org List-ID: On 18-01-09 09:07 AM, Jiri Pirko wrote: > From: Jiri Pirko > > As the tcm_ifindex 0 is invalid ifindex, reuse it to indicate that we > work with block, instead of qdisc. So if tcm_ifindex is 0, tcm_parent is > used to carry block_index. > Commit log still refers to ifindex of 0 instead of TCM_IFINDEX_MAGIC_BLOCK cheers, jamal