diff options
author | Ong Boon Leong <boon.leong.ong@intel.com> | 2020-09-15 04:28:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-16 01:39:31 +0300 |
commit | 0366f7e06a6bee7eace3946a6b67fb88b828bc5c (patch) | |
tree | 69b984351c2476a7c54ad60cd2223134a0a98aa7 /drivers/net/ethernet/stmicro/stmmac/stmmac.h | |
parent | 945c5704887e35bb4aee841c17aca9dd277c5e55 (diff) | |
download | linux-0366f7e06a6bee7eace3946a6b67fb88b828bc5c.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac.h')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h index 9c02fc754bf1..509ce067538e 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac.h +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac.h @@ -264,6 +264,7 @@ int stmmac_dvr_probe(struct device *device, struct stmmac_resources *res); void stmmac_disable_eee_mode(struct stmmac_priv *priv); bool stmmac_eee_init(struct stmmac_priv *priv); +int stmmac_reinit_queues(struct net_device *dev, u32 rx_cnt, u32 tx_cnt); #if IS_ENABLED(CONFIG_STMMAC_SELFTESTS) void stmmac_selftest_run(struct net_device *dev, |