Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: dcbnl.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* Copyright (c) 2008-2011, Intel Corporation.
[2] Fix | Delete
*
[3] Fix | Delete
* This program is free software; you can redistribute it and/or modify it
[4] Fix | Delete
* under the terms and conditions of the GNU General Public License,
[5] Fix | Delete
* version 2, as published by the Free Software Foundation.
[6] Fix | Delete
*
[7] Fix | Delete
* This program is distributed in the hope it will be useful, but WITHOUT
[8] Fix | Delete
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
[9] Fix | Delete
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
[10] Fix | Delete
* more details.
[11] Fix | Delete
*
[12] Fix | Delete
* You should have received a copy of the GNU General Public License along with
[13] Fix | Delete
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
[14] Fix | Delete
* Place - Suite 330, Boston, MA 02111-1307 USA.
[15] Fix | Delete
*
[16] Fix | Delete
* Author: Lucy Liu <lucy.liu@intel.com>
[17] Fix | Delete
*/
[18] Fix | Delete
[19] Fix | Delete
#ifndef __LINUX_DCBNL_H__
[20] Fix | Delete
#define __LINUX_DCBNL_H__
[21] Fix | Delete
[22] Fix | Delete
#include <linux/types.h>
[23] Fix | Delete
[24] Fix | Delete
/* IEEE 802.1Qaz std supported values */
[25] Fix | Delete
#define IEEE_8021QAZ_MAX_TCS 8
[26] Fix | Delete
[27] Fix | Delete
#define IEEE_8021QAZ_TSA_STRICT 0
[28] Fix | Delete
#define IEEE_8021QAZ_TSA_CB_SHAPER 1
[29] Fix | Delete
#define IEEE_8021QAZ_TSA_ETS 2
[30] Fix | Delete
#define IEEE_8021QAZ_TSA_VENDOR 255
[31] Fix | Delete
[32] Fix | Delete
/* This structure contains the IEEE 802.1Qaz ETS managed object
[33] Fix | Delete
*
[34] Fix | Delete
* @willing: willing bit in ETS configuration TLV
[35] Fix | Delete
* @ets_cap: indicates supported capacity of ets feature
[36] Fix | Delete
* @cbs: credit based shaper ets algorithm supported
[37] Fix | Delete
* @tc_tx_bw: tc tx bandwidth indexed by traffic class
[38] Fix | Delete
* @tc_rx_bw: tc rx bandwidth indexed by traffic class
[39] Fix | Delete
* @tc_tsa: TSA Assignment table, indexed by traffic class
[40] Fix | Delete
* @prio_tc: priority assignment table mapping 8021Qp to traffic class
[41] Fix | Delete
* @tc_reco_bw: recommended tc bandwidth indexed by traffic class for TLV
[42] Fix | Delete
* @tc_reco_tsa: recommended tc bandwidth indexed by traffic class for TLV
[43] Fix | Delete
* @reco_prio_tc: recommended tc tx bandwidth indexed by traffic class for TLV
[44] Fix | Delete
*
[45] Fix | Delete
* Recommended values are used to set fields in the ETS recommendation TLV
[46] Fix | Delete
* with hardware offloaded LLDP.
[47] Fix | Delete
*
[48] Fix | Delete
* ----
[49] Fix | Delete
* TSA Assignment 8 bit identifiers
[50] Fix | Delete
* 0 strict priority
[51] Fix | Delete
* 1 credit-based shaper
[52] Fix | Delete
* 2 enhanced transmission selection
[53] Fix | Delete
* 3-254 reserved
[54] Fix | Delete
* 255 vendor specific
[55] Fix | Delete
*/
[56] Fix | Delete
struct ieee_ets {
[57] Fix | Delete
__u8 willing;
[58] Fix | Delete
__u8 ets_cap;
[59] Fix | Delete
__u8 cbs;
[60] Fix | Delete
__u8 tc_tx_bw[IEEE_8021QAZ_MAX_TCS];
[61] Fix | Delete
__u8 tc_rx_bw[IEEE_8021QAZ_MAX_TCS];
[62] Fix | Delete
__u8 tc_tsa[IEEE_8021QAZ_MAX_TCS];
[63] Fix | Delete
__u8 prio_tc[IEEE_8021QAZ_MAX_TCS];
[64] Fix | Delete
__u8 tc_reco_bw[IEEE_8021QAZ_MAX_TCS];
[65] Fix | Delete
__u8 tc_reco_tsa[IEEE_8021QAZ_MAX_TCS];
[66] Fix | Delete
__u8 reco_prio_tc[IEEE_8021QAZ_MAX_TCS];
[67] Fix | Delete
};
[68] Fix | Delete
[69] Fix | Delete
/* This structure contains rate limit extension to the IEEE 802.1Qaz ETS
[70] Fix | Delete
* managed object.
[71] Fix | Delete
* Values are 64 bits long and specified in Kbps to enable usage over both
[72] Fix | Delete
* slow and very fast networks.
[73] Fix | Delete
*
[74] Fix | Delete
* @tc_maxrate: maximal tc tx bandwidth indexed by traffic class
[75] Fix | Delete
*/
[76] Fix | Delete
struct ieee_maxrate {
[77] Fix | Delete
__u64 tc_maxrate[IEEE_8021QAZ_MAX_TCS];
[78] Fix | Delete
};
[79] Fix | Delete
[80] Fix | Delete
enum dcbnl_cndd_states {
[81] Fix | Delete
DCB_CNDD_RESET = 0,
[82] Fix | Delete
DCB_CNDD_EDGE,
[83] Fix | Delete
DCB_CNDD_INTERIOR,
[84] Fix | Delete
DCB_CNDD_INTERIOR_READY,
[85] Fix | Delete
};
[86] Fix | Delete
[87] Fix | Delete
/* This structure contains the IEEE 802.1Qau QCN managed object.
[88] Fix | Delete
*
[89] Fix | Delete
*@rpg_enable: enable QCN RP
[90] Fix | Delete
*@rppp_max_rps: maximum number of RPs allowed for this CNPV on this port
[91] Fix | Delete
*@rpg_time_reset: time between rate increases if no CNMs received.
[92] Fix | Delete
* given in u-seconds
[93] Fix | Delete
*@rpg_byte_reset: transmitted data between rate increases if no CNMs received.
[94] Fix | Delete
* given in Bytes
[95] Fix | Delete
*@rpg_threshold: The number of times rpByteStage or rpTimeStage can count
[96] Fix | Delete
* before RP rate control state machine advances states
[97] Fix | Delete
*@rpg_max_rate: the maxinun rate, in Mbits per second,
[98] Fix | Delete
* at which an RP can transmit
[99] Fix | Delete
*@rpg_ai_rate: The rate, in Mbits per second,
[100] Fix | Delete
* used to increase rpTargetRate in the RPR_ACTIVE_INCREASE
[101] Fix | Delete
*@rpg_hai_rate: The rate, in Mbits per second,
[102] Fix | Delete
* used to increase rpTargetRate in the RPR_HYPER_INCREASE state
[103] Fix | Delete
*@rpg_gd: Upon CNM receive, flow rate is limited to (Fb/Gd)*CurrentRate.
[104] Fix | Delete
* rpgGd is given as log2(Gd), where Gd may only be powers of 2
[105] Fix | Delete
*@rpg_min_dec_fac: The minimum factor by which the current transmit rate
[106] Fix | Delete
* can be changed by reception of a CNM.
[107] Fix | Delete
* value is given as percentage (1-100)
[108] Fix | Delete
*@rpg_min_rate: The minimum value, in bits per second, for rate to limit
[109] Fix | Delete
*@cndd_state_machine: The state of the congestion notification domain
[110] Fix | Delete
* defense state machine, as defined by IEEE 802.3Qau
[111] Fix | Delete
* section 32.1.1. In the interior ready state,
[112] Fix | Delete
* the QCN capable hardware may add CN-TAG TLV to the
[113] Fix | Delete
* outgoing traffic, to specifically identify outgoing
[114] Fix | Delete
* flows.
[115] Fix | Delete
*/
[116] Fix | Delete
[117] Fix | Delete
struct ieee_qcn {
[118] Fix | Delete
__u8 rpg_enable[IEEE_8021QAZ_MAX_TCS];
[119] Fix | Delete
__u32 rppp_max_rps[IEEE_8021QAZ_MAX_TCS];
[120] Fix | Delete
__u32 rpg_time_reset[IEEE_8021QAZ_MAX_TCS];
[121] Fix | Delete
__u32 rpg_byte_reset[IEEE_8021QAZ_MAX_TCS];
[122] Fix | Delete
__u32 rpg_threshold[IEEE_8021QAZ_MAX_TCS];
[123] Fix | Delete
__u32 rpg_max_rate[IEEE_8021QAZ_MAX_TCS];
[124] Fix | Delete
__u32 rpg_ai_rate[IEEE_8021QAZ_MAX_TCS];
[125] Fix | Delete
__u32 rpg_hai_rate[IEEE_8021QAZ_MAX_TCS];
[126] Fix | Delete
__u32 rpg_gd[IEEE_8021QAZ_MAX_TCS];
[127] Fix | Delete
__u32 rpg_min_dec_fac[IEEE_8021QAZ_MAX_TCS];
[128] Fix | Delete
__u32 rpg_min_rate[IEEE_8021QAZ_MAX_TCS];
[129] Fix | Delete
__u32 cndd_state_machine[IEEE_8021QAZ_MAX_TCS];
[130] Fix | Delete
};
[131] Fix | Delete
[132] Fix | Delete
/* This structure contains the IEEE 802.1Qau QCN statistics.
[133] Fix | Delete
*
[134] Fix | Delete
*@rppp_rp_centiseconds: the number of RP-centiseconds accumulated
[135] Fix | Delete
* by RPs at this priority level on this Port
[136] Fix | Delete
*@rppp_created_rps: number of active RPs(flows) that react to CNMs
[137] Fix | Delete
*/
[138] Fix | Delete
[139] Fix | Delete
struct ieee_qcn_stats {
[140] Fix | Delete
__u64 rppp_rp_centiseconds[IEEE_8021QAZ_MAX_TCS];
[141] Fix | Delete
__u32 rppp_created_rps[IEEE_8021QAZ_MAX_TCS];
[142] Fix | Delete
};
[143] Fix | Delete
[144] Fix | Delete
/* This structure contains the IEEE 802.1Qaz PFC managed object
[145] Fix | Delete
*
[146] Fix | Delete
* @pfc_cap: Indicates the number of traffic classes on the local device
[147] Fix | Delete
* that may simultaneously have PFC enabled.
[148] Fix | Delete
* @pfc_en: bitmap indicating pfc enabled traffic classes
[149] Fix | Delete
* @mbc: enable macsec bypass capability
[150] Fix | Delete
* @delay: the allowance made for a round-trip propagation delay of the
[151] Fix | Delete
* link in bits.
[152] Fix | Delete
* @requests: count of the sent pfc frames
[153] Fix | Delete
* @indications: count of the received pfc frames
[154] Fix | Delete
*/
[155] Fix | Delete
struct ieee_pfc {
[156] Fix | Delete
__u8 pfc_cap;
[157] Fix | Delete
__u8 pfc_en;
[158] Fix | Delete
__u8 mbc;
[159] Fix | Delete
__u16 delay;
[160] Fix | Delete
__u64 requests[IEEE_8021QAZ_MAX_TCS];
[161] Fix | Delete
__u64 indications[IEEE_8021QAZ_MAX_TCS];
[162] Fix | Delete
};
[163] Fix | Delete
[164] Fix | Delete
#define IEEE_8021Q_MAX_PRIORITIES 8
[165] Fix | Delete
#define DCBX_MAX_BUFFERS 8
[166] Fix | Delete
struct dcbnl_buffer {
[167] Fix | Delete
/* priority to buffer mapping */
[168] Fix | Delete
__u8 prio2buffer[IEEE_8021Q_MAX_PRIORITIES];
[169] Fix | Delete
/* buffer size in Bytes */
[170] Fix | Delete
__u32 buffer_size[DCBX_MAX_BUFFERS];
[171] Fix | Delete
__u32 total_size;
[172] Fix | Delete
};
[173] Fix | Delete
[174] Fix | Delete
/* CEE DCBX std supported values */
[175] Fix | Delete
#define CEE_DCBX_MAX_PGS 8
[176] Fix | Delete
#define CEE_DCBX_MAX_PRIO 8
[177] Fix | Delete
[178] Fix | Delete
/**
[179] Fix | Delete
* struct cee_pg - CEE Priority-Group managed object
[180] Fix | Delete
*
[181] Fix | Delete
* @willing: willing bit in the PG tlv
[182] Fix | Delete
* @error: error bit in the PG tlv
[183] Fix | Delete
* @pg_en: enable bit of the PG feature
[184] Fix | Delete
* @tcs_supported: number of traffic classes supported
[185] Fix | Delete
* @pg_bw: bandwidth percentage for each priority group
[186] Fix | Delete
* @prio_pg: priority to PG mapping indexed by priority
[187] Fix | Delete
*/
[188] Fix | Delete
struct cee_pg {
[189] Fix | Delete
__u8 willing;
[190] Fix | Delete
__u8 error;
[191] Fix | Delete
__u8 pg_en;
[192] Fix | Delete
__u8 tcs_supported;
[193] Fix | Delete
__u8 pg_bw[CEE_DCBX_MAX_PGS];
[194] Fix | Delete
__u8 prio_pg[CEE_DCBX_MAX_PGS];
[195] Fix | Delete
};
[196] Fix | Delete
[197] Fix | Delete
/**
[198] Fix | Delete
* struct cee_pfc - CEE PFC managed object
[199] Fix | Delete
*
[200] Fix | Delete
* @willing: willing bit in the PFC tlv
[201] Fix | Delete
* @error: error bit in the PFC tlv
[202] Fix | Delete
* @pfc_en: bitmap indicating pfc enabled traffic classes
[203] Fix | Delete
* @tcs_supported: number of traffic classes supported
[204] Fix | Delete
*/
[205] Fix | Delete
struct cee_pfc {
[206] Fix | Delete
__u8 willing;
[207] Fix | Delete
__u8 error;
[208] Fix | Delete
__u8 pfc_en;
[209] Fix | Delete
__u8 tcs_supported;
[210] Fix | Delete
};
[211] Fix | Delete
[212] Fix | Delete
/* IEEE 802.1Qaz std supported values */
[213] Fix | Delete
#define IEEE_8021QAZ_APP_SEL_ETHERTYPE 1
[214] Fix | Delete
#define IEEE_8021QAZ_APP_SEL_STREAM 2
[215] Fix | Delete
#define IEEE_8021QAZ_APP_SEL_DGRAM 3
[216] Fix | Delete
#define IEEE_8021QAZ_APP_SEL_ANY 4
[217] Fix | Delete
#define IEEE_8021QAZ_APP_SEL_DSCP 5
[218] Fix | Delete
[219] Fix | Delete
/* This structure contains the IEEE 802.1Qaz APP managed object. This
[220] Fix | Delete
* object is also used for the CEE std as well.
[221] Fix | Delete
*
[222] Fix | Delete
* @selector: protocol identifier type
[223] Fix | Delete
* @protocol: protocol of type indicated
[224] Fix | Delete
* @priority: 3-bit unsigned integer indicating priority for IEEE
[225] Fix | Delete
* 8-bit 802.1p user priority bitmap for CEE
[226] Fix | Delete
*
[227] Fix | Delete
* ----
[228] Fix | Delete
* Selector field values for IEEE 802.1Qaz
[229] Fix | Delete
* 0 Reserved
[230] Fix | Delete
* 1 Ethertype
[231] Fix | Delete
* 2 Well known port number over TCP or SCTP
[232] Fix | Delete
* 3 Well known port number over UDP or DCCP
[233] Fix | Delete
* 4 Well known port number over TCP, SCTP, UDP, or DCCP
[234] Fix | Delete
* 5-7 Reserved
[235] Fix | Delete
*
[236] Fix | Delete
* Selector field values for CEE
[237] Fix | Delete
* 0 Ethertype
[238] Fix | Delete
* 1 Well known port number over TCP or UDP
[239] Fix | Delete
* 2-3 Reserved
[240] Fix | Delete
*/
[241] Fix | Delete
struct dcb_app {
[242] Fix | Delete
__u8 selector;
[243] Fix | Delete
__u8 priority;
[244] Fix | Delete
__u16 protocol;
[245] Fix | Delete
};
[246] Fix | Delete
[247] Fix | Delete
/**
[248] Fix | Delete
* struct dcb_peer_app_info - APP feature information sent by the peer
[249] Fix | Delete
*
[250] Fix | Delete
* @willing: willing bit in the peer APP tlv
[251] Fix | Delete
* @error: error bit in the peer APP tlv
[252] Fix | Delete
*
[253] Fix | Delete
* In addition to this information the full peer APP tlv also contains
[254] Fix | Delete
* a table of 'app_count' APP objects defined above.
[255] Fix | Delete
*/
[256] Fix | Delete
struct dcb_peer_app_info {
[257] Fix | Delete
__u8 willing;
[258] Fix | Delete
__u8 error;
[259] Fix | Delete
};
[260] Fix | Delete
[261] Fix | Delete
struct dcbmsg {
[262] Fix | Delete
__u8 dcb_family;
[263] Fix | Delete
__u8 cmd;
[264] Fix | Delete
__u16 dcb_pad;
[265] Fix | Delete
};
[266] Fix | Delete
[267] Fix | Delete
/**
[268] Fix | Delete
* enum dcbnl_commands - supported DCB commands
[269] Fix | Delete
*
[270] Fix | Delete
* @DCB_CMD_UNDEFINED: unspecified command to catch errors
[271] Fix | Delete
* @DCB_CMD_GSTATE: request the state of DCB in the device
[272] Fix | Delete
* @DCB_CMD_SSTATE: set the state of DCB in the device
[273] Fix | Delete
* @DCB_CMD_PGTX_GCFG: request the priority group configuration for Tx
[274] Fix | Delete
* @DCB_CMD_PGTX_SCFG: set the priority group configuration for Tx
[275] Fix | Delete
* @DCB_CMD_PGRX_GCFG: request the priority group configuration for Rx
[276] Fix | Delete
* @DCB_CMD_PGRX_SCFG: set the priority group configuration for Rx
[277] Fix | Delete
* @DCB_CMD_PFC_GCFG: request the priority flow control configuration
[278] Fix | Delete
* @DCB_CMD_PFC_SCFG: set the priority flow control configuration
[279] Fix | Delete
* @DCB_CMD_SET_ALL: apply all changes to the underlying device
[280] Fix | Delete
* @DCB_CMD_GPERM_HWADDR: get the permanent MAC address of the underlying
[281] Fix | Delete
* device. Only useful when using bonding.
[282] Fix | Delete
* @DCB_CMD_GCAP: request the DCB capabilities of the device
[283] Fix | Delete
* @DCB_CMD_GNUMTCS: get the number of traffic classes currently supported
[284] Fix | Delete
* @DCB_CMD_SNUMTCS: set the number of traffic classes
[285] Fix | Delete
* @DCB_CMD_GBCN: set backward congestion notification configuration
[286] Fix | Delete
* @DCB_CMD_SBCN: get backward congestion notification configration.
[287] Fix | Delete
* @DCB_CMD_GAPP: get application protocol configuration
[288] Fix | Delete
* @DCB_CMD_SAPP: set application protocol configuration
[289] Fix | Delete
* @DCB_CMD_IEEE_SET: set IEEE 802.1Qaz configuration
[290] Fix | Delete
* @DCB_CMD_IEEE_GET: get IEEE 802.1Qaz configuration
[291] Fix | Delete
* @DCB_CMD_GDCBX: get DCBX engine configuration
[292] Fix | Delete
* @DCB_CMD_SDCBX: set DCBX engine configuration
[293] Fix | Delete
* @DCB_CMD_GFEATCFG: get DCBX features flags
[294] Fix | Delete
* @DCB_CMD_SFEATCFG: set DCBX features negotiation flags
[295] Fix | Delete
* @DCB_CMD_CEE_GET: get CEE aggregated configuration
[296] Fix | Delete
* @DCB_CMD_IEEE_DEL: delete IEEE 802.1Qaz configuration
[297] Fix | Delete
*/
[298] Fix | Delete
enum dcbnl_commands {
[299] Fix | Delete
DCB_CMD_UNDEFINED,
[300] Fix | Delete
[301] Fix | Delete
DCB_CMD_GSTATE,
[302] Fix | Delete
DCB_CMD_SSTATE,
[303] Fix | Delete
[304] Fix | Delete
DCB_CMD_PGTX_GCFG,
[305] Fix | Delete
DCB_CMD_PGTX_SCFG,
[306] Fix | Delete
DCB_CMD_PGRX_GCFG,
[307] Fix | Delete
DCB_CMD_PGRX_SCFG,
[308] Fix | Delete
[309] Fix | Delete
DCB_CMD_PFC_GCFG,
[310] Fix | Delete
DCB_CMD_PFC_SCFG,
[311] Fix | Delete
[312] Fix | Delete
DCB_CMD_SET_ALL,
[313] Fix | Delete
[314] Fix | Delete
DCB_CMD_GPERM_HWADDR,
[315] Fix | Delete
[316] Fix | Delete
DCB_CMD_GCAP,
[317] Fix | Delete
[318] Fix | Delete
DCB_CMD_GNUMTCS,
[319] Fix | Delete
DCB_CMD_SNUMTCS,
[320] Fix | Delete
[321] Fix | Delete
DCB_CMD_PFC_GSTATE,
[322] Fix | Delete
DCB_CMD_PFC_SSTATE,
[323] Fix | Delete
[324] Fix | Delete
DCB_CMD_BCN_GCFG,
[325] Fix | Delete
DCB_CMD_BCN_SCFG,
[326] Fix | Delete
[327] Fix | Delete
DCB_CMD_GAPP,
[328] Fix | Delete
DCB_CMD_SAPP,
[329] Fix | Delete
[330] Fix | Delete
DCB_CMD_IEEE_SET,
[331] Fix | Delete
DCB_CMD_IEEE_GET,
[332] Fix | Delete
[333] Fix | Delete
DCB_CMD_GDCBX,
[334] Fix | Delete
DCB_CMD_SDCBX,
[335] Fix | Delete
[336] Fix | Delete
DCB_CMD_GFEATCFG,
[337] Fix | Delete
DCB_CMD_SFEATCFG,
[338] Fix | Delete
[339] Fix | Delete
DCB_CMD_CEE_GET,
[340] Fix | Delete
DCB_CMD_IEEE_DEL,
[341] Fix | Delete
[342] Fix | Delete
__DCB_CMD_ENUM_MAX,
[343] Fix | Delete
DCB_CMD_MAX = __DCB_CMD_ENUM_MAX - 1,
[344] Fix | Delete
};
[345] Fix | Delete
[346] Fix | Delete
/**
[347] Fix | Delete
* enum dcbnl_attrs - DCB top-level netlink attributes
[348] Fix | Delete
*
[349] Fix | Delete
* @DCB_ATTR_UNDEFINED: unspecified attribute to catch errors
[350] Fix | Delete
* @DCB_ATTR_IFNAME: interface name of the underlying device (NLA_STRING)
[351] Fix | Delete
* @DCB_ATTR_STATE: enable state of DCB in the device (NLA_U8)
[352] Fix | Delete
* @DCB_ATTR_PFC_STATE: enable state of PFC in the device (NLA_U8)
[353] Fix | Delete
* @DCB_ATTR_PFC_CFG: priority flow control configuration (NLA_NESTED)
[354] Fix | Delete
* @DCB_ATTR_NUM_TC: number of traffic classes supported in the device (NLA_U8)
[355] Fix | Delete
* @DCB_ATTR_PG_CFG: priority group configuration (NLA_NESTED)
[356] Fix | Delete
* @DCB_ATTR_SET_ALL: bool to commit changes to hardware or not (NLA_U8)
[357] Fix | Delete
* @DCB_ATTR_PERM_HWADDR: MAC address of the physical device (NLA_NESTED)
[358] Fix | Delete
* @DCB_ATTR_CAP: DCB capabilities of the device (NLA_NESTED)
[359] Fix | Delete
* @DCB_ATTR_NUMTCS: number of traffic classes supported (NLA_NESTED)
[360] Fix | Delete
* @DCB_ATTR_BCN: backward congestion notification configuration (NLA_NESTED)
[361] Fix | Delete
* @DCB_ATTR_IEEE: IEEE 802.1Qaz supported attributes (NLA_NESTED)
[362] Fix | Delete
* @DCB_ATTR_DCBX: DCBX engine configuration in the device (NLA_U8)
[363] Fix | Delete
* @DCB_ATTR_FEATCFG: DCBX features flags (NLA_NESTED)
[364] Fix | Delete
* @DCB_ATTR_CEE: CEE std supported attributes (NLA_NESTED)
[365] Fix | Delete
*/
[366] Fix | Delete
enum dcbnl_attrs {
[367] Fix | Delete
DCB_ATTR_UNDEFINED,
[368] Fix | Delete
[369] Fix | Delete
DCB_ATTR_IFNAME,
[370] Fix | Delete
DCB_ATTR_STATE,
[371] Fix | Delete
DCB_ATTR_PFC_STATE,
[372] Fix | Delete
DCB_ATTR_PFC_CFG,
[373] Fix | Delete
DCB_ATTR_NUM_TC,
[374] Fix | Delete
DCB_ATTR_PG_CFG,
[375] Fix | Delete
DCB_ATTR_SET_ALL,
[376] Fix | Delete
DCB_ATTR_PERM_HWADDR,
[377] Fix | Delete
DCB_ATTR_CAP,
[378] Fix | Delete
DCB_ATTR_NUMTCS,
[379] Fix | Delete
DCB_ATTR_BCN,
[380] Fix | Delete
DCB_ATTR_APP,
[381] Fix | Delete
[382] Fix | Delete
/* IEEE std attributes */
[383] Fix | Delete
DCB_ATTR_IEEE,
[384] Fix | Delete
[385] Fix | Delete
DCB_ATTR_DCBX,
[386] Fix | Delete
DCB_ATTR_FEATCFG,
[387] Fix | Delete
[388] Fix | Delete
/* CEE nested attributes */
[389] Fix | Delete
DCB_ATTR_CEE,
[390] Fix | Delete
[391] Fix | Delete
__DCB_ATTR_ENUM_MAX,
[392] Fix | Delete
DCB_ATTR_MAX = __DCB_ATTR_ENUM_MAX - 1,
[393] Fix | Delete
};
[394] Fix | Delete
[395] Fix | Delete
/**
[396] Fix | Delete
* enum ieee_attrs - IEEE 802.1Qaz get/set attributes
[397] Fix | Delete
*
[398] Fix | Delete
* @DCB_ATTR_IEEE_UNSPEC: unspecified
[399] Fix | Delete
* @DCB_ATTR_IEEE_ETS: negotiated ETS configuration
[400] Fix | Delete
* @DCB_ATTR_IEEE_PFC: negotiated PFC configuration
[401] Fix | Delete
* @DCB_ATTR_IEEE_APP_TABLE: negotiated APP configuration
[402] Fix | Delete
* @DCB_ATTR_IEEE_PEER_ETS: peer ETS configuration - get only
[403] Fix | Delete
* @DCB_ATTR_IEEE_PEER_PFC: peer PFC configuration - get only
[404] Fix | Delete
* @DCB_ATTR_IEEE_PEER_APP: peer APP tlv - get only
[405] Fix | Delete
*/
[406] Fix | Delete
enum ieee_attrs {
[407] Fix | Delete
DCB_ATTR_IEEE_UNSPEC,
[408] Fix | Delete
DCB_ATTR_IEEE_ETS,
[409] Fix | Delete
DCB_ATTR_IEEE_PFC,
[410] Fix | Delete
DCB_ATTR_IEEE_APP_TABLE,
[411] Fix | Delete
DCB_ATTR_IEEE_PEER_ETS,
[412] Fix | Delete
DCB_ATTR_IEEE_PEER_PFC,
[413] Fix | Delete
DCB_ATTR_IEEE_PEER_APP,
[414] Fix | Delete
DCB_ATTR_IEEE_MAXRATE,
[415] Fix | Delete
DCB_ATTR_IEEE_QCN,
[416] Fix | Delete
DCB_ATTR_IEEE_QCN_STATS,
[417] Fix | Delete
DCB_ATTR_DCB_BUFFER,
[418] Fix | Delete
__DCB_ATTR_IEEE_MAX
[419] Fix | Delete
};
[420] Fix | Delete
#define DCB_ATTR_IEEE_MAX (__DCB_ATTR_IEEE_MAX - 1)
[421] Fix | Delete
[422] Fix | Delete
enum ieee_attrs_app {
[423] Fix | Delete
DCB_ATTR_IEEE_APP_UNSPEC,
[424] Fix | Delete
DCB_ATTR_IEEE_APP,
[425] Fix | Delete
__DCB_ATTR_IEEE_APP_MAX
[426] Fix | Delete
};
[427] Fix | Delete
#define DCB_ATTR_IEEE_APP_MAX (__DCB_ATTR_IEEE_APP_MAX - 1)
[428] Fix | Delete
[429] Fix | Delete
/**
[430] Fix | Delete
* enum cee_attrs - CEE DCBX get attributes.
[431] Fix | Delete
*
[432] Fix | Delete
* @DCB_ATTR_CEE_UNSPEC: unspecified
[433] Fix | Delete
* @DCB_ATTR_CEE_PEER_PG: peer PG configuration - get only
[434] Fix | Delete
* @DCB_ATTR_CEE_PEER_PFC: peer PFC configuration - get only
[435] Fix | Delete
* @DCB_ATTR_CEE_PEER_APP_TABLE: peer APP tlv - get only
[436] Fix | Delete
* @DCB_ATTR_CEE_TX_PG: TX PG configuration (DCB_CMD_PGTX_GCFG)
[437] Fix | Delete
* @DCB_ATTR_CEE_RX_PG: RX PG configuration (DCB_CMD_PGRX_GCFG)
[438] Fix | Delete
* @DCB_ATTR_CEE_PFC: PFC configuration (DCB_CMD_PFC_GCFG)
[439] Fix | Delete
* @DCB_ATTR_CEE_APP_TABLE: APP configuration (multi DCB_CMD_GAPP)
[440] Fix | Delete
* @DCB_ATTR_CEE_FEAT: DCBX features flags (DCB_CMD_GFEATCFG)
[441] Fix | Delete
*
[442] Fix | Delete
* An aggregated collection of the cee std negotiated parameters.
[443] Fix | Delete
*/
[444] Fix | Delete
enum cee_attrs {
[445] Fix | Delete
DCB_ATTR_CEE_UNSPEC,
[446] Fix | Delete
DCB_ATTR_CEE_PEER_PG,
[447] Fix | Delete
DCB_ATTR_CEE_PEER_PFC,
[448] Fix | Delete
DCB_ATTR_CEE_PEER_APP_TABLE,
[449] Fix | Delete
DCB_ATTR_CEE_TX_PG,
[450] Fix | Delete
DCB_ATTR_CEE_RX_PG,
[451] Fix | Delete
DCB_ATTR_CEE_PFC,
[452] Fix | Delete
DCB_ATTR_CEE_APP_TABLE,
[453] Fix | Delete
DCB_ATTR_CEE_FEAT,
[454] Fix | Delete
__DCB_ATTR_CEE_MAX
[455] Fix | Delete
};
[456] Fix | Delete
#define DCB_ATTR_CEE_MAX (__DCB_ATTR_CEE_MAX - 1)
[457] Fix | Delete
[458] Fix | Delete
enum peer_app_attr {
[459] Fix | Delete
DCB_ATTR_CEE_PEER_APP_UNSPEC,
[460] Fix | Delete
DCB_ATTR_CEE_PEER_APP_INFO,
[461] Fix | Delete
DCB_ATTR_CEE_PEER_APP,
[462] Fix | Delete
__DCB_ATTR_CEE_PEER_APP_MAX
[463] Fix | Delete
};
[464] Fix | Delete
#define DCB_ATTR_CEE_PEER_APP_MAX (__DCB_ATTR_CEE_PEER_APP_MAX - 1)
[465] Fix | Delete
[466] Fix | Delete
enum cee_attrs_app {
[467] Fix | Delete
DCB_ATTR_CEE_APP_UNSPEC,
[468] Fix | Delete
DCB_ATTR_CEE_APP,
[469] Fix | Delete
__DCB_ATTR_CEE_APP_MAX
[470] Fix | Delete
};
[471] Fix | Delete
#define DCB_ATTR_CEE_APP_MAX (__DCB_ATTR_CEE_APP_MAX - 1)
[472] Fix | Delete
[473] Fix | Delete
/**
[474] Fix | Delete
* enum dcbnl_pfc_attrs - DCB Priority Flow Control user priority nested attrs
[475] Fix | Delete
*
[476] Fix | Delete
* @DCB_PFC_UP_ATTR_UNDEFINED: unspecified attribute to catch errors
[477] Fix | Delete
* @DCB_PFC_UP_ATTR_0: Priority Flow Control value for User Priority 0 (NLA_U8)
[478] Fix | Delete
* @DCB_PFC_UP_ATTR_1: Priority Flow Control value for User Priority 1 (NLA_U8)
[479] Fix | Delete
* @DCB_PFC_UP_ATTR_2: Priority Flow Control value for User Priority 2 (NLA_U8)
[480] Fix | Delete
* @DCB_PFC_UP_ATTR_3: Priority Flow Control value for User Priority 3 (NLA_U8)
[481] Fix | Delete
* @DCB_PFC_UP_ATTR_4: Priority Flow Control value for User Priority 4 (NLA_U8)
[482] Fix | Delete
* @DCB_PFC_UP_ATTR_5: Priority Flow Control value for User Priority 5 (NLA_U8)
[483] Fix | Delete
* @DCB_PFC_UP_ATTR_6: Priority Flow Control value for User Priority 6 (NLA_U8)
[484] Fix | Delete
* @DCB_PFC_UP_ATTR_7: Priority Flow Control value for User Priority 7 (NLA_U8)
[485] Fix | Delete
* @DCB_PFC_UP_ATTR_MAX: highest attribute number currently defined
[486] Fix | Delete
* @DCB_PFC_UP_ATTR_ALL: apply to all priority flow control attrs (NLA_FLAG)
[487] Fix | Delete
*
[488] Fix | Delete
*/
[489] Fix | Delete
enum dcbnl_pfc_up_attrs {
[490] Fix | Delete
DCB_PFC_UP_ATTR_UNDEFINED,
[491] Fix | Delete
[492] Fix | Delete
DCB_PFC_UP_ATTR_0,
[493] Fix | Delete
DCB_PFC_UP_ATTR_1,
[494] Fix | Delete
DCB_PFC_UP_ATTR_2,
[495] Fix | Delete
DCB_PFC_UP_ATTR_3,
[496] Fix | Delete
DCB_PFC_UP_ATTR_4,
[497] Fix | Delete
DCB_PFC_UP_ATTR_5,
[498] Fix | Delete
DCB_PFC_UP_ATTR_6,
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function