diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2011-11-13 08:34:26 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-14 01:03:54 +0400 |
commit | f9c058b633000e64fba05fc14ba94dd09a20e674 (patch) | |
tree | 4d5875a94f8f8acad4c2f587cab7fcd96dccb89d /drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.h | |
parent | 00253a8cf3119af6cb07c9de2c08a50d39fc7201 (diff) | |
download | linux-f9c058b633000e64fba05fc14ba94dd09a20e674.tar.xz |
bnx2x: DCBX: use #define instead of magic
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.h index 2c6a3bca6f28..2ab9254e2d5e 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.h +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.h @@ -90,6 +90,7 @@ struct bnx2x_admin_priority_app_table { u32 app_id; }; +#define DCBX_CONFIG_MAX_APP_PROTOCOL 4 struct bnx2x_config_dcbx_params { u32 overwrite_settings; u32 admin_dcbx_version; @@ -109,7 +110,8 @@ struct bnx2x_config_dcbx_params { u32 admin_recommendation_bw_precentage[8]; u32 admin_recommendation_ets_pg[8]; u32 admin_pfc_bitmap; - struct bnx2x_admin_priority_app_table admin_priority_app_table[4]; + struct bnx2x_admin_priority_app_table + admin_priority_app_table[DCBX_CONFIG_MAX_APP_PROTOCOL]; u32 admin_default_priority; }; |