]> git.baikalelectronics.ru Git - kernel.git/commit
qlcnic: Fix max ring count calculation
authorShahed Shaikh <shahed.shaikh@qlogic.com>
Mon, 14 Apr 2014 14:02:20 +0000 (10:02 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Apr 2014 17:43:52 +0000 (13:43 -0400)
commit77f890c0335a395369f1cd3218a4c5744882e320
tree59e9026ed03121e8ce8d225bb1d1a5a8803399c2
parentbff65e9235209d61b51c1ee5467377abdcd03d67
qlcnic: Fix max ring count calculation

Do not read max rings count from qlcnic_get_nic_info(). Use driver defined
values for 82xx adapters. In case of 83xx adapters, use minimum of firmware
provided and driver defined values.

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