Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4069678ybl; Mon, 13 Jan 2020 07:21:33 -0800 (PST) X-Google-Smtp-Source: APXvYqx8bCgUGso74DikeXunf053KABU1RoW21pE2ha7ys5YN6qjwHR+Nn5xuRfKVEMmhmToQUM8 X-Received: by 2002:aca:4ad5:: with SMTP id x204mr12616671oia.162.1578928890937; Mon, 13 Jan 2020 07:21:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578928890; cv=none; d=google.com; s=arc-20160816; b=TLQLNaS1hzrUQp+2F4q7noAl+BQo1NxAOMavLISib5LMinhT9RBNjFcDxGAQv6E657 mIvVlKalZxszHXn/gP6X8mgoU9npaY0ciGfEVEtOawVc2N+GmB8CZIFJDpEyrVMsNlGT YIJBGimeAMz1J3rW1mfTUDgRYZqcJAWwqWUhcTI/ZZbDXIZP4pWT5fku8eybyS49ePYh mLVLGLVdQ0jrKP2xQBcuwuNNcgqUdTDrmGapbt1V/uBpnSsCM8rZ9yRULusV7++CAfef rKjNpKLR9p4sE3istKFtAAg8iKeZMFG4C6HjFvdCBrTKh8HtdodV/viIVEOrJ/f77QAC VU5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ckiIUgf+Tu5dz5bSkyhu+9/WG8U3ri+CC3Yzi1RogcU=; b=WGpChIkUNCH6CplknCmEXRxecOMfIMJ1GljF4cv2Ksl1+YT1gMhPwPlGWifGoHT9ev B5iWSnysjB+aSso2boA8us2xnm0kA3FiZ5VJlJe/Sr0kvne03bFOfWPy1K3awxADY5qL PQcYTtl3JAEYNeoQByzSMrwqSAVfRWNrBHaQEKgxDAWsTRwXmZFgoZCH9WSSE9AoPbsd 2skFKNX+MTfy+0dDRnpcKYbdek2wIp8mjSQG8/ZhpExUe9SQ6ZI+qAnPfZ0YwfORik1R V5tI2IXfDpfIv84wSy6c5Eg4NscqdI84mL+pY4EgqY+BC2ct7w5HGW4RaSua9I15EzZU tENw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=NeSFLFdi; 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=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si6564837oth.182.2020.01.13.07.21.16; Mon, 13 Jan 2020 07:21:30 -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; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=NeSFLFdi; 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=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728961AbgAMPUR (ORCPT + 99 others); Mon, 13 Jan 2020 10:20:17 -0500 Received: from mx3.wp.pl ([212.77.101.10]:9923 "EHLO mx3.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726399AbgAMPUQ (ORCPT ); Mon, 13 Jan 2020 10:20:16 -0500 Received: (wp-smtpd smtp.wp.pl 25356 invoked from network); 13 Jan 2020 16:20:13 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1578928814; bh=ckiIUgf+Tu5dz5bSkyhu+9/WG8U3ri+CC3Yzi1RogcU=; h=From:To:Cc:Subject; b=NeSFLFdiaaOtnduuiNXv0m3FxynzuH3vJW9Ys2S+vbRzGA0LVmL0946RrA6kxb4KH +VLCkHAyV57L9+KK16iXno0hhZnd//0dphpVH4rQMsgypOHg3029TTgu6CasCN+Hs3 jcUW6qwhui9F5L0Bn2LzwrHrTHCsdDI4zJyAPdvI= Received: from unknown (HELO cakuba) (kubakici@wp.pl@[172.58.35.234]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 13 Jan 2020 16:20:13 +0100 Date: Mon, 13 Jan 2020 07:19:46 -0800 From: Jakub Kicinski To: Jose Abreu Cc: netdev@vger.kernel.org, Joao Pinto , Giuseppe Cavallaro , Alexandre Torgue , "David S. Miller" , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 6/8] net: stmmac: Add missing information in DebugFS capabilities file Message-ID: <20200113071946.1dbdecd1@cakuba> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-WP-MailID: e9542c228b230751ee00c2b6f941528f X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000000 [gaNR] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Jan 2020 14:02:41 +0100, Jose Abreu wrote: > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > index fcc1ffe0b11e..7c2645ee81b1 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > @@ -4341,6 +4341,10 @@ static int stmmac_dma_cap_show(struct seq_file *seq, void *v) > priv->dma_cap.number_rx_queues); > seq_printf(seq, "\tNumber of Additional TX queues: %d\n", > priv->dma_cap.number_tx_queues); > + seq_printf(seq, "\tCurrent number of TX queues: %d\n", > + priv->plat->tx_queues_to_use); > + seq_printf(seq, "\tCurrent number of RX queues: %d\n", > + priv->plat->rx_queues_to_use); You should probably just implement ethtool get_channels. nack on this part. > seq_printf(seq, "\tEnhanced descriptors: %s\n", > (priv->dma_cap.enh_desc) ? "Y" : "N"); > seq_printf(seq, "\tTX Fifo Size: %d\n", priv->dma_cap.tx_fifo_size);