Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ice/ice_dcb.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
#define ICE_IEEE_SUBTYPE_ETS_CFG 9 | #define ICE_IEEE_SUBTYPE_ETS_CFG 9 | ||||
#define ICE_IEEE_SUBTYPE_ETS_REC 10 | #define ICE_IEEE_SUBTYPE_ETS_REC 10 | ||||
#define ICE_IEEE_SUBTYPE_PFC_CFG 11 | #define ICE_IEEE_SUBTYPE_PFC_CFG 11 | ||||
#define ICE_IEEE_SUBTYPE_APP_PRI 12 | #define ICE_IEEE_SUBTYPE_APP_PRI 12 | ||||
#define ICE_CEE_DCBX_OUI 0x001B21 | #define ICE_CEE_DCBX_OUI 0x001B21 | ||||
#define ICE_CEE_DCBX_TYPE 2 | #define ICE_CEE_DCBX_TYPE 2 | ||||
#define ICE_DSCP_OUI 0xFFFFFF | |||||
#define ICE_DSCP_SUBTYPE_DSCP2UP 0x41 | |||||
#define ICE_DSCP_SUBTYPE_ENFORCE 0x42 | |||||
#define ICE_DSCP_SUBTYPE_TCBW 0x43 | |||||
#define ICE_DSCP_SUBTYPE_PFC 0x44 | |||||
#define ICE_DSCP_IPV6_OFFSET 80 | |||||
#define ICE_CEE_SUBTYPE_CTRL 1 | #define ICE_CEE_SUBTYPE_CTRL 1 | ||||
#define ICE_CEE_SUBTYPE_PG_CFG 2 | #define ICE_CEE_SUBTYPE_PG_CFG 2 | ||||
#define ICE_CEE_SUBTYPE_PFC_CFG 3 | #define ICE_CEE_SUBTYPE_PFC_CFG 3 | ||||
#define ICE_CEE_SUBTYPE_APP_PRI 4 | #define ICE_CEE_SUBTYPE_APP_PRI 4 | ||||
#define ICE_CEE_MAX_FEAT_TYPE 3 | #define ICE_CEE_MAX_FEAT_TYPE 3 | ||||
#define ICE_LLDP_ADMINSTATUS_DIS 0 | #define ICE_LLDP_ADMINSTATUS_DIS 0 | ||||
#define ICE_LLDP_ADMINSTATUS_ENA_RX 1 | #define ICE_LLDP_ADMINSTATUS_ENA_RX 1 | ||||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
#define ICE_TLV_ID_PORT_ID 1 | #define ICE_TLV_ID_PORT_ID 1 | ||||
#define ICE_TLV_ID_TIME_TO_LIVE 2 | #define ICE_TLV_ID_TIME_TO_LIVE 2 | ||||
#define ICE_IEEE_TLV_ID_ETS_CFG 3 | #define ICE_IEEE_TLV_ID_ETS_CFG 3 | ||||
#define ICE_IEEE_TLV_ID_ETS_REC 4 | #define ICE_IEEE_TLV_ID_ETS_REC 4 | ||||
#define ICE_IEEE_TLV_ID_PFC_CFG 5 | #define ICE_IEEE_TLV_ID_PFC_CFG 5 | ||||
#define ICE_IEEE_TLV_ID_APP_PRI 6 | #define ICE_IEEE_TLV_ID_APP_PRI 6 | ||||
#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_TLV_ID_DSCP_UP 3 | |||||
#define ICE_TLV_ID_DSCP_ENF 4 | |||||
#define ICE_TLV_ID_DSCP_TC_BW 5 | |||||
#define ICE_TLV_ID_DSCP_TO_PFC 6 | |||||
#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 | ||||
#define ICE_DSCP_UP_TLV_LEN 148 | |||||
#define ICE_DSCP_ENF_TLV_LEN 132 | |||||
#define ICE_DSCP_TC_BW_TLV_LEN 25 | |||||
#define ICE_DSCP_PFC_TLV_LEN 6 | |||||
#pragma pack(1) | #pragma pack(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[STRUCT_HACK_VAR_LEN]; | u8 tlvinfo[STRUCT_HACK_VAR_LEN]; | ||||
}; | }; | ||||
#pragma pack() | #pragma pack() | ||||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | 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 | ||||
ice_aq_query_pfc_mode(struct ice_hw *hw, u8 *pfcmode_ret, struct ice_sq_cd *cd); | ice_aq_query_pfc_mode(struct ice_hw *hw, u8 *pfcmode_ret, struct ice_sq_cd *cd); | ||||
enum ice_status | enum ice_status | ||||
ice_aq_set_pfc_mode(struct ice_hw *hw, u8 pfcmode_set, u8 *pfcmode_ret, | |||||
struct ice_sq_cd *cd); | |||||
enum ice_status | |||||
ice_aq_set_dcb_parameters(struct ice_hw *hw, bool dcb_enable, | ice_aq_set_dcb_parameters(struct ice_hw *hw, bool dcb_enable, | ||||
struct ice_sq_cd *cd); | struct ice_sq_cd *cd); | ||||
enum ice_status | |||||
ice_aq_set_pfc_mode(struct ice_hw *hw, u8 pfc_mode, struct ice_sq_cd *cd); | |||||
enum ice_status ice_lldp_to_dcb_cfg(u8 *lldpmib, struct ice_dcbx_cfg *dcbcfg); | enum ice_status ice_lldp_to_dcb_cfg(u8 *lldpmib, struct ice_dcbx_cfg *dcbcfg); | ||||
u8 ice_get_dcbx_status(struct ice_hw *hw); | u8 ice_get_dcbx_status(struct ice_hw *hw); | ||||
enum ice_status | enum ice_status | ||||
ice_aq_get_dcb_cfg(struct ice_hw *hw, u8 mib_type, u8 bridgetype, | ice_aq_get_dcb_cfg(struct ice_hw *hw, u8 mib_type, u8 bridgetype, | ||||
struct ice_dcbx_cfg *dcbcfg); | struct ice_dcbx_cfg *dcbcfg); | ||||
enum ice_status ice_get_dcb_cfg(struct ice_port_info *pi); | enum ice_status ice_get_dcb_cfg(struct ice_port_info *pi); | ||||
enum ice_status ice_set_dcb_cfg(struct ice_port_info *pi); | enum ice_status ice_set_dcb_cfg(struct ice_port_info *pi); | ||||
enum ice_status ice_init_dcb(struct ice_hw *hw, bool enable_mib_change); | enum ice_status ice_init_dcb(struct ice_hw *hw, bool enable_mib_change); | ||||
Show All 25 Lines |