Lines Matching refs:lldpmib
728 * @lldpmib: LLDPDU to be parsed
733 int ice_lldp_to_dcb_cfg(u8 *lldpmib, struct ice_dcbx_cfg *dcbcfg)
742 if (!lldpmib || !dcbcfg)
746 lldpmib += ETH_HEADER_LEN;
747 tlv = (struct ice_lldp_org_tlv *)lldpmib;
787 u8 *lldpmib;
791 lldpmib = (u8 *)ice_malloc(hw, ICE_LLDPDU_SIZE);
792 if (!lldpmib)
795 ret = ice_aq_get_lldp_mib(hw, bridgetype, mib_type, (void *)lldpmib,
800 ret = ice_lldp_to_dcb_cfg(lldpmib, dcbcfg);
802 ice_free(hw, lldpmib);
1694 * @lldpmib: pointer to the HW struct
1700 void ice_dcb_cfg_to_lldp(u8 *lldpmib, u16 *miblen, struct ice_dcbx_cfg *dcbcfg)
1706 tlv = (struct ice_lldp_org_tlv *)lldpmib;
1733 u8 mib_type, *lldpmib = NULL;
1747 lldpmib = (u8 *)ice_malloc(hw, ICE_LLDPDU_SIZE);
1748 if (!lldpmib)
1755 ice_dcb_cfg_to_lldp(lldpmib, &miblen, dcbcfg);
1756 ret = ice_aq_set_lldp_mib(hw, mib_type, (void *)lldpmib, miblen,
1759 ice_free(hw, lldpmib);