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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 DD413C4360C for ; Wed, 9 Oct 2019 00:21:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BB4E720873 for ; Wed, 9 Oct 2019 00:21:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729700AbfJIAVW (ORCPT ); Tue, 8 Oct 2019 20:21:22 -0400 Received: from mga02.intel.com ([134.134.136.20]:22116 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728792AbfJIAVW (ORCPT ); Tue, 8 Oct 2019 20:21:22 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Oct 2019 17:21:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,273,1566889200"; d="scan'208";a="394853045" Received: from vcostago-desk1.jf.intel.com (HELO vcostago-desk1) ([10.54.70.82]) by fmsmga006.fm.intel.com with ESMTP; 08 Oct 2019 17:21:21 -0700 From: Vinicius Costa Gomes To: Vladimir Oltean Cc: netdev , Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" Subject: Re: [PATCH net v1] net: taprio: Fix returning EINVAL when configuring without flags In-Reply-To: References: <20191008232007.16083-1-vinicius.gomes@intel.com> Date: Tue, 08 Oct 2019 17:22:13 -0700 Message-ID: <87pnj66a4q.fsf@linux.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: > Hi Vinicius, > > On Wed, 9 Oct 2019 at 02:19, Vinicius Costa Gomes > wrote: >> >> When configuring a taprio instance if "flags" is not specified (or >> it's zero), taprio currently replies with an "Invalid argument" error. >> >> So, set the return value to zero after we are done with all the >> checks. >> >> Fixes: 9c66d1564676 ("taprio: Add support for hardware offloading") >> Signed-off-by: Vinicius Costa Gomes >> --- > > You mean clockid, not flags, right? I do mean "flags", yeah. The case I was testing was something like this: $ tc qdisc replace dev $IFACE parent root handle 100 taprio \ num_tc 3 \ map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 \ queues 1@0 1@1 2@2 \ base-time $BASE_TIME \ sched-entry S 01 300000 \ sched-entry S 02 300000 \ sched-entry S 04 400000 \ clockid CLOCK_TAI Cheers, -- Vinicius