From: David Miller Subject: Re: [PATCH net-next] net: sched: avoid writing on noop_qdisc Date: Wed, 10 Oct 2018 22:49:33 -0700 (PDT) Message-ID: <20181010.224933.574942568684128097.davem@davemloft.net> References: <20181009222050.175348-1-edumazet@google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, john.fastabend@gmail.com, eric.dumazet@gmail.com To: edumazet@google.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:49182 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726964AbeJKNPN (ORCPT ); Thu, 11 Oct 2018 09:15:13 -0400 In-Reply-To: <20181009222050.175348-1-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Tue, 9 Oct 2018 15:20:50 -0700 > While noop_qdisc.gso_skb and noop_qdisc.skb_bad_txq are not used > in other places, it seems not correct to overwrite their fields > in dev_init_scheduler_queue(). > > noop_qdisc is essentially a shared and read-only object, even if > it is not marked as const because of some implementation detail. > > Signed-off-by: Eric Dumazet Applied, thanks.