Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1eb63a28 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller
Browse files

mlx4_en: Use netif_set_real_num_{rx, tx}_queues()

parent 847f53ff
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1025,7 +1025,8 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
	 */
	 */
	dev->netdev_ops = &mlx4_netdev_ops;
	dev->netdev_ops = &mlx4_netdev_ops;
	dev->watchdog_timeo = MLX4_EN_WATCHDOG_TIMEOUT;
	dev->watchdog_timeo = MLX4_EN_WATCHDOG_TIMEOUT;
	dev->real_num_tx_queues = MLX4_EN_NUM_TX_RINGS;
	netif_set_real_num_tx_queues(dev, priv->tx_ring_num);
	netif_set_real_num_rx_queues(dev, priv->rx_ring_num);


	SET_ETHTOOL_OPS(dev, &mlx4_en_ethtool_ops);
	SET_ETHTOOL_OPS(dev, &mlx4_en_ethtool_ops);