]> git.baikalelectronics.ru Git - kernel.git/commit
qlcnic: Set real_num_{tx|rx}_queues properly
authorShahed Shaikh <shahed.shaikh@qlogic.com>
Tue, 6 May 2014 07:46:49 +0000 (03:46 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 May 2014 20:53:15 +0000 (16:53 -0400)
commitb5799dc7f5529e8a1d5dd52d9e3138289c0b0274
treed66b5da3616c3d20eca737b532c3230839a75562
parent7c6f581459351c47627db4139e5e95a01f797004
qlcnic: Set real_num_{tx|rx}_queues properly

Do not set netdev->real_num_tx_queues directly,
let netif_set_real_num_tx_queues() take care of it.
Do not overwrite netdev->num_tx_queues everytime when driver
changes its Tx ring size through ethtool -L and also notify
stack to update number of Rx queues.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c