aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Kravkov <dmitry@broadcom.com>2012-03-18 06:33:41 -0400
committerDavid S. Miller <davem@davemloft.net>2012-03-19 16:53:07 -0400
commit9d4884f9d470cd696d7a7cd7a6d7099d13909dd9 (patch)
tree46eb42d9025535e2ddcf7ec04466c74dfb6d0b27 /drivers
parentc315a4ef55b9afa0373fbb10f8567d59f81247c9 (diff)
bnx2x: changed initial dcb configuration
The changes were mostly made to enable back-to-back data flow with dcb. Other changes were simply deemed as a better 'clean' initial configuration. Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c45
1 files changed, 16 insertions, 29 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
index e2d68e2239b9..fce47a6f88d7 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
@@ -925,30 +925,30 @@ void bnx2x_dcbx_init_params(struct bnx2x *bp)
925 bp->dcbx_config_params.admin_application_priority_tx_enable = 1; 925 bp->dcbx_config_params.admin_application_priority_tx_enable = 1;
926 bp->dcbx_config_params.admin_ets_reco_valid = 1; 926 bp->dcbx_config_params.admin_ets_reco_valid = 1;
927 bp->dcbx_config_params.admin_app_priority_willing = 1; 927 bp->dcbx_config_params.admin_app_priority_willing = 1;
928 bp->dcbx_config_params.admin_configuration_bw_precentage[0] = 00; 928 bp->dcbx_config_params.admin_configuration_bw_precentage[0] = 100;
929 bp->dcbx_config_params.admin_configuration_bw_precentage[1] = 50; 929 bp->dcbx_config_params.admin_configuration_bw_precentage[1] = 0;
930 bp->dcbx_config_params.admin_configuration_bw_precentage[2] = 50; 930 bp->dcbx_config_params.admin_configuration_bw_precentage[2] = 0;
931 bp->dcbx_config_params.admin_configuration_bw_precentage[3] = 0; 931 bp->dcbx_config_params.admin_configuration_bw_precentage[3] = 0;
932 bp->dcbx_config_params.admin_configuration_bw_precentage[4] = 0; 932 bp->dcbx_config_params.admin_configuration_bw_precentage[4] = 0;
933 bp->dcbx_config_params.admin_configuration_bw_precentage[5] = 0; 933 bp->dcbx_config_params.admin_configuration_bw_precentage[5] = 0;
934 bp->dcbx_config_params.admin_configuration_bw_precentage[6] = 0; 934 bp->dcbx_config_params.admin_configuration_bw_precentage[6] = 0;
935 bp->dcbx_config_params.admin_configuration_bw_precentage[7] = 0; 935 bp->dcbx_config_params.admin_configuration_bw_precentage[7] = 0;
936 bp->dcbx_config_params.admin_configuration_ets_pg[0] = 1; 936 bp->dcbx_config_params.admin_configuration_ets_pg[0] = 0;
937 bp->dcbx_config_params.admin_configuration_ets_pg[1] = 0; 937 bp->dcbx_config_params.admin_configuration_ets_pg[1] = 0;
938 bp->dcbx_config_params.admin_configuration_ets_pg[2] = 0; 938 bp->dcbx_config_params.admin_configuration_ets_pg[2] = 0;
939 bp->dcbx_config_params.admin_configuration_ets_pg[3] = 2; 939 bp->dcbx_config_params.admin_configuration_ets_pg[3] = 0;
940 bp->dcbx_config_params.admin_configuration_ets_pg[4] = 0; 940 bp->dcbx_config_params.admin_configuration_ets_pg[4] = 0;
941 bp->dcbx_config_params.admin_configuration_ets_pg[5] = 0; 941 bp->dcbx_config_params.admin_configuration_ets_pg[5] = 0;
942 bp->dcbx_config_params.admin_configuration_ets_pg[6] = 0; 942 bp->dcbx_config_params.admin_configuration_ets_pg[6] = 0;
943 bp->dcbx_config_params.admin_configuration_ets_pg[7] = 0; 943 bp->dcbx_config_params.admin_configuration_ets_pg[7] = 0;
944 bp->dcbx_config_params.admin_recommendation_bw_precentage[0] = 0; 944 bp->dcbx_config_params.admin_recommendation_bw_precentage[0] = 100;
945 bp->dcbx_config_params.admin_recommendation_bw_precentage[1] = 1; 945 bp->dcbx_config_params.admin_recommendation_bw_precentage[1] = 0;
946 bp->dcbx_config_params.admin_recommendation_bw_precentage[2] = 2; 946 bp->dcbx_config_params.admin_recommendation_bw_precentage[2] = 0;
947 bp->dcbx_config_params.admin_recommendation_bw_precentage[3] = 0; 947 bp->dcbx_config_params.admin_recommendation_bw_precentage[3] = 0;
948 bp->dcbx_config_params.admin_recommendation_bw_precentage[4] = 7; 948 bp->dcbx_config_params.admin_recommendation_bw_precentage[4] = 0;
949 bp->dcbx_config_params.admin_recommendation_bw_precentage[5] = 5; 949 bp->dcbx_config_params.admin_recommendation_bw_precentage[5] = 0;
950 bp->dcbx_config_params.admin_recommendation_bw_precentage[6] = 6; 950 bp->dcbx_config_params.admin_recommendation_bw_precentage[6] = 0;
951 bp->dcbx_config_params.admin_recommendation_bw_precentage[7] = 7; 951 bp->dcbx_config_params.admin_recommendation_bw_precentage[7] = 0;
952 bp->dcbx_config_params.admin_recommendation_ets_pg[0] = 0; 952 bp->dcbx_config_params.admin_recommendation_ets_pg[0] = 0;
953 bp->dcbx_config_params.admin_recommendation_ets_pg[1] = 1; 953 bp->dcbx_config_params.admin_recommendation_ets_pg[1] = 1;
954 bp->dcbx_config_params.admin_recommendation_ets_pg[2] = 2; 954 bp->dcbx_config_params.admin_recommendation_ets_pg[2] = 2;
@@ -957,25 +957,12 @@ void bnx2x_dcbx_init_params(struct bnx2x *bp)
957 bp->dcbx_config_params.admin_recommendation_ets_pg[5] = 5; 957 bp->dcbx_config_params.admin_recommendation_ets_pg[5] = 5;
958 bp->dcbx_config_params.admin_recommendation_ets_pg[6] = 6; 958 bp->dcbx_config_params.admin_recommendation_ets_pg[6] = 6;
959 bp->dcbx_config_params.admin_recommendation_ets_pg[7] = 7; 959 bp->dcbx_config_params.admin_recommendation_ets_pg[7] = 7;
960 bp->dcbx_config_params.admin_pfc_bitmap = 0x8; /* FCoE(3) enable */ 960 bp->dcbx_config_params.admin_pfc_bitmap = 0x0;
961 bp->dcbx_config_params.admin_priority_app_table[0].valid = 1; 961 bp->dcbx_config_params.admin_priority_app_table[0].valid = 0;
962 bp->dcbx_config_params.admin_priority_app_table[1].valid = 1; 962 bp->dcbx_config_params.admin_priority_app_table[1].valid = 0;
963 bp->dcbx_config_params.admin_priority_app_table[2].valid = 0; 963 bp->dcbx_config_params.admin_priority_app_table[2].valid = 0;
964 bp->dcbx_config_params.admin_priority_app_table[3].valid = 0; 964 bp->dcbx_config_params.admin_priority_app_table[3].valid = 0;
965 bp->dcbx_config_params.admin_priority_app_table[0].priority = 3; 965 bp->dcbx_config_params.admin_default_priority = 0;
966 bp->dcbx_config_params.admin_priority_app_table[1].priority = 0;
967 bp->dcbx_config_params.admin_priority_app_table[2].priority = 0;
968 bp->dcbx_config_params.admin_priority_app_table[3].priority = 0;
969 bp->dcbx_config_params.admin_priority_app_table[0].traffic_type = 0;
970 bp->dcbx_config_params.admin_priority_app_table[1].traffic_type = 1;
971 bp->dcbx_config_params.admin_priority_app_table[2].traffic_type = 0;
972 bp->dcbx_config_params.admin_priority_app_table[3].traffic_type = 0;
973 bp->dcbx_config_params.admin_priority_app_table[0].app_id = 0x8906;
974 bp->dcbx_config_params.admin_priority_app_table[1].app_id = 3260;
975 bp->dcbx_config_params.admin_priority_app_table[2].app_id = 0;
976 bp->dcbx_config_params.admin_priority_app_table[3].app_id = 0;
977 bp->dcbx_config_params.admin_default_priority =
978 bp->dcbx_config_params.admin_priority_app_table[1].priority;
979} 966}
980 967
981void bnx2x_dcbx_init(struct bnx2x *bp) 968void bnx2x_dcbx_init(struct bnx2x *bp)