/* Transmit and receive Errors */ /* Error in bandwidth group allocation */ #define DCB_ERR_BW_GROUP -3 /* Error in traffic class bandwidth allocation */ #define DCB_ERR_TC_BW -4 /* Traffic class has both link strict and group strict enabled */ #define DCB_ERR_LS_GS -5 /* Link strict traffic class has non zero bandwidth */ #define DCB_ERR_LS_BW_NONZERO -6 /* Link strict bandwidth group has non zero bandwidth */ #define DCB_ERR_LS_BWG_NONZERO -7 /* Traffic class has zero bandwidth */ #define DCB_ERR_TC_BW_ZERO -8
/* Each bit represents a number of TCs configurable in the hw. * If 8 traffic classes can be configured, the value is 0x80.
*/
u8 traffic_classes;
u8 pfc_traffic_classes;
};
/* Traffic class bandwidth allocation per direction */ struct tc_bw_alloc {
u8 bwg_id; /* Bandwidth Group (BWG) ID */
u8 bwg_percent; /* % of BWG's bandwidth */
u8 link_percent; /* % of link bandwidth */
u8 up_to_tc_bitmap; /* User Priority to Traffic Class mapping */
u16 data_credits_refill; /* Credit refill amount in 64B granularity */
u16 data_credits_max; /* Max credits for a configured packet buffer
* in 64B granularity.*/ enum strict_prio_type prio_type; /* Link or Group Strict Priority */
};
/* Traffic class configuration */ struct tc_configuration { struct tc_bw_alloc path[2]; /* One each for Tx/Rx */ enum dcb_pfc_type dcb_pfc; /* Class based flow control setting */
u16 desc_credits_max; /* For Tx Descriptor arbitration */
u8 tc; /* Traffic class (TC) */
};
struct dcb_num_tcs {
u8 pg_tcs;
u8 pfc_tcs;
};
struct ixgbe_dcb_config { struct dcb_support support; struct dcb_num_tcs num_tcs; struct tc_configuration tc_config[MAX_TRAFFIC_CLASS];
u8 bw_percentage[2][MAX_BW_GROUP]; /* One each for Tx/Rx */ bool pfc_mode_enable;
u32 dcb_cfg_version; /* Not used...OS-specific? */
u32 link_speed; /* For bandwidth allocation validation purpose */
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.