Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6FD83C2D0DB for ; Tue, 28 Jan 2020 23:51:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4BE102173E for ; Tue, 28 Jan 2020 23:51:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726446AbgA1XvP (ORCPT ); Tue, 28 Jan 2020 18:51:15 -0500 Received: from mga01.intel.com ([192.55.52.88]:42267 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbgA1XvP (ORCPT ); Tue, 28 Jan 2020 18:51:15 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jan 2020 15:51:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,375,1574150400"; d="scan'208";a="277321920" Received: from vcostago-desk1.jf.intel.com ([10.54.70.26]) by FMSMGA003.fm.intel.com with ESMTP; 28 Jan 2020 15:51:15 -0800 From: Vinicius Costa Gomes To: netdev@vger.kernel.org Cc: Vinicius Costa Gomes , jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net, vladimir.oltean@nxp.com, po.liu@nxp.com Subject: [PATCH net v2 0/3] taprio: Some fixes Date: Tue, 28 Jan 2020 15:52:24 -0800 Message-Id: <20200128235227.3942256-1-vinicius.gomes@intel.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, Changes from v1: - Fixed ignoring the 'flags' argument when adding a new instance (Vladimir Oltean); - Changed the order of commits; Updated cover letter: Some fixes for taprio, mostly (2/3 and 3/3) related to the 'flags' argument: Patch 1/3: Reported by Po Liu, is more of a improvement of usability for drivers implementing offloading features, now they can rely on the value of dev->num_tc, instead of going through some hops to get this value. Patch 2/3: Use 'q->flags' as the source of truth for the offloading flags. Patch 3/3: Fixes the issue that changing the flags during runtime was still allowed (with bad results). The solution was to initialize 'q->flags' with an invalid value. Cheers, -- Vinicius Vinicius Costa Gomes (3): taprio: Fix enabling offload with wrong number of traffic classes taprio: Allow users not to specify "flags" when changing schedules taprio: Fix still allowing changing the flags during runtime net/sched/sch_taprio.c | 87 ++++++++++++++++++++++++++---------------- 1 file changed, 54 insertions(+), 33 deletions(-) -- 2.25.0