Lines Matching refs:tlv

66 static void i40e_parse_ieee_etscfg_tlv(struct i40e_lldp_org_tlv *tlv,  in i40e_parse_ieee_etscfg_tlv()  argument
70 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_etscfg_tlv()
137 static void i40e_parse_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_etsrec_tlv() argument
140 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_etsrec_tlv()
192 static void i40e_parse_ieee_pfccfg_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_pfccfg_tlv() argument
195 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_pfccfg_tlv()
219 static void i40e_parse_ieee_app_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_app_tlv() argument
228 typelength = I40E_NTOHS(tlv->typelength); in i40e_parse_ieee_app_tlv()
231 buf = tlv->tlvinfo; in i40e_parse_ieee_app_tlv()
234 length -= (sizeof(tlv->ouisubtype) + 1); in i40e_parse_ieee_app_tlv()
274 static void i40e_parse_ieee_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_tlv() argument
280 ouisubtype = I40E_NTOHL(tlv->ouisubtype); in i40e_parse_ieee_tlv()
285 i40e_parse_ieee_etscfg_tlv(tlv, dcbcfg); in i40e_parse_ieee_tlv()
288 i40e_parse_ieee_etsrec_tlv(tlv, dcbcfg); in i40e_parse_ieee_tlv()
291 i40e_parse_ieee_pfccfg_tlv(tlv, dcbcfg); in i40e_parse_ieee_tlv()
294 i40e_parse_ieee_app_tlv(tlv, dcbcfg); in i40e_parse_ieee_tlv()
308 static void i40e_parse_cee_pgcfg_tlv(struct i40e_cee_feat_tlv *tlv, in i40e_parse_cee_pgcfg_tlv() argument
312 u8 *buf = tlv->tlvinfo; in i40e_parse_cee_pgcfg_tlv()
319 if (tlv->en_will_err & I40E_CEE_FEAT_TLV_WILLING_MASK) in i40e_parse_cee_pgcfg_tlv()
367 static void i40e_parse_cee_pfccfg_tlv(struct i40e_cee_feat_tlv *tlv, in i40e_parse_cee_pfccfg_tlv() argument
370 u8 *buf = tlv->tlvinfo; in i40e_parse_cee_pfccfg_tlv()
372 if (tlv->en_will_err & I40E_CEE_FEAT_TLV_WILLING_MASK) in i40e_parse_cee_pfccfg_tlv()
391 static void i40e_parse_cee_app_tlv(struct i40e_cee_feat_tlv *tlv, in i40e_parse_cee_app_tlv() argument
398 typelength = I40E_NTOHS(tlv->hdr.typelen); in i40e_parse_cee_app_tlv()
411 app = (struct i40e_cee_app_prio *)(tlv->tlvinfo + offset); in i40e_parse_cee_app_tlv()
446 static void i40e_parse_cee_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_cee_tlv() argument
454 ouisubtype = I40E_NTOHL(tlv->ouisubtype); in i40e_parse_cee_tlv()
461 typelength = I40E_NTOHS(tlv->typelength); in i40e_parse_cee_tlv()
464 len = sizeof(tlv->typelength) + sizeof(ouisubtype) + in i40e_parse_cee_tlv()
470 sub_tlv = (struct i40e_cee_feat_tlv *)((char *)tlv + len); in i40e_parse_cee_tlv()
507 static void i40e_parse_org_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_org_tlv() argument
513 ouisubtype = I40E_NTOHL(tlv->ouisubtype); in i40e_parse_org_tlv()
518 i40e_parse_ieee_tlv(tlv, dcbcfg); in i40e_parse_org_tlv()
521 i40e_parse_cee_tlv(tlv, dcbcfg); in i40e_parse_org_tlv()
539 struct i40e_lldp_org_tlv *tlv; in i40e_lldp_to_dcb_config() local
550 tlv = (struct i40e_lldp_org_tlv *)lldpmib; in i40e_lldp_to_dcb_config()
552 typelength = I40E_NTOHS(tlv->typelength); in i40e_lldp_to_dcb_config()
565 i40e_parse_org_tlv(tlv, dcbcfg); in i40e_lldp_to_dcb_config()
572 tlv = (struct i40e_lldp_org_tlv *)((char *)tlv + in i40e_lldp_to_dcb_config()
573 sizeof(tlv->typelength) + in i40e_lldp_to_dcb_config()
1021 static void i40e_add_ieee_ets_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_add_ieee_ets_tlv() argument
1027 u8 *buf = tlv->tlvinfo; in i40e_add_ieee_ets_tlv()
1032 tlv->typelength = I40E_HTONS(typelength); in i40e_add_ieee_ets_tlv()
1036 tlv->ouisubtype = I40E_HTONL(ouisubtype); in i40e_add_ieee_ets_tlv()
1096 static void i40e_add_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_add_ieee_etsrec_tlv() argument
1102 u8 *buf = tlv->tlvinfo; in i40e_add_ieee_etsrec_tlv()
1107 tlv->typelength = I40E_HTONS(typelength); in i40e_add_ieee_etsrec_tlv()
1111 tlv->ouisubtype = I40E_HTONL(ouisubtype); in i40e_add_ieee_etsrec_tlv()
1160 static void i40e_add_ieee_pfc_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_add_ieee_pfc_tlv() argument
1163 u8 *buf = tlv->tlvinfo; in i40e_add_ieee_pfc_tlv()
1169 tlv->typelength = I40E_HTONS(typelength); in i40e_add_ieee_pfc_tlv()
1173 tlv->ouisubtype = I40E_HTONL(ouisubtype); in i40e_add_ieee_pfc_tlv()
1198 static void i40e_add_ieee_app_pri_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_add_ieee_app_pri_tlv() argument
1203 u8 *buf = tlv->tlvinfo; in i40e_add_ieee_app_pri_tlv()
1211 tlv->ouisubtype = I40E_HTONL(ouisubtype); in i40e_add_ieee_app_pri_tlv()
1236 length = sizeof(tlv->ouisubtype) + 1 + (i*3); in i40e_add_ieee_app_pri_tlv()
1239 tlv->typelength = I40E_HTONS(typelength); in i40e_add_ieee_app_pri_tlv()
1248 static void i40e_add_dcb_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_add_dcb_tlv() argument
1254 i40e_add_ieee_ets_tlv(tlv, dcbcfg); in i40e_add_dcb_tlv()
1257 i40e_add_ieee_etsrec_tlv(tlv, dcbcfg); in i40e_add_dcb_tlv()
1260 i40e_add_ieee_pfc_tlv(tlv, dcbcfg); in i40e_add_dcb_tlv()
1263 i40e_add_ieee_app_pri_tlv(tlv, dcbcfg); in i40e_add_dcb_tlv()
1317 struct i40e_lldp_org_tlv *tlv; in i40e_dcb_config_to_lldp() local
1320 tlv = (struct i40e_lldp_org_tlv *)lldpmib; in i40e_dcb_config_to_lldp()
1322 i40e_add_dcb_tlv(tlv, dcbcfg, tlvid++); in i40e_dcb_config_to_lldp()
1323 typelength = I40E_NTOHS(tlv->typelength); in i40e_dcb_config_to_lldp()
1334 tlv = (struct i40e_lldp_org_tlv *)((char *)tlv + in i40e_dcb_config_to_lldp()
1335 sizeof(tlv->typelength) + length); in i40e_dcb_config_to_lldp()