Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/i40e_dcb.h
/****************************************************************************** | /****************************************************************************** | ||||
Copyright (c) 2013-2017, Intel Corporation | Copyright (c) 2013-2019, Intel Corporation | ||||
All rights reserved. | All rights reserved. | ||||
Redistribution and use in source and binary forms, with or without | Redistribution and use in source and binary forms, with or without | ||||
modification, are permitted provided that the following conditions are met: | modification, are permitted provided that the following conditions are met: | ||||
1. Redistributions of source code must retain the above copyright notice, | 1. Redistributions of source code must retain the above copyright notice, | ||||
this list of conditions and the following disclaimer. | this list of conditions and the following disclaimer. | ||||
2. Redistributions in binary form must reproduce the above copyright | 2. Redistributions in binary form must reproduce the above copyright | ||||
notice, this list of conditions and the following disclaimer in the | notice, this list of conditions and the following disclaimer in the | ||||
▲ Show 20 Lines • Show All 189 Lines • ▼ Show 20 Lines | |||||
/* IEEE 802.1Qaz DCBX variables */ | /* IEEE 802.1Qaz DCBX variables */ | ||||
struct i40e_dcbx_variables { | struct i40e_dcbx_variables { | ||||
u32 defmaxtrafficclasses; | u32 defmaxtrafficclasses; | ||||
u32 defprioritytcmapping; | u32 defprioritytcmapping; | ||||
u32 deftcbandwidth; | u32 deftcbandwidth; | ||||
u32 deftsaassignment; | u32 deftsaassignment; | ||||
}; | }; | ||||
enum i40e_get_fw_lldp_status_resp { | |||||
I40E_GET_FW_LLDP_STATUS_DISABLED = 0, | |||||
I40E_GET_FW_LLDP_STATUS_ENABLED = 1 | |||||
}; | |||||
enum i40e_status_code i40e_get_dcbx_status(struct i40e_hw *hw, | enum i40e_status_code i40e_get_dcbx_status(struct i40e_hw *hw, | ||||
u16 *status); | u16 *status); | ||||
enum i40e_status_code i40e_lldp_to_dcb_config(u8 *lldpmib, | enum i40e_status_code i40e_lldp_to_dcb_config(u8 *lldpmib, | ||||
struct i40e_dcbx_config *dcbcfg); | struct i40e_dcbx_config *dcbcfg); | ||||
enum i40e_status_code i40e_aq_get_dcb_config(struct i40e_hw *hw, u8 mib_type, | enum i40e_status_code i40e_aq_get_dcb_config(struct i40e_hw *hw, u8 mib_type, | ||||
u8 bridgetype, | u8 bridgetype, | ||||
struct i40e_dcbx_config *dcbcfg); | struct i40e_dcbx_config *dcbcfg); | ||||
enum i40e_status_code i40e_get_dcb_config(struct i40e_hw *hw); | enum i40e_status_code i40e_get_dcb_config(struct i40e_hw *hw); | ||||
enum i40e_status_code i40e_init_dcb(struct i40e_hw *hw); | enum i40e_status_code i40e_init_dcb(struct i40e_hw *hw, | ||||
bool enable_mib_change); | |||||
enum i40e_status_code | |||||
i40e_get_fw_lldp_status(struct i40e_hw *hw, | |||||
enum i40e_get_fw_lldp_status_resp *lldp_status); | |||||
enum i40e_status_code i40e_set_dcb_config(struct i40e_hw *hw); | enum i40e_status_code i40e_set_dcb_config(struct i40e_hw *hw); | ||||
enum i40e_status_code i40e_dcb_config_to_lldp(u8 *lldpmib, u16 *miblen, | enum i40e_status_code i40e_dcb_config_to_lldp(u8 *lldpmib, u16 *miblen, | ||||
struct i40e_dcbx_config *dcbcfg); | struct i40e_dcbx_config *dcbcfg); | ||||
#endif /* _I40E_DCB_H_ */ | #endif /* _I40E_DCB_H_ */ |