From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [net-next PATCH] net: relax setup_tc ndo op handle restriction Date: Thu, 03 Mar 2016 16:25:46 -0500 (EST) Message-ID: <20160303.162546.1789026863325812592.davem@davemloft.net> References: <20160229192613.24163.31830.stgit@john-Precision-Tower-5810> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com, netdev@vger.kernel.org To: john.fastabend@gmail.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:47734 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755344AbcCCVZs (ORCPT ); Thu, 3 Mar 2016 16:25:48 -0500 In-Reply-To: <20160229192613.24163.31830.stgit@john-Precision-Tower-5810> Sender: netdev-owner@vger.kernel.org List-ID: From: John Fastabend Date: Mon, 29 Feb 2016 11:26:13 -0800 > I added this check in setup_tc to multiple drivers, > > if (handle != TC_H_ROOT || tc->type != TC_SETUP_MQPRIO) > > Unfortunately restricting to TC_H_ROOT like this breaks the old > instantiation of mqprio to setup a hardware qdisc. This patch > relaxes the test to only check the type to make it equivalent > to the check before I broke it. With this the old instantiation > continues to work. > > A good smoke test is to setup mqprio with, > > # tc qdisc add dev eth4 root mqprio num_tc 8 \ > map 0 1 2 3 4 5 6 7 \ > queues 0@0 1@1 2@2 3@3 4@4 5@5 6@6 7@7 > > Fixes: e4c6734eaab9 ("net: rework ndo tc op to consume additional qdisc handle paramete") > Reported-by: Singh Krishneil > Reported-by: Jake Keller ... > Signed-off-by: John Fastabend Applied, thanks John.