diff options
author | Sathya Perla <sathya.perla@emulex.com> | 2013-08-27 16:57:32 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-27 15:57:04 -0400 |
commit | 92bf14abf7a064936b5e6baab30661da86a86e52 (patch) | |
tree | d8268f13c45c47725994a1eeaa8ab94563101322 /drivers/net/ethernet/emulex/benet/be_roce.h | |
parent | 150d58c7094ee02e5e3e876e288a95e254c5e830 (diff) | |
download | blackbird-op-linux-92bf14abf7a064936b5e6baab30661da86a86e52.tar.gz blackbird-op-linux-92bf14abf7a064936b5e6baab30661da86a86e52.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be_roce.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_roce.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_roce.h b/drivers/net/ethernet/emulex/benet/be_roce.h index 276572998463..2cd1129e19af 100644 --- a/drivers/net/ethernet/emulex/benet/be_roce.h +++ b/drivers/net/ethernet/emulex/benet/be_roce.h @@ -29,7 +29,7 @@ enum be_interrupt_mode { BE_INTERRUPT_MODE_MSI = 2, }; -#define MAX_ROCE_MSIX_VECTORS 16 +#define MAX_MSIX_VECTORS 32 struct be_dev_info { u8 __iomem *db; u64 unmapped_db; @@ -45,7 +45,7 @@ struct be_dev_info { struct { int num_vectors; int start_vector; - u32 vector_list[MAX_ROCE_MSIX_VECTORS]; + u32 vector_list[MAX_MSIX_VECTORS]; } msix; }; |