net/mlx5e: Remove unneeded netif_set_real_num_tx_queues
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Mon, 25 Nov 2019 12:29:46 +0000 (14:29 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 26 Feb 2020 01:05:56 +0000 (17:05 -0800)
The number of queues is now updated by mlx5e_update_netdev_queues in a
centralized way, when no channels are active. Remove an extra occurrence
of netif_set_real_num_tx_queues to prepare it for the next commit.

Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c

index 4906d609aa559f593d9e220dff0ec2b41584dd02..ceeb9faad9ef502fc4cddd972b355106292410fa 100644 (file)
@@ -2942,17 +2942,11 @@ static void mlx5e_switch_priv_channels(struct mlx5e_priv *priv,
                                       mlx5e_fp_preactivate preactivate)
 {
        struct net_device *netdev = priv->netdev;
-       int new_num_txqs;
        int carrier_ok;
 
-       new_num_txqs = new_chs->num * new_chs->params.num_tc;
-
        carrier_ok = netif_carrier_ok(netdev);
        netif_carrier_off(netdev);
 
-       if (new_num_txqs < netdev->real_num_tx_queues)
-               netif_set_real_num_tx_queues(netdev, new_num_txqs);
-
        mlx5e_deactivate_priv_channels(priv);
        mlx5e_close_channels(&priv->channels);