lkml.org 
[lkml]   [2020]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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);

\
 
 \ /
  Last update: 2020-01-13 16:20    [W:0.074 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site