Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ice/ice_dcb.h
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | |||||
#define ICE_TLV_ID_END_OF_LLDPPDU 7 | #define ICE_TLV_ID_END_OF_LLDPPDU 7 | ||||
#define ICE_TLV_ID_START ICE_IEEE_TLV_ID_ETS_CFG | #define ICE_TLV_ID_START ICE_IEEE_TLV_ID_ETS_CFG | ||||
#define ICE_IEEE_ETS_TLV_LEN 25 | #define ICE_IEEE_ETS_TLV_LEN 25 | ||||
#define ICE_IEEE_PFC_TLV_LEN 6 | #define ICE_IEEE_PFC_TLV_LEN 6 | ||||
#define ICE_IEEE_APP_TLV_LEN 11 | #define ICE_IEEE_APP_TLV_LEN 11 | ||||
#pragma pack(1) | #pragma pack(1) | ||||
/* IEEE 802.1AB LLDP TLV structure */ | |||||
struct ice_lldp_generic_tlv { | |||||
__be16 typelen; | |||||
u8 tlvinfo[1]; | |||||
}; | |||||
/* IEEE 802.1AB LLDP Organization specific TLV */ | /* IEEE 802.1AB LLDP Organization specific TLV */ | ||||
struct ice_lldp_org_tlv { | struct ice_lldp_org_tlv { | ||||
__be16 typelen; | __be16 typelen; | ||||
__be32 ouisubtype; | __be32 ouisubtype; | ||||
u8 tlvinfo[1]; | u8 tlvinfo[STRUCT_HACK_VAR_LEN]; | ||||
}; | }; | ||||
#pragma pack() | #pragma pack() | ||||
struct ice_cee_tlv_hdr { | struct ice_cee_tlv_hdr { | ||||
__be16 typelen; | __be16 typelen; | ||||
u8 operver; | u8 operver; | ||||
u8 maxver; | u8 maxver; | ||||
}; | }; | ||||
struct ice_cee_ctrl_tlv { | struct ice_cee_ctrl_tlv { | ||||
struct ice_cee_tlv_hdr hdr; | struct ice_cee_tlv_hdr hdr; | ||||
__be32 seqno; | __be32 seqno; | ||||
__be32 ackno; | __be32 ackno; | ||||
}; | }; | ||||
struct ice_cee_feat_tlv { | struct ice_cee_feat_tlv { | ||||
struct ice_cee_tlv_hdr hdr; | struct ice_cee_tlv_hdr hdr; | ||||
u8 en_will_err; /* Bits: |En|Will|Err|Reserved(5)| */ | u8 en_will_err; /* Bits: |En|Will|Err|Reserved(5)| */ | ||||
#define ICE_CEE_FEAT_TLV_ENA_M 0x80 | #define ICE_CEE_FEAT_TLV_ENA_M 0x80 | ||||
#define ICE_CEE_FEAT_TLV_WILLING_M 0x40 | #define ICE_CEE_FEAT_TLV_WILLING_M 0x40 | ||||
#define ICE_CEE_FEAT_TLV_ERR_M 0x20 | #define ICE_CEE_FEAT_TLV_ERR_M 0x20 | ||||
u8 subtype; | u8 subtype; | ||||
u8 tlvinfo[1]; | u8 tlvinfo[STRUCT_HACK_VAR_LEN]; | ||||
}; | }; | ||||
#pragma pack(1) | #pragma pack(1) | ||||
struct ice_cee_app_prio { | struct ice_cee_app_prio { | ||||
__be16 protocol; | __be16 protocol; | ||||
u8 upper_oui_sel; /* Bits: |Upper OUI(6)|Selector(2)| */ | u8 upper_oui_sel; /* Bits: |Upper OUI(6)|Selector(2)| */ | ||||
#define ICE_CEE_APP_SELECTOR_M 0x03 | #define ICE_CEE_APP_SELECTOR_M 0x03 | ||||
__be16 lower_oui; | __be16 lower_oui; | ||||
Show All 37 Lines | |||||
enum ice_status | enum ice_status | ||||
ice_aq_add_delete_lldp_tlv(struct ice_hw *hw, u8 bridge_type, bool add_lldp_tlv, | ice_aq_add_delete_lldp_tlv(struct ice_hw *hw, u8 bridge_type, bool add_lldp_tlv, | ||||
void *buf, u16 buf_size, u16 tlv_len, u16 *mib_len, | void *buf, u16 buf_size, u16 tlv_len, u16 *mib_len, | ||||
struct ice_sq_cd *cd); | struct ice_sq_cd *cd); | ||||
enum ice_status | enum ice_status | ||||
ice_aq_update_lldp_tlv(struct ice_hw *hw, u8 bridge_type, void *buf, | ice_aq_update_lldp_tlv(struct ice_hw *hw, u8 bridge_type, void *buf, | ||||
u16 buf_size, u16 old_len, u16 new_len, u16 offset, | u16 buf_size, u16 old_len, u16 new_len, u16 offset, | ||||
u16 *mib_len, struct ice_sq_cd *cd); | u16 *mib_len, struct ice_sq_cd *cd); | ||||
enum ice_status | |||||
ice_aq_set_lldp_mib(struct ice_hw *hw, u8 mib_type, void *buf, u16 buf_size, | |||||
struct ice_sq_cd *cd); | |||||
enum ice_status | enum ice_status | ||||
ice_aq_dcb_ignore_pfc(struct ice_hw *hw, u8 tcmap, bool request, u8 *tcmap_ret, | ice_aq_dcb_ignore_pfc(struct ice_hw *hw, u8 tcmap, bool request, u8 *tcmap_ret, | ||||
struct ice_sq_cd *cd); | struct ice_sq_cd *cd); | ||||
enum ice_status | enum ice_status | ||||
ice_aq_get_cee_dcb_cfg(struct ice_hw *hw, | ice_aq_get_cee_dcb_cfg(struct ice_hw *hw, | ||||
struct ice_aqc_get_cee_dcb_cfg_resp *buff, | struct ice_aqc_get_cee_dcb_cfg_resp *buff, | ||||
struct ice_sq_cd *cd); | struct ice_sq_cd *cd); | ||||
enum ice_status | enum ice_status | ||||
Show All 40 Lines |