From: Sathya Perla Date: Tue, 27 Aug 2013 11:27:32 +0000 (+0530) Subject: be2net: refactor be_get_resources() code X-Git-Tag: v3.12-rc1~132^2~176 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92bf14abf7a064936b5e6baab30661da86a86e52;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed