From mboxrd@z Thu Jan 1 00:00:00 1970 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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 ED40CC2D0DB for ; Sat, 25 Jan 2020 20:25:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BE5F420708 for ; Sat, 25 Jan 2020 20:25:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727163AbgAYUZy (ORCPT ); Sat, 25 Jan 2020 15:25:54 -0500 Received: from mga01.intel.com ([192.55.52.88]:60084 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbgAYUZy (ORCPT ); Sat, 25 Jan 2020 15:25:54 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jan 2020 12:25:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,363,1574150400"; d="scan'208";a="428622215" Received: from apricoch-mobl2.amr.corp.intel.com (HELO ellie) ([10.252.137.80]) by fmsmga006.fm.intel.com with ESMTP; 25 Jan 2020 12:25:53 -0800 From: Vinicius Costa Gomes To: Vladimir Oltean Cc: netdev , Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" , Vladimir Oltean , Po Liu Subject: Re: [PATCH net v1 2/3] taprio: Fix still allowing changing the flags during runtime In-Reply-To: References: <20200125005320.3353761-1-vinicius.gomes@intel.com> <20200125005320.3353761-3-vinicius.gomes@intel.com> Date: Sat, 25 Jan 2020 12:25:53 -0800 Message-ID: <87o8ur1dwu.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, Vladimir Oltean writes: > > You can't quite do this, since it now breaks plain 'tc qdisc add' > behavior. Can you initialize q->flags to -1 in taprio_init, just below > q->clockid, and keep the "q->flags != -1" check here? You might also > need to validate the taprio_flags to be a positive value. > Ugh, thanks for pointing this out. Will re-spin the series fixing this. Another lesson on not sending patches last thing on a friday. Cheers, -- Vinicius