src/dpdk/drivers/net/ice/base/ice_dcb.c
static void
ice_add_dcb_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg,
		u16 tlvid)
{
	switch (tlvid) {
	case ICE_IEEE_TLV_ID_ETS_CFG:
		ice_add_ieee_ets_tlv(tlv, dcbcfg);
		break;
	case ICE_IEEE_TLV_ID_ETS_REC:
		ice_add_ieee_etsrec_tlv(tlv, dcbcfg);
		break;
	case ICE_IEEE_TLV_ID_PFC_CFG:
		ice_add_ieee_pfc_tlv(tlv, dcbcfg);
		break;
	case ICE_IEEE_TLV_ID_APP_PRI:
		ice_add_ieee_app_pri_tlv(tlv, dcbcfg);
		break;
	default:
		break;
	}
}
/**
 * ice_add_dcb_tlv - Add all IEEE TLVs
 * @tlv: Fill TLV data in IEEE format
 * @dcbcfg: Local store which holds the DCB Config
 * @tlvid: Type of IEEE TLV
 *
 * Add tlv information
 */
Add all IEEE TLVs
@tlv: Fill TLV data in IEEE format
@dcbcfg: Local store which holds the DCB Config
@tlvid: Type of IEEE TLV

Add tlv information
Add all IEEE TLVs @tlv : Fill TLV data in IEEE format @dcbcfg : Local store which holds the DCB Config @tlvid : Type of IEEE TLV Add tlv information
static void
ice_add_dcb_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg,
		u16 tlvid)
{
	switch (tlvid) {
	case ICE_IEEE_TLV_ID_ETS_CFG:
		ice_add_ieee_ets_tlv(tlv, dcbcfg);
		break;
	case ICE_IEEE_TLV_ID_ETS_REC:
		ice_add_ieee_etsrec_tlv(tlv, dcbcfg);
		break;
	case ICE_IEEE_TLV_ID_PFC_CFG:
		ice_add_ieee_pfc_tlv(tlv, dcbcfg);
		break;
	case ICE_IEEE_TLV_ID_APP_PRI:
		ice_add_ieee_app_pri_tlv(tlv, dcbcfg);
		break;
	default:
		break;
	}
}
static void ice_add_dcb_tlv ( struct ice_lldp_org_tlv * tlv , struct ice_dcbx_cfg * dcbcfg , u16 tlvid ) { switch ( tlvid ) { case ICE_IEEE_TLV_ID_ETS_CFG : ice_add_ieee_ets_tlv ( tlv , dcbcfg ) ; break ; case ICE_IEEE_TLV_ID_ETS_REC : ice_add_ieee_etsrec_tlv ( tlv , dcbcfg ) ; break ; case ICE_IEEE_TLV_ID_PFC_CFG : ice_add_ieee_pfc_tlv ( tlv , dcbcfg ) ; break ; case ICE_IEEE_TLV_ID_APP_PRI : ice_add_ieee_app_pri_tlv ( tlv , dcbcfg ) ; break ; default : break ; } }
ice_add_dcb_tlv - Add all IEEE TLVs
 @tlv: Fill TLV data in IEEE format
 @dcbcfg: Local store which holds the DCB Config
 @tlvid: Type of IEEE TLV
ice_add_dcb_tlv - Add all IEEE TLVs @tlv : Fill TLV data in IEEE format @dcbcfg : Local store which holds the DCB Config @tlvid : Type of IEEE TLV