| /linux/include/uapi/linux/ |
| H A D | dcbnl.h | 27 #define IEEE_8021QAZ_MAX_TCS 8 macro 62 __u8 tc_tx_bw[IEEE_8021QAZ_MAX_TCS]; 63 __u8 tc_rx_bw[IEEE_8021QAZ_MAX_TCS]; 64 __u8 tc_tsa[IEEE_8021QAZ_MAX_TCS]; 65 __u8 prio_tc[IEEE_8021QAZ_MAX_TCS]; 66 __u8 tc_reco_bw[IEEE_8021QAZ_MAX_TCS]; 67 __u8 tc_reco_tsa[IEEE_8021QAZ_MAX_TCS]; 68 __u8 reco_prio_tc[IEEE_8021QAZ_MAX_TCS]; 79 __u64 tc_maxrate[IEEE_8021QAZ_MAX_TCS]; 120 __u8 rpg_enable[IEEE_8021QAZ_MAX_TCS]; [all …]
|
| /linux/drivers/net/ethernet/netronome/nfp/nic/ |
| H A D | main.h | 12 #define NFP_NET_MAX_TC IEEE_8021QAZ_MAX_TCS 19 u8 tc2idx[IEEE_8021QAZ_MAX_TCS]; 20 u64 tc_maxrate[IEEE_8021QAZ_MAX_TCS]; 21 u8 tc_tx_pct[IEEE_8021QAZ_MAX_TCS]; 22 u8 tc_tsa[IEEE_8021QAZ_MAX_TCS];
|
| H A D | dcb.c | 77 for (unsigned int i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in nfp_nic_dcbnl_ieee_getets() 88 u8 tc2idx[IEEE_8021QAZ_MAX_TCS]; in nfp_refresh_tc2idx() 95 for (unsigned int i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in nfp_refresh_tc2idx() 106 for (unsigned int j = 0; j < IEEE_8021QAZ_MAX_TCS; j++) { in nfp_refresh_tc2idx() 124 for (unsigned int i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in nfp_fill_maxrate() 216 for (unsigned int i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in dcb_ets_check() 241 for (unsigned int i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in nfp_nic_fill_ets() 280 for (unsigned int i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in nfp_nic_dcbnl_ieee_setets() 321 for (unsigned int i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) in nfp_nic_dcbnl_ieee_getmaxrate() 547 for (unsigned int i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in nfp_nic_dcb_init()
|
| /linux/drivers/net/ethernet/intel/fm10k/ |
| H A D | fm10k_dcbnl.c | 16 ets->ets_cap = IEEE_8021QAZ_MAX_TCS; in fm10k_dcbnl_ieee_getets() 25 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) in fm10k_dcbnl_ieee_getets() 42 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in fm10k_dcbnl_ieee_setets() 55 if (num_tc > IEEE_8021QAZ_MAX_TCS) in fm10k_dcbnl_ieee_setets() 66 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) in fm10k_dcbnl_ieee_setets() 82 pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in fm10k_dcbnl_ieee_getpfc()
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_dcb.c | 40 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in mlxsw_sp_port_ets_validate() 53 if (ets->prio_tc[i] >= IEEE_8021QAZ_MAX_TCS) { in mlxsw_sp_port_ets_validate() 76 for (prio = 0; prio < IEEE_8021QAZ_MAX_TCS; prio++) in mlxsw_sp_port_headroom_ets_set() 99 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in __mlxsw_sp_dcbnl_ieee_setets() 113 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in __mlxsw_sp_dcbnl_ieee_setets() 131 i = IEEE_8021QAZ_MAX_TCS; in __mlxsw_sp_dcbnl_ieee_setets() 135 i = IEEE_8021QAZ_MAX_TCS; in __mlxsw_sp_dcbnl_ieee_setets() 163 mlxsw_sp_port->dcb.ets->ets_cap = IEEE_8021QAZ_MAX_TCS; in mlxsw_sp_dcbnl_ieee_setets() 171 if (app->priority >= IEEE_8021QAZ_MAX_TCS) { in mlxsw_sp_dcbnl_app_validate() 453 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in mlxsw_sp_dcbnl_ieee_setmaxrate() [all …]
|
| H A D | spectrum_qdisc.c | 14 #define MLXSW_SP_PRIO_BAND_TO_TCLASS(band) (IEEE_8021QAZ_MAX_TCS - band - 1) 66 struct mlxsw_sp_qdisc_ets_band bands[IEEE_8021QAZ_MAX_TCS]; 107 bool future_fifos[IEEE_8021QAZ_MAX_TCS]; 522 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in mlxsw_sp_qdisc_bstats_per_priority_get() 1206 if (band < IEEE_8021QAZ_MAX_TCS) { in __mlxsw_sp_setup_tc_fifo() 1278 if (nbands > IEEE_8021QAZ_MAX_TCS) in __mlxsw_sp_qdisc_ets_check_params() 1364 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in __mlxsw_sp_qdisc_ets_replace() 1387 for (; band < IEEE_8021QAZ_MAX_TCS; band++) { in __mlxsw_sp_qdisc_ets_replace() 1481 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in mlxsw_sp_setup_tc_qdisc_prio_clean_stats() 1507 if (WARN_ON(band >= IEEE_8021QAZ_MAX_TCS)) in mlxsw_sp_qdisc_ets_get_band() [all …]
|
| H A D | spectrum_buffers.c | 322 for (prio = 0; prio < IEEE_8021QAZ_MAX_TCS; prio++) { in mlxsw_sp_hdroom_prios_reset_buf_idx() 391 for (prio = 0; prio < IEEE_8021QAZ_MAX_TCS; prio++) { in mlxsw_sp_hdroom_buf_is_used() 497 for (prio = 0; prio < IEEE_8021QAZ_MAX_TCS; prio++) in mlxsw_sp_hdroom_configure_priomap() 611 for (prio = 0; prio < IEEE_8021QAZ_MAX_TCS; prio++) in mlxsw_sp_port_headroom_init()
|
| H A D | spectrum.c | 853 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in mlxsw_sp_port_get_hw_xstats() 1325 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in mlxsw_sp_port_ets_init() 1332 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in mlxsw_sp_port_ets_init() 1356 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in mlxsw_sp_port_ets_init() 1364 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in mlxsw_sp_port_ets_init() 1381 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in mlxsw_sp_port_ets_init() 1391 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in mlxsw_sp_port_ets_init()
|
| H A D | spectrum_acl.c | 513 if (prio >= IEEE_8021QAZ_MAX_TCS) { in mlxsw_sp_acl_rulei_act_priority()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_dcb_nl.c | 242 num_tcs = IEEE_8021QAZ_MAX_TCS; in mlx4_en_dcbnl_set_state() 293 ets->ets_cap = IEEE_8021QAZ_MAX_TCS; in mlx4_en_dcbnl_ieee_getets() 308 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in mlx4_en_ets_validate() 345 __u8 tc_tx_bw[IEEE_8021QAZ_MAX_TCS] = { 0 }; in mlx4_en_config_port_scheduler() 346 __u8 pg[IEEE_8021QAZ_MAX_TCS] = { 0 }; in mlx4_en_config_port_scheduler() 352 for (i = IEEE_8021QAZ_MAX_TCS - 1; i >= 0; i--) { in mlx4_en_config_port_scheduler() 402 pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in mlx4_en_dcbnl_ieee_getpfc() 471 ets.ets_cap = IEEE_8021QAZ_MAX_TCS; in mlx4_en_dcbnl_setdcbx() 472 pfc.pfc_cap = IEEE_8021QAZ_MAX_TCS; in mlx4_en_dcbnl_setdcbx() 503 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) in mlx4_en_dcbnl_ieee_getmaxrate() [all …]
|
| H A D | en_netdev.c | 3238 for (prio = 0; prio < IEEE_8021QAZ_MAX_TCS; ++prio) { in mlx4_en_init_netdev()
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_dcb.c | 305 __u16 refill[IEEE_8021QAZ_MAX_TCS], max[IEEE_8021QAZ_MAX_TCS]; in ixgbe_dcb_hw_ets() 306 __u8 prio_type[IEEE_8021QAZ_MAX_TCS]; in ixgbe_dcb_hw_ets() 310 __u8 bwg_id[IEEE_8021QAZ_MAX_TCS] = {0, 1, 2, 3, 4, 5, 6, 7}; in ixgbe_dcb_hw_ets() 313 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in ixgbe_dcb_hw_ets()
|
| H A D | ixgbe_dcb_nl.c | 339 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) in ixgbe_dcbnl_set_all() 524 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) in ixgbe_dcbnl_ieee_setets() 526 IEEE_8021QAZ_MAX_TCS; in ixgbe_dcbnl_ieee_setets() 532 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in ixgbe_dcbnl_ieee_setets()
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_dcb.c | 54 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in bnxt_hwrm_queue_pri2cos_cfg() 83 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in bnxt_hwrm_queue_pri2cos_qcfg() 262 for (pri = 0; pri < IEEE_8021QAZ_MAX_TCS; pri++) { in bnxt_hwrm_queue_pfc_cfg() 342 n = IEEE_8021QAZ_MAX_TCS; in bnxt_hwrm_set_dcbx_app() 479 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in bnxt_ets_validate() 575 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) in bnxt_dcbnl_ieee_setets() 576 my_ets->prio_tc[i] = IEEE_8021QAZ_MAX_TCS; in bnxt_dcbnl_ieee_setets() 625 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++, rx_off++, tx_off++) { in bnxt_dcbnl_ieee_getpfc()
|
| /linux/include/net/ |
| H A D | dcbnl.h | 33 u16 map[IEEE_8021QAZ_MAX_TCS]; 40 u64 map[IEEE_8021QAZ_MAX_TCS];
|
| /linux/include/linux/net/intel/ |
| H A D | iidc_rdma_ice.h | 40 struct iidc_rdma_qos_info tc_info[IEEE_8021QAZ_MAX_TCS];
|
| /linux/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe.h | 96 min_t(unsigned int, IEEE_8021QAZ_MAX_TCS, (_cnt)) 1178 unsigned int prio2q_map[IEEE_8021QAZ_MAX_TCS];
|
| /linux/net/dcb/ |
| H A D | dcbnl.c | 2251 itr->app.priority < IEEE_8021QAZ_MAX_TCS) { in dcb_getrewr_prio_pcp_mask_map() 2277 itr->app.priority < IEEE_8021QAZ_MAX_TCS) { in dcb_getrewr_prio_dscp_mask_map() 2306 itr->app.priority < IEEE_8021QAZ_MAX_TCS) { in dcb_ieee_getapp_prio_dscp_mask_map() 2335 itr->app.priority < IEEE_8021QAZ_MAX_TCS) in dcb_ieee_getapp_dscp_prio_mask_map() 2363 itr->app.priority < IEEE_8021QAZ_MAX_TCS) in dcb_ieee_getapp_default_prio_mask()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_dcb_lib.c | 120 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in ice_dcb_get_num_tc() 975 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) in ice_setup_dcb_qos_info()
|
| /linux/drivers/net/ethernet/synopsys/ |
| H A D | dwc-xlgmac-hw.c | 1549 prio_queues = min_t(unsigned int, IEEE_8021QAZ_MAX_TCS, in xlgmac_config_queue_mapping() 1551 ppq = IEEE_8021QAZ_MAX_TCS / prio_queues; in xlgmac_config_queue_mapping() 1552 ppq_extra = IEEE_8021QAZ_MAX_TCS % prio_queues; in xlgmac_config_queue_mapping()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_common.c | 1830 req->chan_cnt = IEEE_8021QAZ_MAX_TCS; in otx2_nix_config_bp() 1855 req->chan_cnt = IEEE_8021QAZ_MAX_TCS; in otx2_nix_cpt_config_bp()
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cxgb4_dcb.c | 984 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in cxgb4_ieee_read_ets()
|