Skip to content

Commit dfbeb85

Browse files
sudarsana.kalluru@cavium.comdavem330
authored andcommitted
qed: Add additional DCBx debug messages.
Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com> Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 449ad50 commit dfbeb85

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

drivers/net/ethernet/qlogic/qed/qed_dcbx.c

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,9 @@ qed_dcbx_get_pfc_data(struct qed_hwfn *p_hwfn,
556556
p_params->pfc.prio[7] = !!(pfc_map & DCBX_PFC_PRI_EN_BITMAP_PRI_7);
557557

558558
DP_VERBOSE(p_hwfn, QED_MSG_DCB,
559-
"PFC params: willing %d, pfc_bitmap %d\n",
560-
p_params->pfc.willing, pfc_map);
559+
"PFC params: willing %d, pfc_bitmap %u max_tc = %u enabled = %d\n",
560+
p_params->pfc.willing, pfc_map, p_params->pfc.max_tc,
561+
p_params->pfc.enabled);
561562
}
562563

563564
static void
@@ -576,10 +577,10 @@ qed_dcbx_get_ets_data(struct qed_hwfn *p_hwfn,
576577
p_params->max_ets_tc = QED_MFW_GET_FIELD(p_ets->flags,
577578
DCBX_ETS_MAX_TCS);
578579
DP_VERBOSE(p_hwfn, QED_MSG_DCB,
579-
"ETS params: willing %d, ets_cbs %d pri_tc_tbl_0 %x max_ets_tc %d\n",
580-
p_params->ets_willing,
581-
p_params->ets_cbs,
582-
p_ets->pri_tc_tbl[0], p_params->max_ets_tc);
580+
"ETS params: willing %d, enabled = %d ets_cbs %d pri_tc_tbl_0 %x max_ets_tc %d\n",
581+
p_params->ets_willing, p_params->ets_enabled,
582+
p_params->ets_cbs, p_ets->pri_tc_tbl[0],
583+
p_params->max_ets_tc);
583584

584585
if (p_params->ets_enabled && !p_params->max_ets_tc) {
585586
p_params->max_ets_tc = QED_MAX_PFC_PRIORITIES;
@@ -665,6 +666,7 @@ qed_dcbx_get_operational_params(struct qed_hwfn *p_hwfn,
665666
if (!enabled) {
666667
p_operational->enabled = enabled;
667668
p_operational->valid = false;
669+
DP_VERBOSE(p_hwfn, QED_MSG_DCB, "Dcbx is disabled\n");
668670
return;
669671
}
670672

@@ -1154,6 +1156,9 @@ qed_dcbx_set_local_params(struct qed_hwfn *p_hwfn,
11541156
local_admin->config = DCBX_CONFIG_VERSION_DISABLED;
11551157
}
11561158

1159+
DP_VERBOSE(p_hwfn, QED_MSG_DCB, "Dcbx version = %d\n",
1160+
local_admin->config);
1161+
11571162
if (params->override_flags & QED_DCBX_OVERRIDE_PFC_CFG)
11581163
qed_dcbx_set_pfc_data(p_hwfn, &local_admin->features.pfc,
11591164
&params->config.params);

0 commit comments

Comments
 (0)