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=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 AFAF2C433DF for ; Fri, 29 May 2020 19:40:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 896BA20810 for ; Fri, 29 May 2020 19:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590781217; bh=pHAWiXtXi82k1H2JV3es73QRsipXYFr8isypVyWkMJo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=rx/lkISEXBATzmJ5z/9EMxBlFuYvOCwS9lvOzgO6AZXfxy6etf3cY6YZx6uK0ZPsR 1ZUaNY3aYHsmrp06124V52/liwfV6qggUmQa3IZ/jjFyh9RQ1JN5LhL0z9m8nHn2wU 2HYoYgxzHr6GsRE9VPS703sTv7X0W0+UTI+ZgvQQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728149AbgE2TkQ (ORCPT ); Fri, 29 May 2020 15:40:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:34198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726751AbgE2TkQ (ORCPT ); Fri, 29 May 2020 15:40:16 -0400 Received: from kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net (unknown [163.114.132.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 715892068D; Fri, 29 May 2020 19:40:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590781215; bh=pHAWiXtXi82k1H2JV3es73QRsipXYFr8isypVyWkMJo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YvHC7pBZUm1D7WWDvZRrCp9BbBALz+4UwZWX8Qc24xbi7Pe5L3uOFh2cciIr9iSFA 9AOycN1RVb6KEzQNy9R9lqFM/jfrdW9G0bNfQpvFcuj7FDFXNnc+oBuW3PfQ3Qm6kK zwuNvZQjTB9SR1lR97BZOn4JpBiPNkO//kUw38Es= Date: Fri, 29 May 2020 12:40:13 -0700 From: Jakub Kicinski To: Ioana Ciornei Cc: "davem@davemloft.net" , "netdev@vger.kernel.org" Subject: Re: [PATCH v2 net-next 0/7] dpaa2-eth: add support for Rx traffic classes Message-ID: <20200529124013.216c3970@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> In-Reply-To: References: <20200515184753.15080-1-ioana.ciornei@nxp.com> <20200515122035.0b95eff4@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200515124059.33c43d03@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200515152500.158ca070@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200518123540.3245b949@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, 29 May 2020 11:45:08 +0000 Ioana Ciornei wrote: > > Subject: Re: [PATCH v2 net-next 0/7] dpaa2-eth: add support for Rx traffic > > classes > > > > On Sat, 16 May 2020 08:16:47 +0000 Ioana Ciornei wrote: > > > > With the Rx QoS features users won't even be able to tell via > > > > standard Linux interfaces what the config was. > > > > > > Ok, that is true. So how should this information be exported to the user? > > > > I believe no such interface currently exists. > > Somehow I missed this the first time around but the number of Rx traffic classes > can be exported through the DCB ops if those traffic classes are PFC enabled. > Also, adding PFC support was the main target of this patch set. > > An output like the following would convey to the user how many traffic classes > are available and which of them are PFC enabled. > > root@localhost:~# lldptool -t -i eth1 -V PFC > IEEE 8021QAZ PFC TLV > Willing: yes > MACsec Bypass Capable: no > PFC capable traffic classes: 8 > PFC enabled: 1 3 7 Ack, the DCB APIs are probably the closest today to what you need. I'm not sure whether there is an established relation between the tcs there, and the number of queues reported and used in ethtool, though :(