]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit7b546842b1e87f5b7929cf15e9cd1ac861b14de3
tree59e9026ed03121e8ce8d225bb1d1a5a8803399c2
parent4d52e1e8d1e198962dcbfabf9c06425c38eb23d0
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