Lines Matching refs:tlv

61  * @tlv: IEEE 802.1Qaz ETS CFG TLV
66 static void i40e_parse_ieee_etscfg_tlv(struct i40e_lldp_org_tlv *tlv,
70 u8 *buf = tlv->tlvinfo;
132 * @tlv: IEEE 802.1Qaz ETS REC TLV
137 static void i40e_parse_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv,
140 u8 *buf = tlv->tlvinfo;
187 * @tlv: IEEE 802.1Qaz PFC CFG TLV
192 static void i40e_parse_ieee_pfccfg_tlv(struct i40e_lldp_org_tlv *tlv,
195 u8 *buf = tlv->tlvinfo;
214 * @tlv: IEEE 802.1Qaz APP TLV
219 static void i40e_parse_ieee_app_tlv(struct i40e_lldp_org_tlv *tlv,
228 typelength = I40E_NTOHS(tlv->typelength);
231 buf = tlv->tlvinfo;
234 length -= (sizeof(tlv->ouisubtype) + 1);
268 * @tlv: IEEE 802.1Qaz TLV
274 static void i40e_parse_ieee_tlv(struct i40e_lldp_org_tlv *tlv,
280 ouisubtype = I40E_NTOHL(tlv->ouisubtype);
285 i40e_parse_ieee_etscfg_tlv(tlv, dcbcfg);
288 i40e_parse_ieee_etsrec_tlv(tlv, dcbcfg);
291 i40e_parse_ieee_pfccfg_tlv(tlv, dcbcfg);
294 i40e_parse_ieee_app_tlv(tlv, dcbcfg);
303 * @tlv: CEE DCBX PG CFG TLV
308 static void i40e_parse_cee_pgcfg_tlv(struct i40e_cee_feat_tlv *tlv,
312 u8 *buf = tlv->tlvinfo;
319 if (tlv->en_will_err & I40E_CEE_FEAT_TLV_WILLING_MASK)
362 * @tlv: CEE DCBX PFC CFG TLV
367 static void i40e_parse_cee_pfccfg_tlv(struct i40e_cee_feat_tlv *tlv,
370 u8 *buf = tlv->tlvinfo;
372 if (tlv->en_will_err & I40E_CEE_FEAT_TLV_WILLING_MASK)
386 * @tlv: CEE DCBX APP TLV
391 static void i40e_parse_cee_app_tlv(struct i40e_cee_feat_tlv *tlv,
398 typelength = I40E_NTOHS(tlv->hdr.typelen);
411 app = (struct i40e_cee_app_prio *)(tlv->tlvinfo + offset);
440 * @tlv: CEE DCBX TLV
446 static void i40e_parse_cee_tlv(struct i40e_lldp_org_tlv *tlv,
454 ouisubtype = I40E_NTOHL(tlv->ouisubtype);
461 typelength = I40E_NTOHS(tlv->typelength);
464 len = sizeof(tlv->typelength) + sizeof(ouisubtype) +
470 sub_tlv = (struct i40e_cee_feat_tlv *)((char *)tlv + len);
501 * @tlv: Organization specific TLV
507 static void i40e_parse_org_tlv(struct i40e_lldp_org_tlv *tlv,
513 ouisubtype = I40E_NTOHL(tlv->ouisubtype);
518 i40e_parse_ieee_tlv(tlv, dcbcfg);
521 i40e_parse_cee_tlv(tlv, dcbcfg);
539 struct i40e_lldp_org_tlv *tlv;
550 tlv = (struct i40e_lldp_org_tlv *)lldpmib;
552 typelength = I40E_NTOHS(tlv->typelength);
565 i40e_parse_org_tlv(tlv, dcbcfg);
572 tlv = (struct i40e_lldp_org_tlv *)((char *)tlv +
573 sizeof(tlv->typelength) +
1016 * @tlv: Fill the ETS config data in IEEE format
1021 static void i40e_add_ieee_ets_tlv(struct i40e_lldp_org_tlv *tlv,
1027 u8 *buf = tlv->tlvinfo;
1032 tlv->typelength = I40E_HTONS(typelength);
1036 tlv->ouisubtype = I40E_HTONL(ouisubtype);
1091 * @tlv: Fill ETS Recommended TLV in IEEE format
1096 static void i40e_add_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv,
1102 u8 *buf = tlv->tlvinfo;
1107 tlv->typelength = I40E_HTONS(typelength);
1111 tlv->ouisubtype = I40E_HTONL(ouisubtype);
1155 * @tlv: Fill PFC TLV in IEEE format
1160 static void i40e_add_ieee_pfc_tlv(struct i40e_lldp_org_tlv *tlv,
1163 u8 *buf = tlv->tlvinfo;
1169 tlv->typelength = I40E_HTONS(typelength);
1173 tlv->ouisubtype = I40E_HTONL(ouisubtype);
1193 * @tlv: Fill APP TLV in IEEE format
1198 static void i40e_add_ieee_app_pri_tlv(struct i40e_lldp_org_tlv *tlv,
1203 u8 *buf = tlv->tlvinfo;
1211 tlv->ouisubtype = I40E_HTONL(ouisubtype);
1236 length = sizeof(tlv->ouisubtype) + 1 + (i*3);
1239 tlv->typelength = I40E_HTONS(typelength);
1244 * @tlv: pointer to org tlv
1246 * add tlv information
1248 static void i40e_add_dcb_tlv(struct i40e_lldp_org_tlv *tlv,
1254 i40e_add_ieee_ets_tlv(tlv, dcbcfg);
1257 i40e_add_ieee_etsrec_tlv(tlv, dcbcfg);
1260 i40e_add_ieee_pfc_tlv(tlv, dcbcfg);
1263 i40e_add_ieee_app_pri_tlv(tlv, dcbcfg);
1317 struct i40e_lldp_org_tlv *tlv;
1320 tlv = (struct i40e_lldp_org_tlv *)lldpmib;
1322 i40e_add_dcb_tlv(tlv, dcbcfg, tlvid++);
1323 typelength = I40E_NTOHS(tlv->typelength);
1334 tlv = (struct i40e_lldp_org_tlv *)((char *)tlv +
1335 sizeof(tlv->typelength) + length);