]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6744ea6e5815d31587019c48ad57537dd7657a8
tree69b984351c2476a7c54ad60cd2223134a0a98aa7
parent9eafe9cfd3955153f914e2bc8f51412a8d826170
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