i40e_dcb.h (f4cc2d1710068319774a27d5c5e7ff85856c9278) | i40e_dcb.h (b4a7ce0690aedd9763b3b47ee7fcdb421f0434c7) |
---|---|
1/****************************************************************************** 2 3 Copyright (c) 2013-2018, Intel Corporation 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 --- 55 unchanged lines hidden (view full) --- 64#define I40E_CEE_SUBTYPE_APP_PRI 4 65 66#define I40E_CEE_MAX_FEAT_TYPE 3 67#define I40E_LLDP_ADMINSTATUS_DISABLED 0 68#define I40E_LLDP_ADMINSTATUS_ENABLED_RX 1 69#define I40E_LLDP_ADMINSTATUS_ENABLED_TX 2 70#define I40E_LLDP_ADMINSTATUS_ENABLED_RXTX 3 71 | 1/****************************************************************************** 2 3 Copyright (c) 2013-2018, Intel Corporation 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 --- 55 unchanged lines hidden (view full) --- 64#define I40E_CEE_SUBTYPE_APP_PRI 4 65 66#define I40E_CEE_MAX_FEAT_TYPE 3 67#define I40E_LLDP_ADMINSTATUS_DISABLED 0 68#define I40E_LLDP_ADMINSTATUS_ENABLED_RX 1 69#define I40E_LLDP_ADMINSTATUS_ENABLED_TX 2 70#define I40E_LLDP_ADMINSTATUS_ENABLED_RXTX 3 71 |
72#define I40E_LLDP_CURRENT_STATUS_XL710_OFFSET 0x2B 73#define I40E_LLDP_CURRENT_STATUS_X722_OFFSET 0x31 74#define I40E_LLDP_CURRENT_STATUS_OFFSET 1 75#define I40E_LLDP_CURRENT_STATUS_SIZE 1 76 |
|
72/* Defines for LLDP TLV header */ 73#define I40E_LLDP_MIB_HLEN 14 74#define I40E_LLDP_TLV_LEN_SHIFT 0 75#define I40E_LLDP_TLV_LEN_MASK (0x01FF << I40E_LLDP_TLV_LEN_SHIFT) 76#define I40E_LLDP_TLV_TYPE_SHIFT 9 77#define I40E_LLDP_TLV_TYPE_MASK (0x7F << I40E_LLDP_TLV_TYPE_SHIFT) 78#define I40E_LLDP_TLV_SUBTYPE_SHIFT 0 79#define I40E_LLDP_TLV_SUBTYPE_MASK (0xFF << I40E_LLDP_TLV_SUBTYPE_SHIFT) --- 123 unchanged lines hidden (view full) --- 203/* IEEE 802.1Qaz DCBX variables */ 204struct i40e_dcbx_variables { 205 u32 defmaxtrafficclasses; 206 u32 defprioritytcmapping; 207 u32 deftcbandwidth; 208 u32 deftsaassignment; 209}; 210 | 77/* Defines for LLDP TLV header */ 78#define I40E_LLDP_MIB_HLEN 14 79#define I40E_LLDP_TLV_LEN_SHIFT 0 80#define I40E_LLDP_TLV_LEN_MASK (0x01FF << I40E_LLDP_TLV_LEN_SHIFT) 81#define I40E_LLDP_TLV_TYPE_SHIFT 9 82#define I40E_LLDP_TLV_TYPE_MASK (0x7F << I40E_LLDP_TLV_TYPE_SHIFT) 83#define I40E_LLDP_TLV_SUBTYPE_SHIFT 0 84#define I40E_LLDP_TLV_SUBTYPE_MASK (0xFF << I40E_LLDP_TLV_SUBTYPE_SHIFT) --- 123 unchanged lines hidden (view full) --- 208/* IEEE 802.1Qaz DCBX variables */ 209struct i40e_dcbx_variables { 210 u32 defmaxtrafficclasses; 211 u32 defprioritytcmapping; 212 u32 deftcbandwidth; 213 u32 deftsaassignment; 214}; 215 |
216 217enum i40e_get_fw_lldp_status_resp { 218 I40E_GET_FW_LLDP_STATUS_DISABLED = 0, 219 I40E_GET_FW_LLDP_STATUS_ENABLED = 1 220}; 221 |
|
211enum i40e_status_code i40e_get_dcbx_status(struct i40e_hw *hw, 212 u16 *status); 213enum i40e_status_code i40e_lldp_to_dcb_config(u8 *lldpmib, 214 struct i40e_dcbx_config *dcbcfg); 215enum i40e_status_code i40e_aq_get_dcb_config(struct i40e_hw *hw, u8 mib_type, 216 u8 bridgetype, 217 struct i40e_dcbx_config *dcbcfg); 218enum i40e_status_code i40e_get_dcb_config(struct i40e_hw *hw); | 222enum i40e_status_code i40e_get_dcbx_status(struct i40e_hw *hw, 223 u16 *status); 224enum i40e_status_code i40e_lldp_to_dcb_config(u8 *lldpmib, 225 struct i40e_dcbx_config *dcbcfg); 226enum i40e_status_code i40e_aq_get_dcb_config(struct i40e_hw *hw, u8 mib_type, 227 u8 bridgetype, 228 struct i40e_dcbx_config *dcbcfg); 229enum i40e_status_code i40e_get_dcb_config(struct i40e_hw *hw); |
219enum i40e_status_code i40e_init_dcb(struct i40e_hw *hw); | 230enum i40e_status_code i40e_init_dcb(struct i40e_hw *hw, 231 bool enable_mib_change); 232enum i40e_status_code 233i40e_get_fw_lldp_status(struct i40e_hw *hw, 234 enum i40e_get_fw_lldp_status_resp *lldp_status); |
220enum i40e_status_code i40e_set_dcb_config(struct i40e_hw *hw); 221enum i40e_status_code i40e_dcb_config_to_lldp(u8 *lldpmib, u16 *miblen, 222 struct i40e_dcbx_config *dcbcfg); | 235enum i40e_status_code i40e_set_dcb_config(struct i40e_hw *hw); 236enum i40e_status_code i40e_dcb_config_to_lldp(u8 *lldpmib, u16 *miblen, 237 struct i40e_dcbx_config *dcbcfg); |
223 | |
224#endif /* _I40E_DCB_H_ */ | 238#endif /* _I40E_DCB_H_ */ |