net/mlx5e: Remove select queue ndo initialization
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 9 Feb 2016 12:57:43 +0000 (14:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2016 20:21:47 +0000 (15:21 -0500)
Currently mlx5e_select_queue is redundant since num_tc is always 1.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c

index 6a3e430f10624e637fb8b3dcfaade968d2a83c53..bca6e85e1c8e69f0f74e0393c0419e9bb9d22b9e 100644 (file)
@@ -2137,9 +2137,6 @@ static void mlx5e_build_netdev(struct net_device *netdev)
 
        SET_NETDEV_DEV(netdev, &mdev->pdev->dev);
 
-       if (priv->params.num_tc > 1)
-               mlx5e_netdev_ops.ndo_select_queue = mlx5e_select_queue;
-
        if (MLX5_CAP_GEN(mdev, vport_group_manager)) {
                mlx5e_netdev_ops.ndo_set_vf_mac = mlx5e_set_vf_mac;
                mlx5e_netdev_ops.ndo_set_vf_vlan = mlx5e_set_vf_vlan;