commit | 92bf14abf7a064936b5e6baab30661da86a86e52 | [log] [tgz] |
---|---|---|
author | Sathya Perla <sathya.perla@emulex.com> | Tue Aug 27 16:57:32 2013 +0530 |
committer | David S. Miller <davem@davemloft.net> | Tue Aug 27 15:57:04 2013 -0400 |
tree | d8268f13c45c47725994a1eeaa8ab94563101322 | |
parent | 150d58c7094ee02e5e3e876e288a95e254c5e830 [diff] |
be2net: refactor be_get_resources() code 1) use be_resources{} struct to query/store HW resource limits 2) The HW queue/resource limits for BE2/BE3 chips are mostly called out in driver as constants. Code to handle this is scattered across various places in be_setup(). Consolidate this code into BEx_get_resources(). For Lancer-R, Skyhawk-R, these limits are queried from FW. Signed-off-by: Sathya Perla <sathya.perla@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>