Lines Matching refs:tlv

122  * (Add tlv)
129 * (Delete tlv)
336 * @tlv: IEEE 802.1Qaz ETS CFG TLV
342 ice_parse_ieee_etscfg_tlv(struct ice_lldp_org_tlv *tlv,
346 u8 *buf = tlv->tlvinfo;
368 * @tlv: IEEE 802.1Qaz ETS REC TLV
374 ice_parse_ieee_etsrec_tlv(struct ice_lldp_org_tlv *tlv,
377 u8 *buf = tlv->tlvinfo;
385 * @tlv: IEEE 802.1Qaz PFC CFG TLV
391 ice_parse_ieee_pfccfg_tlv(struct ice_lldp_org_tlv *tlv,
394 u8 *buf = tlv->tlvinfo;
412 * @tlv: IEEE 802.1Qaz APP TLV
418 ice_parse_ieee_app_tlv(struct ice_lldp_org_tlv *tlv,
427 typelen = NTOHS(tlv->typelen);
429 buf = tlv->tlvinfo;
434 len -= (sizeof(tlv->ouisubtype) + 1);
468 * @tlv: IEEE 802.1Qaz TLV
475 ice_parse_ieee_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
480 ouisubtype = NTOHL(tlv->ouisubtype);
485 ice_parse_ieee_etscfg_tlv(tlv, dcbcfg);
488 ice_parse_ieee_etsrec_tlv(tlv, dcbcfg);
491 ice_parse_ieee_pfccfg_tlv(tlv, dcbcfg);
494 ice_parse_ieee_app_tlv(tlv, dcbcfg);
503 * @tlv: CEE DCBX PG CFG TLV
509 ice_parse_cee_pgcfg_tlv(struct ice_cee_feat_tlv *tlv,
513 u8 *buf = tlv->tlvinfo;
519 if (tlv->en_will_err & ICE_CEE_FEAT_TLV_WILLING_M)
562 * @tlv: CEE DCBX PFC CFG TLV
568 ice_parse_cee_pfccfg_tlv(struct ice_cee_feat_tlv *tlv,
571 u8 *buf = tlv->tlvinfo;
573 if (tlv->en_will_err & ICE_CEE_FEAT_TLV_WILLING_M)
587 * @tlv: CEE DCBX APP TLV
593 ice_parse_cee_app_tlv(struct ice_cee_feat_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
599 typelen = NTOHS(tlv->hdr.typelen);
611 app = (struct ice_cee_app_prio *)(tlv->tlvinfo + offset);
640 * @tlv: CEE DCBX TLV
647 ice_parse_cee_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
654 ouisubtype = NTOHL(tlv->ouisubtype);
661 typelen = NTOHS(tlv->typelen);
663 len = sizeof(tlv->typelen) + sizeof(ouisubtype) +
669 sub_tlv = (struct ice_cee_feat_tlv *)((char *)tlv + len);
700 * @tlv: Organization specific TLV
707 ice_parse_org_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
712 ouisubtype = NTOHL(tlv->ouisubtype);
716 ice_parse_ieee_tlv(tlv, dcbcfg);
719 ice_parse_cee_tlv(tlv, dcbcfg);
735 struct ice_lldp_org_tlv *tlv;
747 tlv = (struct ice_lldp_org_tlv *)lldpmib;
749 typelen = NTOHS(tlv->typelen);
760 ice_parse_org_tlv(tlv, dcbcfg);
767 tlv = (struct ice_lldp_org_tlv *)
768 ((char *)tlv + sizeof(tlv->typelen) + len);
1350 * @tlv: Fill the ETS config data in IEEE format
1356 ice_add_ieee_ets_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
1359 u8 *buf = tlv->tlvinfo;
1366 tlv->typelen = HTONS(typelen);
1370 tlv->ouisubtype = HTONL(ouisubtype);
1391 * @tlv: Fill ETS Recommended TLV in IEEE format
1397 ice_add_ieee_etsrec_tlv(struct ice_lldp_org_tlv *tlv,
1401 u8 *buf = tlv->tlvinfo;
1407 tlv->typelen = HTONS(typelen);
1411 tlv->ouisubtype = HTONL(ouisubtype);
1422 * @tlv: Fill PFC TLV in IEEE format
1428 ice_add_ieee_pfc_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
1430 u8 *buf = tlv->tlvinfo;
1436 tlv->typelen = HTONS(typelen);
1440 tlv->ouisubtype = HTONL(ouisubtype);
1460 * @tlv: Fill APP TLV in IEEE format
1466 ice_add_ieee_app_pri_tlv(struct ice_lldp_org_tlv *tlv,
1471 u8 *buf = tlv->tlvinfo;
1479 tlv->ouisubtype = HTONL(ouisubtype);
1504 len = sizeof(tlv->ouisubtype) + 1 + (i * 3);
1506 tlv->typelen = HTONS(typelen);
1511 * @tlv: location to build the TLV data
1515 ice_add_dscp_up_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
1517 u8 *buf = tlv->tlvinfo;
1524 tlv->typelen = HTONS(typelen);
1528 tlv->ouisubtype = HTONL(ouisubtype);
1548 * @tlv: location to build the TLV data
1551 ice_add_dscp_enf_tlv(struct ice_lldp_org_tlv *tlv)
1553 u8 *buf = tlv->tlvinfo;
1559 tlv->typelen = HTONS(typelen);
1563 tlv->ouisubtype = HTONL(ouisubtype);
1571 * @tlv: location to build the TLV data
1575 ice_add_dscp_tc_bw_tlv(struct ice_lldp_org_tlv *tlv,
1579 u8 *buf = tlv->tlvinfo;
1587 tlv->typelen = HTONS(typelen);
1591 tlv->ouisubtype = HTONL(ouisubtype);
1620 * @tlv: Fill PFC TLV in IEEE format
1624 ice_add_dscp_pfc_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
1626 u8 *buf = tlv->tlvinfo;
1632 tlv->typelen = HTONS(typelen);
1636 tlv->ouisubtype = HTONL(ouisubtype);
1644 * @tlv: Fill TLV data in IEEE format
1648 * Add tlv information
1651 ice_add_dcb_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg,
1657 ice_add_ieee_ets_tlv(tlv, dcbcfg);
1660 ice_add_ieee_etsrec_tlv(tlv, dcbcfg);
1663 ice_add_ieee_pfc_tlv(tlv, dcbcfg);
1666 ice_add_ieee_app_pri_tlv(tlv, dcbcfg);
1675 ice_add_dscp_up_tlv(tlv, dcbcfg);
1678 ice_add_dscp_enf_tlv(tlv);
1681 ice_add_dscp_tc_bw_tlv(tlv, dcbcfg);
1684 ice_add_dscp_pfc_tlv(tlv, dcbcfg);
1703 struct ice_lldp_org_tlv *tlv;
1706 tlv = (struct ice_lldp_org_tlv *)lldpmib;
1708 ice_add_dcb_tlv(tlv, dcbcfg, tlvid++);
1709 typelen = NTOHS(tlv->typelen);
1719 tlv = (struct ice_lldp_org_tlv *)
1720 ((char *)tlv + sizeof(tlv->typelen) + len);