Signed-off-by: Sudarsana Reddy Kalluru <sudarsana.kall...@cavium.com>
Signed-off-by: Yuval Mintz <yuval.mi...@cavium.com>
---
 drivers/net/ethernet/qlogic/qed/qed_dcbx.c | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/drivers/net/ethernet/qlogic/qed/qed_dcbx.c 
b/drivers/net/ethernet/qlogic/qed/qed_dcbx.c
index d868b7e..507b79d 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_dcbx.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_dcbx.c
@@ -556,8 +556,9 @@ static int qed_dcbx_process_mib_info(struct qed_hwfn 
*p_hwfn)
        p_params->pfc.prio[7] = !!(pfc_map & DCBX_PFC_PRI_EN_BITMAP_PRI_7);
 
        DP_VERBOSE(p_hwfn, QED_MSG_DCB,
-                  "PFC params: willing %d, pfc_bitmap %d\n",
-                  p_params->pfc.willing, pfc_map);
+                  "PFC params: willing %d, pfc_bitmap %u max_tc = %u enabled = 
%d\n",
+                  p_params->pfc.willing, pfc_map, p_params->pfc.max_tc,
+                  p_params->pfc.enabled);
 }
 
 static void
@@ -576,10 +577,10 @@ static int qed_dcbx_process_mib_info(struct qed_hwfn 
*p_hwfn)
        p_params->max_ets_tc = QED_MFW_GET_FIELD(p_ets->flags,
                                                 DCBX_ETS_MAX_TCS);
        DP_VERBOSE(p_hwfn, QED_MSG_DCB,
-                  "ETS params: willing %d, ets_cbs %d pri_tc_tbl_0 %x 
max_ets_tc %d\n",
-                  p_params->ets_willing,
-                  p_params->ets_cbs,
-                  p_ets->pri_tc_tbl[0], p_params->max_ets_tc);
+                  "ETS params: willing %d, enabled = %d ets_cbs %d 
pri_tc_tbl_0 %x max_ets_tc %d\n",
+                  p_params->ets_willing, p_params->ets_enabled,
+                  p_params->ets_cbs, p_ets->pri_tc_tbl[0],
+                  p_params->max_ets_tc);
 
        /* 8 bit tsa and bw data corresponding to each of the 8 TC's are
         * encoded in a type u32 array of size 2.
@@ -658,6 +659,7 @@ static int qed_dcbx_process_mib_info(struct qed_hwfn 
*p_hwfn)
        if (!enabled) {
                p_operational->enabled = enabled;
                p_operational->valid = false;
+               DP_VERBOSE(p_hwfn, QED_MSG_DCB, "Dcbx is disabled\n");
                return;
        }
 
@@ -1145,6 +1147,9 @@ static int qed_dcbx_query_params(struct qed_hwfn *p_hwfn,
                local_admin->config = DCBX_CONFIG_VERSION_DISABLED;
        }
 
+       DP_VERBOSE(p_hwfn, QED_MSG_DCB, "Dcbx version = %d\n",
+                  local_admin->config);
+
        if (params->override_flags & QED_DCBX_OVERRIDE_PFC_CFG)
                qed_dcbx_set_pfc_data(p_hwfn, &local_admin->features.pfc,
                                      &params->config.params);
-- 
1.8.3.1

Reply via email to