From: Denis Bolotin
Date: Tue, 31 Jul 2018 10:26:06 +0300
> +int qed_dcbx_get_priority_tc(struct qed_hwfn *p_hwfn, u8 pri, u8 *p_tc)
> +{
> + struct qed_dcbx_get *dcbx_info;
> + int rc;
> +
> + if (pri >= QED_MAX_PFC_PRIORITIES) {
> + DP_ERR(p_hwfn, "Invalid priority %d\n"
The API receives a priority and looks for the TC it is mapped to in the
operational DCBX configuration.
Signed-off-by: Denis Bolotin
Signed-off-by: Ariel Elior
---
drivers/net/ethernet/qlogic/qed/qed_dcbx.c | 27 +++
drivers/net/ethernet/qlogic/qed/qed_dcbx.h | 2 ++
2