[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200113071946.1dbdecd1@cakuba>
Date: Mon, 13 Jan 2020 07:19:46 -0800
From: Jakub Kicinski <kubakici@...pl>
To: Jose Abreu <Jose.Abreu@...opsys.com>
Cc: netdev@...r.kernel.org, Joao Pinto <Joao.Pinto@...opsys.com>,
Giuseppe Cavallaro <peppe.cavallaro@...com>,
Alexandre Torgue <alexandre.torgue@...com>,
"David S. Miller" <davem@...emloft.net>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v2 6/8] net: stmmac: Add missing information in
DebugFS capabilities file
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);
Powered by blists - more mailing lists