Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/i40e_dcb.c
Show First 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | while (offset < length) { | ||||
if (i >= I40E_DCBX_MAX_APPS) | if (i >= I40E_DCBX_MAX_APPS) | ||||
break; | break; | ||||
} | } | ||||
dcbcfg->numapps = i; | dcbcfg->numapps = i; | ||||
} | } | ||||
/** | /** | ||||
* i40e_parse_ieee_etsrec_tlv | * i40e_parse_ieee_tlv | ||||
* @tlv: IEEE 802.1Qaz TLV | * @tlv: IEEE 802.1Qaz TLV | ||||
* @dcbcfg: Local store to update ETS REC data | * @dcbcfg: Local store to update ETS REC data | ||||
* | * | ||||
* Get the TLV subtype and send it to parsing function | * Get the TLV subtype and send it to parsing function | ||||
* based on the subtype value | * based on the subtype value | ||||
**/ | **/ | ||||
static void i40e_parse_ieee_tlv(struct i40e_lldp_org_tlv *tlv, | static void i40e_parse_ieee_tlv(struct i40e_lldp_org_tlv *tlv, | ||||
struct i40e_dcbx_config *dcbcfg) | struct i40e_dcbx_config *dcbcfg) | ||||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | static void i40e_parse_cee_pgcfg_tlv(struct i40e_cee_feat_tlv *tlv, | ||||
} | } | ||||
/* PG Percentage Table (8 octets) | /* PG Percentage Table (8 octets) | ||||
* Octets:| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | | * Octets:| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | | ||||
* --------------------------------- | * --------------------------------- | ||||
* |pg0|pg1|pg2|pg3|pg4|pg5|pg6|pg7| | * |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++]; | 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) */ | /* Number of TCs supported (1 octet) */ | ||||
etscfg->maxtcs = buf[offset]; | etscfg->maxtcs = buf[offset]; | ||||
} | } | ||||
/** | /** | ||||
* i40e_parse_cee_pfccfg_tlv | * i40e_parse_cee_pfccfg_tlv | ||||
* @tlv: CEE DCBX PFC CFG TLV | * @tlv: CEE DCBX PFC CFG TLV | ||||
▲ Show 20 Lines • Show All 1,085 Lines • Show Last 20 Lines |