src/dpdk/drivers/net/ice/base/ice_dcb.c
static void
ice_parse_ieee_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
{
	u32 ouisubtype;
	u8 subtype;

	ouisubtype = NTOHL(tlv->ouisubtype);
	subtype = (u8)((ouisubtype & ICE_LLDP_TLV_SUBTYPE_M) >>
		       ICE_LLDP_TLV_SUBTYPE_S);
	switch (subtype) {
	case ICE_IEEE_SUBTYPE_ETS_CFG:
		ice_parse_ieee_etscfg_tlv(tlv, dcbcfg);
		break;
	case ICE_IEEE_SUBTYPE_ETS_REC:
		ice_parse_ieee_etsrec_tlv(tlv, dcbcfg);
		break;
	case ICE_IEEE_SUBTYPE_PFC_CFG:
		ice_parse_ieee_pfccfg_tlv(tlv, dcbcfg);
		break;
	case ICE_IEEE_SUBTYPE_APP_PRI:
		ice_parse_ieee_app_tlv(tlv, dcbcfg);
		break;
	default:
		break;
	}
}
/**
 * ice_parse_ieee_tlv
 * @tlv: IEEE 802.1Qaz TLV
 * @dcbcfg: Local store to update ETS REC data
 *
 * Get the TLV subtype and send it to parsing function
 * based on the subtype value
 */


Get the TLV subtype and send it to parsing function
based on the subtype value
Get the TLV subtype and send it to parsing function based on the subtype value
static void
ice_parse_ieee_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
{
	u32 ouisubtype;
	u8 subtype;
	ouisubtype = NTOHL(tlv->ouisubtype);
	subtype = (u8)((ouisubtype & ICE_LLDP_TLV_SUBTYPE_M) >>
		       ICE_LLDP_TLV_SUBTYPE_S);
	switch (subtype) {
	case ICE_IEEE_SUBTYPE_ETS_CFG:
		ice_parse_ieee_etscfg_tlv(tlv, dcbcfg);
		break;
	case ICE_IEEE_SUBTYPE_ETS_REC:
		ice_parse_ieee_etsrec_tlv(tlv, dcbcfg);
		break;
	case ICE_IEEE_SUBTYPE_PFC_CFG:
		ice_parse_ieee_pfccfg_tlv(tlv, dcbcfg);
		break;
	case ICE_IEEE_SUBTYPE_APP_PRI:
		ice_parse_ieee_app_tlv(tlv, dcbcfg);
		break;
	default:
		break;
	}
}
static void ice_parse_ieee_tlv ( struct ice_lldp_org_tlv * tlv , struct ice_dcbx_cfg * dcbcfg ) { u32 ouisubtype ; u8 subtype ; ouisubtype = NTOHL ( tlv -> ouisubtype ) ; subtype = ( u8 ) ( ( ouisubtype & ICE_LLDP_TLV_SUBTYPE_M ) >> ICE_LLDP_TLV_SUBTYPE_S ) ; switch ( subtype ) { case ICE_IEEE_SUBTYPE_ETS_CFG : ice_parse_ieee_etscfg_tlv ( tlv , dcbcfg ) ; break ; case ICE_IEEE_SUBTYPE_ETS_REC : ice_parse_ieee_etsrec_tlv ( tlv , dcbcfg ) ; break ; case ICE_IEEE_SUBTYPE_PFC_CFG : ice_parse_ieee_pfccfg_tlv ( tlv , dcbcfg ) ; break ; case ICE_IEEE_SUBTYPE_APP_PRI : ice_parse_ieee_app_tlv ( tlv , dcbcfg ) ; break ; default : break ; } }
ice_parse_ieee_tlv
 @tlv: IEEE 802.1Qaz TLV
 @dcbcfg: Local store to update ETS REC data
ice_parse_ieee_tlv @tlv : IEEE 802 . 1Qaz TLV @dcbcfg : Local store to update ETS REC data