Home
last modified time | relevance | path

Searched refs:tc (Results 1 – 25 of 114) sorted by relevance

12345

/dpdk/examples/qos_sched/
H A Dprofile.cfg149 tc 0 tailq th = 64
154 tc 1 tailq th = 64
159 tc 2 tailq th = 64
164 tc 3 tailq th = 64
169 tc 4 tailq th = 64
174 tc 5 tailq th = 64
179 tc 6 tailq th = 64
184 tc 7 tailq th = 64
189 tc 8 tailq th = 64
194 tc 9 tailq th = 64
[all …]
H A Dprofile_ov.cfg63 tc 0 wred min = 48 40 32
64 tc 0 wred max = 64 64 64
66 tc 0 wred weight = 9 9 9
68 tc 1 wred min = 48 40 32
69 tc 1 wred max = 64 64 64
71 tc 1 wred weight = 9 9 9
73 tc 2 wred min = 48 40 32
74 tc 2 wred max = 64 64 64
76 tc 2 wred weight = 9 9 9
78 tc 3 wred min = 48 40 32
[all …]
H A Dstats.c28 tc >= RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE || in qavg_q()
30 (tc < RTE_SCHED_TRAFFIC_CLASS_BE && q > 0)) in qavg_q()
37 if (tc < RTE_SCHED_TRAFFIC_CLASS_BE) in qavg_q()
58 uint8_t tc) in qavg_tcpipe() argument
73 tc >= RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE) in qavg_tcpipe()
90 if (tc < RTE_SCHED_TRAFFIC_CLASS_BE) { in qavg_tcpipe()
175 tc >= RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE) in qavg_tcsubport()
193 if (tc < RTE_SCHED_TRAFFIC_CLASS_BE) { in qavg_tcsubport()
195 i * RTE_SCHED_QUEUES_PER_PIPE + tc; in qavg_tcsubport()
203 tc + j; in qavg_tcsubport()
[all …]
/dpdk/lib/meter/
H A Drte_meter.h444 m->tc = tc; in rte_meter_srtcm_color_blind_check()
449 m->tc = tc; in rte_meter_srtcm_color_blind_check()
486 m->tc = tc; in rte_meter_srtcm_color_aware_check()
491 m->tc = tc; in rte_meter_srtcm_color_aware_check()
522 m->tc = tc; in rte_meter_trtcm_color_blind_check()
528 m->tc = tc; in rte_meter_trtcm_color_blind_check()
565 m->tc = tc; in rte_meter_trtcm_color_aware_check()
571 m->tc = tc; in rte_meter_trtcm_color_aware_check()
613 m->tc = tc; in rte_meter_trtcm_rfc4115_color_blind_check()
619 m->tc = tc; in rte_meter_trtcm_rfc4115_color_blind_check()
[all …]
/dpdk/drivers/net/mvpp2/
H A Dmrvl_qos.c331 cfg->port[port].tc[tc].inq, in parse_tc_cfg()
346 cfg->port[port].tc[tc].pcp, in parse_tc_cfg()
361 cfg->port[port].tc[tc].dscp, in parse_tc_cfg()
1038 for (tc = 0; tc < RTE_DIM(port_cfg->tc); ++tc) { in mrvl_configure_rxqs()
1039 if (port_cfg->tc[tc].pcps > RTE_DIM(port_cfg->tc[0].pcp)) { in mrvl_configure_rxqs()
1047 port_cfg->tc[tc].pcp[i]].tc = tc; in mrvl_configure_rxqs()
1060 for (tc = 0; tc < RTE_DIM(port_cfg->tc); ++tc) { in mrvl_configure_rxqs()
1069 port_cfg->tc[tc].dscp[i]].tc = tc; in mrvl_configure_rxqs()
1082 for (tc = 0; tc < RTE_DIM(port_cfg->tc); ++tc) { in mrvl_configure_rxqs()
1083 if (port_cfg->tc[tc].inqs > RTE_DIM(port_cfg->tc[0].inq)) { in mrvl_configure_rxqs()
[all …]
/dpdk/lib/eal/include/
H A Drte_time.h45 ns = cycles + tc->nsec_frac; in rte_cyclecounter_cycles_to_ns()
46 tc->nsec_frac = ns & tc->nsec_mask; in rte_cyclecounter_cycles_to_ns()
49 return ns >> tc->cc_shift; in rte_cyclecounter_cycles_to_ns()
56 rte_timecounter_update(struct rte_timecounter *tc, uint64_t cycle_now) in rte_timecounter_update() argument
61 if (tc->cycle_last <= cycle_now) in rte_timecounter_update()
62 cycle_delta = (cycle_now - tc->cycle_last) & tc->cc_mask; in rte_timecounter_update()
65 cycle_delta = (~(tc->cycle_last - cycle_now) & tc->cc_mask) + 1; in rte_timecounter_update()
68 ns_offset = rte_cyclecounter_cycles_to_ns(tc, cycle_delta); in rte_timecounter_update()
71 tc->cycle_last = cycle_now; in rte_timecounter_update()
74 tc->nsec += ns_offset; in rte_timecounter_update()
[all …]
/dpdk/drivers/net/txgbe/base/
H A Dtxgbe_dcb.c287 int tc; in txgbe_dcb_unpack_refill_cee() local
289 for (tc = 0; tc < TXGBE_DCB_TC_MAX; tc++) in txgbe_dcb_unpack_refill_cee()
296 int tc; in txgbe_dcb_unpack_max_cee() local
298 for (tc = 0; tc < TXGBE_DCB_TC_MAX; tc++) in txgbe_dcb_unpack_max_cee()
299 max[tc] = tc_config[tc].desc_credits_max; in txgbe_dcb_unpack_max_cee()
306 int tc; in txgbe_dcb_unpack_bwgid_cee() local
308 for (tc = 0; tc < TXGBE_DCB_TC_MAX; tc++) in txgbe_dcb_unpack_bwgid_cee()
316 int tc; in txgbe_dcb_unpack_tsa_cee() local
318 for (tc = 0; tc < TXGBE_DCB_TC_MAX; tc++) in txgbe_dcb_unpack_tsa_cee()
319 tsa[tc] = tc_config[tc].path[direction].tsa; in txgbe_dcb_unpack_tsa_cee()
[all …]
H A Dtxgbe_regs.h465 #define TXGBE_FCSTAT_DLNK(tc) MS((tc), 0x1) argument
466 #define TXGBE_FCSTAT_ULNK(tc) MS((tc) + 8, 0x1) argument
481 #define TXGBE_DCBUP2TC_MAP(tc, v) LS(v, 3 * (tc), 0x7) argument
504 #define TXGBE_PARBTXCFG(tc) (0x01CD20 + (tc) * 4) argument
524 #define TXGBE_QARBRXCFG(tc) (0x012040 + (tc) * 4) argument
537 #define TXGBE_QARBTXCFG(tc) (0x018220 + (tc) * 4) argument
1261 #define TXGBE_VFPBWRAP_WRAP(r, tc) ((0x7 << 4 * (tc) & (r)) >> 4 * (tc)) argument
1262 #define TXGBE_VFPBWRAP_EMPT(r, tc) ((0x8 << 4 * (tc) & (r)) >> 4 * (tc)) argument
1462 #define TXGBE_PBRXSTAT_WRAP(tc, r) ((7u << 4 * (tc) & (r)) >> 4 * (tc)) argument
1463 #define TXGBE_PBRXSTAT_EMPT(tc, r) ((8u << 4 * (tc) & (r)) >> 4 * (tc)) argument
[all …]
/dpdk/drivers/net/ixgbe/base/
H A Dixgbe_dcb_82599.c22 int tc; in ixgbe_dcb_get_tc_stats_82599() local
30 for (tc = 0; tc < tc_count; tc++) { in ixgbe_dcb_get_tc_stats_82599()
32 stats->qptc[tc] += IXGBE_READ_REG(hw, IXGBE_QPTC(tc)); in ixgbe_dcb_get_tc_stats_82599()
34 stats->qbtc[tc] += IXGBE_READ_REG(hw, IXGBE_QBTC_L(tc)); in ixgbe_dcb_get_tc_stats_82599()
38 stats->qprc[tc] += IXGBE_READ_REG(hw, IXGBE_QPRC(tc)); in ixgbe_dcb_get_tc_stats_82599()
40 stats->qbrc[tc] += IXGBE_READ_REG(hw, IXGBE_QBRC_L(tc)); in ixgbe_dcb_get_tc_stats_82599()
45 stats->qprdc[tc] += IXGBE_READ_REG(hw, IXGBE_QPRDC(tc)); in ixgbe_dcb_get_tc_stats_82599()
63 int tc; in ixgbe_dcb_get_pfc_stats_82599() local
70 for (tc = 0; tc < tc_count; tc++) { in ixgbe_dcb_get_pfc_stats_82599()
72 stats->pxofftxc[tc] += IXGBE_READ_REG(hw, IXGBE_PXOFFTXC(tc)); in ixgbe_dcb_get_pfc_stats_82599()
[all …]
H A Dixgbe_dcb_82598.c22 int tc; in ixgbe_dcb_get_tc_stats_82598() local
30 for (tc = 0; tc < tc_count; tc++) { in ixgbe_dcb_get_tc_stats_82598()
32 stats->qptc[tc] += IXGBE_READ_REG(hw, IXGBE_QPTC(tc)); in ixgbe_dcb_get_tc_stats_82598()
34 stats->qbtc[tc] += IXGBE_READ_REG(hw, IXGBE_QBTC(tc)); in ixgbe_dcb_get_tc_stats_82598()
36 stats->qprc[tc] += IXGBE_READ_REG(hw, IXGBE_QPRC(tc)); in ixgbe_dcb_get_tc_stats_82598()
38 stats->qbrc[tc] += IXGBE_READ_REG(hw, IXGBE_QBRC(tc)); in ixgbe_dcb_get_tc_stats_82598()
56 int tc; in ixgbe_dcb_get_pfc_stats_82598() local
63 for (tc = 0; tc < tc_count; tc++) { in ixgbe_dcb_get_pfc_stats_82598()
65 stats->pxofftxc[tc] += IXGBE_READ_REG(hw, IXGBE_PXOFFTXC(tc)); in ixgbe_dcb_get_pfc_stats_82598()
67 stats->pxoffrxc[tc] += IXGBE_READ_REG(hw, IXGBE_PXOFFRXC(tc)); in ixgbe_dcb_get_pfc_stats_82598()
H A Dixgbe_dcb.c198 int tc; in ixgbe_dcb_unpack_refill_cee() local
200 for (tc = 0; tc < IXGBE_DCB_MAX_TRAFFIC_CLASS; tc++) in ixgbe_dcb_unpack_refill_cee()
207 int tc; in ixgbe_dcb_unpack_max_cee() local
209 for (tc = 0; tc < IXGBE_DCB_MAX_TRAFFIC_CLASS; tc++) in ixgbe_dcb_unpack_max_cee()
210 max[tc] = tc_config[tc].desc_credits_max; in ixgbe_dcb_unpack_max_cee()
217 int tc; in ixgbe_dcb_unpack_bwgid_cee() local
219 for (tc = 0; tc < IXGBE_DCB_MAX_TRAFFIC_CLASS; tc++) in ixgbe_dcb_unpack_bwgid_cee()
227 int tc; in ixgbe_dcb_unpack_tsa_cee() local
229 for (tc = 0; tc < IXGBE_DCB_MAX_TRAFFIC_CLASS; tc++) in ixgbe_dcb_unpack_tsa_cee()
230 tsa[tc] = tc_config[tc].path[direction].tsa; in ixgbe_dcb_unpack_tsa_cee()
[all …]
/dpdk/drivers/net/ice/base/
H A Dice_sched.c2682 u8 tc; in ice_sched_cfg_agg() local
2848 u8 tc; in ice_sched_assoc_vsi_to_agg() local
3046 u8 tc; in ice_rm_agg_cfg() local
3720 u8 tc; in ice_cfg_vsi_bw_alloc() local
3775 u8 tc; in ice_cfg_agg_bw_alloc() local
4698 u8 tc; in ice_sched_set_agg_bw_dflt_lmt() local
4850 u8 tc; in ice_sched_validate_vsi_srl_node() local
4992 u8 tc; in ice_sched_set_vsi_bw_shared_lmt() local
5044 u8 tc; in ice_sched_validate_agg_srl_node() local
5222 u8 tc; in ice_sched_set_agg_bw_shared_lmt() local
[all …]
H A Dice_sched.h132 ice_cfg_q_bw_lmt(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
135 ice_cfg_q_bw_dflt_lmt(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
138 ice_cfg_tc_node_bw_lmt(struct ice_port_info *pi, u8 tc,
141 ice_cfg_tc_node_bw_dflt_lmt(struct ice_port_info *pi, u8 tc,
144 ice_cfg_vsi_bw_lmt_per_tc(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
150 ice_cfg_agg_bw_lmt_per_tc(struct ice_port_info *pi, u32 agg_id, u8 tc,
170 u8 tc);
180 u8 *node_prio, u8 tc);
191 enum ice_agg_type agg_type, u8 tc,
201 u8 tc, u32 min_bw, u32 max_bw,
[all …]
/dpdk/drivers/net/qede/base/
H A Decore_init_fw_funcs.c291 for (tc = 0; tc < max_phys_tcs_per_port; tc++) in ecore_cmdq_lines_rt_init()
298 for (tc = 0; tc < max_phys_tcs_per_port; tc++) { in ecore_cmdq_lines_rt_init()
354 for (tc = 0; tc < NUM_OF_PHYS_TCS; tc++) in ecore_btb_blocks_rt_init()
369 for (tc = 0; tc < NUM_OF_PHYS_TCS; tc++) { in ecore_btb_blocks_rt_init()
672 for (tc = 0; tc < NUM_OF_TCS; tc++) { in ecore_vp_wfq_rt_init()
819 for (tc = 0; tc < NUM_OF_TCS; tc++) in ecore_qm_pf_rt_init()
908 for (tc = 0; tc < NUM_OF_TCS; tc++) { in ecore_init_vport_wfq()
1062 for (tc = 0; tc < num_tc; tc++) { in ecore_init_nig_ets()
1220 for (tc = 0; tc < NUM_OF_PHYS_TCS; tc++) { in ecore_init_nig_pri_tc_map()
1249 for (tc = 0; tc < NUM_OF_TCS; tc++) { in ecore_init_prs_ets()
[all …]
/dpdk/app/test/
H A Dtest.c256 struct unit_test_case tc; in unit_test_suite_count_tcs_on_setup_fail() local
303 struct unit_test_case tc; in unit_test_suite_runner() local
332 if (!tc.enabled) { in unit_test_suite_runner()
340 if (tc.setup) in unit_test_suite_runner()
341 test_success = tc.setup(); in unit_test_suite_runner()
347 if (tc.testcase) in unit_test_suite_runner()
348 test_success = tc.testcase(); in unit_test_suite_runner()
350 test_success = tc.testcase_with_data(tc.data); in unit_test_suite_runner()
369 if (tc.teardown) in unit_test_suite_runner()
370 tc.teardown(); in unit_test_suite_runner()
[all …]
H A Dtest_cryptodev_blockcipher.c1134 struct unit_test_case *tc; in build_blockcipher_test_suite() local
1198 tc->enabled = 1; in build_blockcipher_test_suite()
1199 tc->setup = ut_setup; in build_blockcipher_test_suite()
1201 tc->testcase = NULL; in build_blockcipher_test_suite()
1203 tc->data = &blk_tcs[i]; in build_blockcipher_test_suite()
1206 tc->name = NULL; in build_blockcipher_test_suite()
1207 tc->enabled = 0; in build_blockcipher_test_suite()
1208 tc->setup = NULL; in build_blockcipher_test_suite()
1209 tc->teardown = NULL; in build_blockcipher_test_suite()
1210 tc->testcase = NULL; in build_blockcipher_test_suite()
[all …]
/dpdk/examples/ipsec-secgw/test/
H A Dtun_null_header_reconstruct.py137 def gen_pkt_plain_ipv6(self, src, dst, tc): argument
138 pkt = IPv6(src=src, dst=dst, tc=tc)
157 pkt[IPv6].tc = tc_outter
175 pkt[IPv6].tc = tc_outter
220 self.assertEqual(resp[IPv6].tc, ECN_CE)
258 self.assertEqual(resp[IPv6].tc, ECN_CE)
294 self.assertEqual(resp[IPv6].tc, ECN_CE)
310 self.assertEqual(resp[IPv6].tc, ECN_CE)
344 self.assertEqual(resp[IPv6].tc, ECN_CE)
349 self.assertEqual(resp[IPv6].tc, ECN_CE)
[all …]
/dpdk/drivers/net/atlantic/hw_atl/
H A Dhw_atl_b0.c29 int hw_atl_b0_set_fc(struct aq_hw_s *self, u32 fc, u32 tc) in hw_atl_b0_set_fc() argument
31 hw_atl_rpb_rx_xoff_en_per_tc_set(self, !!(fc & AQ_NIC_FC_RX), tc); in hw_atl_b0_set_fc()
37 u32 tc = 0U; in hw_atl_b0_hw_qos_set() local
60 hw_atl_tpb_tx_pkt_buff_size_per_tc_set(self, buff_size, tc); in hw_atl_b0_hw_qos_set()
64 100U, tc); in hw_atl_b0_hw_qos_set()
68 100U, tc); in hw_atl_b0_hw_qos_set()
71 tc = 0; in hw_atl_b0_hw_qos_set()
74 hw_atl_rpb_rx_pkt_buff_size_per_tc_set(self, buff_size, tc); in hw_atl_b0_hw_qos_set()
78 100U, tc); in hw_atl_b0_hw_qos_set()
82 100U, tc); in hw_atl_b0_hw_qos_set()
[all …]
H A Dhw_atl_llh_internal.h2106 #define HW_ATL_TPS_DESC_TCTCREDIT_MAX_ADR(tc) (0x00007210 + (tc) * 0x4) argument
2125 #define HW_ATL_TPS_DESC_TCTWEIGHT_ADR(tc) (0x00007210 + (tc) * 0x4) argument
2162 #define HW_ATL_TPS_DATA_TCTCREDIT_MAX_ADR(tc) (0x00007110 + (tc) * 0x4) argument
2181 #define HW_ATL_TPS_DATA_TCTWEIGHT_ADR(tc) (0x00007110 + (tc) * 0x4) argument
/dpdk/app/test-bbdev/
H A Dmain.c189 int tc, ret; in parse_args() local
233 for (tc = 0; tc < ret; ++tc) { in parse_args()
236 if (!strcmp(tokens[tc], t->command)) in parse_args()
241 tokens[tc]); in parse_args()
/dpdk/drivers/net/iavf/
H A Diavf_tm.c411 tm_node->tc = vf->tm_conf.nb_tc_node; in iavf_tm_node_add()
416 tm_node->tc = parent_node->tc; in iavf_tm_node_add()
772 tc_cap = vf->qos_cap->cap[tm_node->tc]; in iavf_node_capabilities_get()
773 if (tc_cap.tc_num != tm_node->tc) { in iavf_node_capabilities_get()
857 if (tm_node->tc >= q_tc_mapping->num_tc) { in iavf_hierarchy_commit()
862 q_tc_mapping->tc[tm_node->tc].req.queue_count++; in iavf_hierarchy_commit()
872 q_bw->cfg[node_committed].tc = tm_node->tc; in iavf_hierarchy_commit()
896 q_tc_mapping->tc[i].req.start_queue_id = index; in iavf_hierarchy_commit()
897 index += q_tc_mapping->tc[i].req.queue_count; in iavf_hierarchy_commit()
898 qtc_map[i].tc = i; in iavf_hierarchy_commit()
[all …]
H A Drte_pmd_iavf.h57 tc:8, member
64 tc:8, member
217 data.ipv6.tc, in rte_pmd_ifd_dump_proto_xtr_metadata()
226 data.ipv6_flow.tc, in rte_pmd_ifd_dump_proto_xtr_metadata()
/dpdk/drivers/net/ice/
H A Dice_dcf_sched.c380 tm_node->tc = hw->tm_conf.nb_tc_node; in ice_dcf_node_add()
385 tm_node->tc = parent_node->tc; in ice_dcf_node_add()
659 tm_node->tc); in ice_dcf_commit_check()
719 uint32_t tc; in ice_dcf_clear_bw() local
727 for (tc = 0; tc < hw->tm_conf.nb_tc_node; tc++) { in ice_dcf_clear_bw()
728 hw->qos_bw_cfg[vf_id]->cfg[tc].shaper.peak = 0; in ice_dcf_clear_bw()
729 hw->qos_bw_cfg[vf_id]->cfg[tc].shaper.committed = 0; in ice_dcf_clear_bw()
806 if (tm_node->id - hw->num_vfs * tm_node->tc != vf_id) in ice_dcf_hierarchy_commit()
808 vf_bw->cfg[num_elem].tc_num = tm_node->tc; in ice_dcf_hierarchy_commit()
823 tc_bw->cfg[tm_node->tc].shaper.peak += in ice_dcf_hierarchy_commit()
[all …]
H A Drte_pmd_ice.h57 tc:8, member
64 tc:8, member
212 data.ipv6.tc, in rte_net_ice_dump_proto_xtr_metadata()
220 data.ipv6_flow.tc, in rte_net_ice_dump_proto_xtr_metadata()
/dpdk/lib/net/
H A Drte_mpls.h29 uint8_t tc:3; /**< Traffic class. */ member
33 uint8_t tc:3; /**< Traffic class. */ member

12345