]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlx4_vnic: use netif_set_real_num_tx_queues to dynamically change tx queue size
authorSaeed Mahameed <saeedm@mellanox.com>
Mon, 30 Sep 2013 11:26:54 +0000 (13:26 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:45:13 +0000 (14:45 -0700)
commita778b39e86ce6534a38a85d1cc19e37091e8451b
treeec3a663784ff85b6657c2f7125f41afb8a435a45
parenta15f6fc5eb000c0287afdb03c2e696b73b634012
mlx4_vnic: use netif_set_real_num_tx_queues to dynamically change tx queue size

When network admin vnics are created the network device is
already registered and it is not allowed to change
dev->real_num_tx_queues directly.

This fixes a bug where the unload of mlx4_vnic hangs with
the following error message: waiting for eth442 to become
free. Usage count = 16

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
(Ported from Mellanox OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/net/ethernet/mellanox/mlx4_vnic/vnic.h
drivers/net/ethernet/mellanox/mlx4_vnic/vnic_main.c