aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ixl/i40e_dcb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ixl/i40e_dcb.c')
-rw-r--r--sys/dev/ixl/i40e_dcb.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/ixl/i40e_dcb.c b/sys/dev/ixl/i40e_dcb.c
index b2f0b5c0acad..a02cbc80d361 100644
--- a/sys/dev/ixl/i40e_dcb.c
+++ b/sys/dev/ixl/i40e_dcb.c
@@ -265,7 +265,7 @@ static void i40e_parse_ieee_app_tlv(struct i40e_lldp_org_tlv *tlv,
}
/**
- * i40e_parse_ieee_etsrec_tlv
+ * i40e_parse_ieee_tlv
* @tlv: IEEE 802.1Qaz TLV
* @dcbcfg: Local store to update ETS REC data
*
@@ -345,9 +345,15 @@ static void i40e_parse_cee_pgcfg_tlv(struct i40e_cee_feat_tlv *tlv,
* |pg0|pg1|pg2|pg3|pg4|pg5|pg6|pg7|
* ---------------------------------
*/
- for (i = 0; i < I40E_MAX_TRAFFIC_CLASS; i++)
+ for (i = 0; i < I40E_MAX_TRAFFIC_CLASS; i++) {
etscfg->tcbwtable[i] = buf[offset++];
+ if (etscfg->prioritytable[i] == I40E_CEE_PGID_STRICT)
+ dcbcfg->etscfg.tsatable[i] = I40E_IEEE_TSA_STRICT;
+ else
+ dcbcfg->etscfg.tsatable[i] = I40E_IEEE_TSA_ETS;
+ }
+
/* Number of TCs supported (1 octet) */
etscfg->maxtcs = buf[offset];
}