src/dpdk/drivers/net/ice/base/ice_dcb.c
static void
ice_parse_cee_pfccfg_tlv(struct ice_cee_feat_tlv *tlv,
			 struct ice_dcbx_cfg *dcbcfg)
{
	u8 *buf = tlv->tlvinfo;

	if (tlv->en_will_err & ICE_CEE_FEAT_TLV_WILLING_M)
		dcbcfg->pfc.willing = 1;

	/* ------------------------
	 * | PFC Enable | PFC TCs |
	 * ------------------------
	 * | 1 octet    | 1 octet |
	 */
	dcbcfg->pfc.pfcena = buf[0];
	dcbcfg->pfc.pfccap = buf[1];
}
/**
 * ice_parse_cee_pfccfg_tlv
 * @tlv: CEE DCBX PFC CFG TLV
 * @dcbcfg: Local store to update PFC CFG data
 *
 * Parses CEE DCBX PFC CFG TLV
 */


Parses CEE DCBX PFC CFG TLV
Parses CEE DCBX PFC CFG TLV
static void
ice_parse_cee_pfccfg_tlv(struct ice_cee_feat_tlv *tlv,
			 struct ice_dcbx_cfg *dcbcfg)
{
	u8 *buf = tlv->tlvinfo;
	if (tlv->en_will_err & ICE_CEE_FEAT_TLV_WILLING_M)
		dcbcfg->pfc.willing = 1;
	dcbcfg->pfc.pfcena = buf[0];
	dcbcfg->pfc.pfccap = buf[1];
}
static void ice_parse_cee_pfccfg_tlv ( struct ice_cee_feat_tlv * tlv , struct ice_dcbx_cfg * dcbcfg ) { u8 * buf = tlv -> tlvinfo ; if ( tlv -> en_will_err & ICE_CEE_FEAT_TLV_WILLING_M ) dcbcfg -> pfc . willing = 1 ; dcbcfg -> pfc . pfcena = buf [ 0 ] ; dcbcfg -> pfc . pfccap = buf [ 1 ] ; }
ice_parse_cee_pfccfg_tlv
 @tlv: CEE DCBX PFC CFG TLV
 @dcbcfg: Local store to update PFC CFG data
ice_parse_cee_pfccfg_tlv @tlv : CEE DCBX PFC CFG TLV @dcbcfg : Local store to update PFC CFG data
/* ------------------------
	 * | PFC Enable | PFC TCs |
	 * ------------------------
	 * | 1 octet    | 1 octet |
	 */