From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [patch net-next 1/2] net_sch: red: Fix the new offload indication Date: Wed, 27 Dec 2017 12:52:32 +0100 Message-ID: <20171227115232.GC1997@nanopsycho> References: <1514191902-53752-1-git-send-email-nogahf@mellanox.com> <1514191902-53752-2-git-send-email-nogahf@mellanox.com> 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 To: Nogah Frankel Return-path: Received: from mail-wr0-f194.google.com ([209.85.128.194]:45156 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750790AbdL0Lwf (ORCPT ); Wed, 27 Dec 2017 06:52:35 -0500 Received: by mail-wr0-f194.google.com with SMTP id o15so4361807wrf.12 for ; Wed, 27 Dec 2017 03:52:34 -0800 (PST) Content-Disposition: inline In-Reply-To: <1514191902-53752-2-git-send-email-nogahf@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: Mon, Dec 25, 2017 at 09:51:41AM CET, nogahf@mellanox.com wrote: >Update the offload flag, TCQ_F_OFFLOADED, in each dump call (and ignore >the offloading function return value in relation to this flag). >This is done because a qdisc is being initialized, and therefore offloaded >before being grafted. Since the ability of the driver to offload the qdisc >depends on its location, a qdisc can be offloaded and un-offloaded by graft >calls, that doesn't effect the qdisc itself. > >Fixes: 428a68af3a7c ("net: sched: Move to new offload indication in RED" >Signed-off-by: Nogah Frankel >Reviewed-by: Yuval Mintz Acked-by: Jiri Pirko