Lines Matching refs:tlv

32  * @tlv: IEEE 802.1Qaz ETS CFG TLV
37 static void i40e_parse_ieee_etscfg_tlv(struct i40e_lldp_org_tlv *tlv,
41 u8 *buf = tlv->tlvinfo;
98 * @tlv: IEEE 802.1Qaz ETS REC TLV
103 static void i40e_parse_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv,
106 u8 *buf = tlv->tlvinfo;
151 * @tlv: IEEE 802.1Qaz PFC CFG TLV
156 static void i40e_parse_ieee_pfccfg_tlv(struct i40e_lldp_org_tlv *tlv,
159 u8 *buf = tlv->tlvinfo;
175 * @tlv: IEEE 802.1Qaz APP TLV
180 static void i40e_parse_ieee_app_tlv(struct i40e_lldp_org_tlv *tlv,
189 typelength = ntohs(tlv->typelength);
191 buf = tlv->tlvinfo;
194 length -= (sizeof(tlv->ouisubtype) + 1);
226 * @tlv: IEEE 802.1Qaz TLV
232 static void i40e_parse_ieee_tlv(struct i40e_lldp_org_tlv *tlv,
238 ouisubtype = ntohl(tlv->ouisubtype);
242 i40e_parse_ieee_etscfg_tlv(tlv, dcbcfg);
245 i40e_parse_ieee_etsrec_tlv(tlv, dcbcfg);
248 i40e_parse_ieee_pfccfg_tlv(tlv, dcbcfg);
251 i40e_parse_ieee_app_tlv(tlv, dcbcfg);
260 * @tlv: CEE DCBX PG CFG TLV
265 static void i40e_parse_cee_pgcfg_tlv(struct i40e_cee_feat_tlv *tlv,
269 u8 *buf = tlv->tlvinfo;
276 if (tlv->en_will_err & I40E_CEE_FEAT_TLV_WILLING_MASK)
311 * @tlv: CEE DCBX PFC CFG TLV
316 static void i40e_parse_cee_pfccfg_tlv(struct i40e_cee_feat_tlv *tlv,
319 u8 *buf = tlv->tlvinfo;
321 if (tlv->en_will_err & I40E_CEE_FEAT_TLV_WILLING_MASK)
335 * @tlv: CEE DCBX APP TLV
340 static void i40e_parse_cee_app_tlv(struct i40e_cee_feat_tlv *tlv,
347 typelength = ntohs(tlv->hdr.typelen);
360 app = (struct i40e_cee_app_prio *)(tlv->tlvinfo + offset);
389 * @tlv: CEE DCBX TLV
395 static void i40e_parse_cee_tlv(struct i40e_lldp_org_tlv *tlv,
403 ouisubtype = ntohl(tlv->ouisubtype);
409 typelength = ntohs(tlv->typelength);
411 len = sizeof(tlv->typelength) + sizeof(ouisubtype) +
417 sub_tlv = (struct i40e_cee_feat_tlv *)((char *)tlv + len);
445 * @tlv: Organization specific TLV
451 static void i40e_parse_org_tlv(struct i40e_lldp_org_tlv *tlv,
457 ouisubtype = ntohl(tlv->ouisubtype);
461 i40e_parse_ieee_tlv(tlv, dcbcfg);
464 i40e_parse_cee_tlv(tlv, dcbcfg);
481 struct i40e_lldp_org_tlv *tlv;
493 tlv = (struct i40e_lldp_org_tlv *)lldpmib;
495 typelength = ntohs(tlv->typelength);
506 i40e_parse_org_tlv(tlv, dcbcfg);
513 tlv = (struct i40e_lldp_org_tlv *)((char *)tlv +
514 sizeof(tlv->typelength) +
943 * @tlv: Fill the ETS config data in IEEE format
948 static void i40e_add_ieee_ets_tlv(struct i40e_lldp_org_tlv *tlv,
954 u8 *buf = tlv->tlvinfo;
959 tlv->typelength = htons(typelength);
963 tlv->ouisubtype = htonl(ouisubtype);
1018 * @tlv: Fill ETS Recommended TLV in IEEE format
1023 static void i40e_add_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv,
1029 u8 *buf = tlv->tlvinfo;
1034 tlv->typelength = htons(typelength);
1038 tlv->ouisubtype = htonl(ouisubtype);
1082 * @tlv: Fill PFC TLV in IEEE format
1087 static void i40e_add_ieee_pfc_tlv(struct i40e_lldp_org_tlv *tlv,
1090 u8 *buf = tlv->tlvinfo;
1096 tlv->typelength = htons(typelength);
1100 tlv->ouisubtype = htonl(ouisubtype);
1120 * @tlv: Fill APP TLV in IEEE format
1125 static void i40e_add_ieee_app_pri_tlv(struct i40e_lldp_org_tlv *tlv,
1130 u8 *buf = tlv->tlvinfo;
1138 tlv->ouisubtype = htonl(ouisubtype);
1163 length = sizeof(tlv->ouisubtype) + 1 + (i * 3);
1166 tlv->typelength = htons(typelength);
1171 * @tlv: pointer to org tlv
1173 * @tlvid: tlv id to be added
1174 * add tlv information
1176 static void i40e_add_dcb_tlv(struct i40e_lldp_org_tlv *tlv,
1182 i40e_add_ieee_ets_tlv(tlv, dcbcfg);
1185 i40e_add_ieee_etsrec_tlv(tlv, dcbcfg);
1188 i40e_add_ieee_pfc_tlv(tlv, dcbcfg);
1191 i40e_add_ieee_app_pri_tlv(tlv, dcbcfg);
1244 struct i40e_lldp_org_tlv *tlv;
1246 tlv = (struct i40e_lldp_org_tlv *)lldpmib;
1249 i40e_add_dcb_tlv(tlv, dcbcfg, tlvid++);
1250 typelength = ntohs(tlv->typelength);
1260 tlv = (struct i40e_lldp_org_tlv *)((char *)tlv +
1261 sizeof(tlv->typelength) + length);