From a137c069fbc1972bdaf2dd6c75083cd2f3e6e3d7 Mon Sep 17 00:00:00 2001 From: Haiyang Zhang Date: Mon, 25 Oct 2021 11:37:34 -0700 Subject: net: mana: Allow setting the number of queues while the NIC is down The existing code doesn't allow setting the number of queues while the NIC is down. Update the ethtool handler functions to support setting the number of queues while the NIC is at down state. Signed-off-by: Haiyang Zhang Signed-off-by: David S. Miller --- drivers/net/ethernet/microsoft/mana/mana_ethtool.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'drivers/net/ethernet/microsoft/mana/mana_ethtool.c') diff --git a/drivers/net/ethernet/microsoft/mana/mana_ethtool.c b/drivers/net/ethernet/microsoft/mana/mana_ethtool.c index 7e74339f39ae..c3c81ae3fafd 100644 --- a/drivers/net/ethernet/microsoft/mana/mana_ethtool.c +++ b/drivers/net/ethernet/microsoft/mana/mana_ethtool.c @@ -211,9 +211,6 @@ static int mana_set_channels(struct net_device *ndev, unsigned int old_count = apc->num_queues; int err, err2; - if (!apc->port_is_up) - return -EOPNOTSUPP; - err = mana_detach(ndev, false); if (err) { netdev_err(ndev, "mana_detach failed: %d\n", err); -- cgit v1.2.3