diff options
author | Ong Boon Leong <boon.leong.ong@intel.com> | 2021-03-17 09:01:23 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-17 14:36:24 -0700 |
commit | db2f2842e6f56027b1a29c7b16dc40482f41563b (patch) | |
tree | d8d431367b02291a41cb8555874350b29f406a1e /drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c | |
parent | 6ef4f40993e7ba1f132845c211dbba711af0623e (diff) | |
download | lwn-db2f2842e6f56027b1a29c7b16dc40482f41563b.tar.gz lwn-db2f2842e6f56027b1a29c7b16dc40482f41563b.zip |
net: stmmac: add per-queue TX & RX coalesce ethtool support
Extending the driver to support per-queue RX and TX coalesce settings in
order to support below commands:
To show per-queue coalesce setting:-
$ ethtool --per-queue <DEVNAME> queue_mask <MASK> --show-coalesce
To set per-queue coalesce setting:-
$ ethtool --per-queue <DEVNAME> queue_mask <MASK> --coalesce \
[rx-usecs N] [rx-frames M] [tx-usecs P] [tx-frames Q]
Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c index 2bac49b49f73..90383abafa66 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c @@ -255,7 +255,7 @@ static void dwmac1000_get_hw_feature(void __iomem *ioaddr, } static void dwmac1000_rx_watchdog(void __iomem *ioaddr, u32 riwt, - u32 number_chan) + u32 queue) { writel(riwt, ioaddr + DMA_RX_WATCHDOG); } |