net: stmmac: add ethtool support for get/set channels
authorOng Boon Leong <boon.leong.ong@intel.com>
Tue, 15 Sep 2020 01:28:38 +0000 (09:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2020 22:39:31 +0000 (15:39 -0700)
commit0366f7e06a6bee7eace3946a6b67fb88b828bc5c
tree69b984351c2476a7c54ad60cd2223134a0a98aa7
parent945c5704887e35bb4aee841c17aca9dd277c5e55
net: stmmac: add ethtool support for get/set channels

Restructure NAPI add and delete process so that we can call them
accordingly in open() and ethtool_set_channels() accordingly.

Introduced stmmac_reinit_queues() to handle the transition needed
for changing Rx & Tx channels accordingly.

Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c