Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2433593ybl; Thu, 9 Jan 2020 12:41:11 -0800 (PST) X-Google-Smtp-Source: APXvYqy6K9UiZn36EwTPvMEACiRMSEYjyfmCKKbNzXTfW/t0FI/AmAmGTDUq3f2RbpNCm03ZcLv3 X-Received: by 2002:aca:c551:: with SMTP id v78mr4764445oif.161.1578602471163; Thu, 09 Jan 2020 12:41:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578602471; cv=none; d=google.com; s=arc-20160816; b=sg+QTD+yYIi+P55eGKzJYdvFADeyJABxD/GUKLEwEejL1/sjwhiWYQfxqdO/ppHmaZ Y2rZUkhZv2VQsxJkHRQowL1mfAZ8pl0YfcV5E8Y7w/EPltofCyztzFt607/m+/vTyc6K GXK/P0Lt6V+OgwQapfNHPyStWz2Uc88sksHHef270IQwvTzfpA9E2TJmXqX4X8P9NvaJ uvSpAZkwk6r0XxrKQZMQPsg632E6LSle4N1pB+BctH0DTjyiH43+eAGNqVhn4EwhSyan RX/HvzMlLQ3WxRD0vFEHj66N/CCYyFlos2el1AGsT37aG2bHKnn639WRmifHLO0+1yi/ Z4sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:message-id:cc:to:subject :from:references:in-reply-to:content-transfer-encoding:mime-version; bh=6D9zhIBMv2QC/KMwCnTIinZ5oKDmQjR7ZfrAFeXzkF8=; b=GVAu2IgWhE0WkraxEVZlgN4wrPxf+uw545CmTAmsVArmuSwZZIYXj/x23yF1mG+3uR dheihdrHBtC/JDdNH3oCkmyZvuIXBOisQM/sldzDDDrEQ1+BTzmFCfvok3LKa96JfZ9O MW+2zEkRLtL5RBUeuHixteGlhTO6KvcFz8qw3jvBOH+vbJMGI01M9fnQ5zDGDI02YoCp /Ko8epSZnuejIZsD2CkNf63gdl4BMt5Wxceu2BK1nBL1rV9dbJKQlwdJ1zczI82G21+U HZFTr8N0ymJ2rW0AI16DLVDO/3/b3DU9Z02JRZWCd7cRmnv2B3wlMXoV9sQJoIV/z65E 2fzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17si4227585oib.174.2020.01.09.12.40.58; Thu, 09 Jan 2020 12:41:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388401AbgAISE5 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 9 Jan 2020 13:04:57 -0500 Received: from mga14.intel.com ([192.55.52.115]:11162 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728653AbgAISE5 (ORCPT ); Thu, 9 Jan 2020 13:04:57 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2020 10:04:56 -0800 X-IronPort-AV: E=Sophos;i="5.69,414,1571727600"; d="scan'208";a="223407819" Received: from unknown (HELO localhost) ([10.24.12.101]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2020 10:04:56 -0800 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT In-Reply-To: References: <20191127094517.6255-1-Po.Liu@nxp.com> <157603276975.18462.4638422874481955289@pipeline> <87eex43pzm.fsf@linux.intel.com> <20191219004322.GA20146@khorivan> <87lfr9axm8.fsf@linux.intel.com> <157853205713.36295.17877768211004089754@aguedesl-mac01.jf.intel.com> From: Andre Guedes Subject: RE: [EXT] Re: [v1,net-next, 1/2] ethtool: add setting frame preemption of traffic classes To: Ivan Khoronzhuk , Jose Abreu , Murali Karicheri , Vinicius Costa Gomes Cc: Po Liu , "alexandru.ardelean@analog.com" , "allison@lohutok.net" , "andrew@lunn.ch" , "ayal@mellanox.com" , "davem@davemloft.net" , "f.fainelli@gmail.com" , "gregkh@linuxfoundation.org" , "hauke.mehrtens@intel.com" , "hkallweit1@gmail.com" , "jiri@mellanox.com" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "pablo@netfilter.org" , "saeedm@mellanox.com" , "tglx@linutronix.de" , Vladimir Oltean , "simon.horman@netronome.com" , Claudiu Manoil , Alexandru Marginean , Xiaoliang Yang , Roy Zang , Mingkai Hu , Jerry Huang , Leo Li , Joao Pinto Message-ID: <157859309589.47157.8012794523971663624@aguedesl-mac01.local> User-Agent: alot/0.8.1 Date: Thu, 09 Jan 2020 10:04:55 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jose, Quoting Jose Abreu (2020-01-09 00:59:24) > From: Andre Guedes > Date: Jan/09/2020, 01:07:37 (UTC+00:00) > > > After reading all this great discussion and revisiting the 802.1Q and 802.3br > > specs, I'm now leaning towards to not coupling Frame Preemption support under > > taprio qdisc. Besides what have been discussed, Annex S.2 from 802.1Q-2018 > > foresees FP without EST so it makes me feel like we should keep them separate. > > I agree that EST and FP can be used individually. But how can you > specify the hold and release commands for gates without changing taprio qdisc user space API ? The 'hold' and 'release' are operations from the GCL, which is part of EST. So they should still be specified via taprio. No changing in the user space API is required since these operations are already supported in taprio API. What is missing today is just the 'tc' side of it, which you already have a patch for it. > > Regarding the FP configuration knobs, the following seems reasonable to me: > > * Enable/disable FP feature > > * Preemptable queue mapping > > * Fragment size multiplier > > > > I'm not sure about the knob 'timers (hold/release)' described in the quotes > > above. I couldn't find a match in the specs. If it refers to 'holdAdvance' and > > 'releaseAdvance' parameters described in 802.1Q-2018, I believe they are not > > configurable. Do we know any hardware where they are configurable? > > Synopsys' HW supports reconfiguring these parameters. They are, however, > fixed independently of Queues. i.e. all queues will have same holdAdvance / releaseAdvance. Good to know. Is the datasheet publicly available? If so, could you please point me to it? I'd like to learn more about the FP knobs provided by different HW. Regards, Andre