Home
last modified time | relevance | path

Searched refs:qopt (Results 1 – 25 of 31) sorted by relevance

12

/linux/net/sched/
A Dsch_tbf.c150 qopt.command = TC_TBF_REPLACE; in tbf_offload_change()
151 qopt.handle = sch->handle; in tbf_offload_change()
152 qopt.parent = sch->parent; in tbf_offload_change()
169 qopt.handle = sch->handle; in tbf_offload_destroy()
170 qopt.parent = sch->parent; in tbf_offload_destroy()
178 qopt.command = TC_TBF_STATS; in tbf_offload_dump()
179 qopt.handle = sch->handle; in tbf_offload_dump()
180 qopt.parent = sch->parent; in tbf_offload_dump()
357 struct tc_tbf_qopt *qopt; in tbf_change() local
399 if (qopt->peakrate.rate) { in tbf_change()
[all …]
A Dsch_mqprio.c72 if (qopt->prio_tc_map[i] >= qopt->num_tc) in mqprio_parse_opt()
88 if (qopt->hw) in mqprio_parse_opt()
92 unsigned int last = qopt->offset[i] + qopt->count[i]; in mqprio_parse_opt()
98 !qopt->count[i] || in mqprio_parse_opt()
163 qopt = nla_data(opt); in mqprio_init()
170 sizeof(*qopt)); in mqprio_init()
174 if (!qopt->hw) in mqprio_init()
195 if (i >= qopt->num_tc) in mqprio_init()
243 if (qopt->hw) { in mqprio_init()
244 struct tc_mqprio_qopt_offload mqprio = {.qopt = *qopt}; in mqprio_init()
[all …]
A Dsch_fifo.c58 struct tc_fifo_qopt_offload qopt; in fifo_offload_init() local
63 qopt.command = TC_FIFO_REPLACE; in fifo_offload_init()
64 qopt.handle = sch->handle; in fifo_offload_init()
65 qopt.parent = sch->parent; in fifo_offload_init()
72 struct tc_fifo_qopt_offload qopt; in fifo_offload_destroy() local
77 qopt.command = TC_FIFO_DESTROY; in fifo_offload_destroy()
78 qopt.handle = sch->handle; in fifo_offload_destroy()
79 qopt.parent = sch->parent; in fifo_offload_destroy()
87 qopt.command = TC_FIFO_STATS; in fifo_offload_dump()
88 qopt.handle = sch->handle; in fifo_offload_dump()
[all …]
A Dsch_ets.c122 qopt.handle = sch->handle; in ets_offload_change()
123 qopt.parent = sch->parent; in ets_offload_change()
155 qopt.handle = sch->handle; in ets_offload_destroy()
156 qopt.parent = sch->parent; in ets_offload_destroy()
167 qopt.command = TC_ETS_GRAFT; in ets_offload_graft()
168 qopt.handle = sch->handle; in ets_offload_graft()
169 qopt.parent = sch->parent; in ets_offload_graft()
174 &qopt, extack); in ets_offload_graft()
181 qopt.command = TC_ETS_STATS; in ets_offload_dump()
182 qopt.handle = sch->handle; in ets_offload_dump()
[all …]
A Dsch_etf.c57 if (qopt->clockid < 0) { in validate_input_params()
62 if (qopt->clockid != CLOCK_TAI) { in validate_input_params()
67 if (qopt->delta < 0) { in validate_input_params()
352 struct tc_etf_qopt *qopt; in etf_init() local
371 qopt = nla_data(tb[TCA_ETF_PARMS]); in etf_init()
374 qopt->delta, qopt->clockid, in etf_init()
375 OFFLOAD_IS_ON(qopt) ? "on" : "off", in etf_init()
384 if (OFFLOAD_IS_ON(qopt)) { in etf_init()
391 q->delta = qopt->delta; in etf_init()
392 q->clockid = qopt->clockid; in etf_init()
[all …]
A Dsch_prio.c153 if (qopt) { in prio_offload()
155 opt.replace_params.bands = qopt->bands; in prio_offload()
156 memcpy(&opt.replace_params.priomap, qopt->priomap, in prio_offload()
184 struct tc_prio_qopt *qopt; in prio_tune() local
186 if (nla_len(opt) < sizeof(*qopt)) in prio_tune()
188 qopt = nla_data(opt); in prio_tune()
190 if (qopt->bands > TCQ_PRIO_BANDS || qopt->bands < 2) in prio_tune()
194 if (qopt->priomap[i] >= qopt->bands) in prio_tune()
199 for (i = oldbands; i < qopt->bands; i++) { in prio_tune()
210 prio_offload(sch, qopt); in prio_tune()
[all …]
A Dsch_netem.c959 struct tc_netem_qopt *qopt; in netem_change() local
967 qopt = nla_data(opt); in netem_change()
1000 sch->limit = qopt->limit; in netem_change()
1004 q->limit = qopt->limit; in netem_change()
1005 q->gap = qopt->gap; in netem_change()
1007 q->loss = qopt->loss; in netem_change()
1142 struct tc_netem_qopt qopt; in netem_dump() local
1153 qopt.limit = q->limit; in netem_dump()
1154 qopt.loss = q->loss; in netem_dump()
1155 qopt.gap = q->gap; in netem_dump()
[all …]
A Dsch_cbs.c367 struct tc_cbs_qopt *qopt; in cbs_change() local
380 qopt = nla_data(tb[TCA_CBS_PARMS]); in cbs_change()
382 if (!qopt->offload) { in cbs_change()
386 err = cbs_enable_offload(dev, q, qopt, extack); in cbs_change()
392 q->hicredit = qopt->hicredit; in cbs_change()
393 q->locredit = qopt->locredit; in cbs_change()
394 q->idleslope = qopt->idleslope * BYTES_PER_KBIT; in cbs_change()
395 q->sendslope = qopt->sendslope * BYTES_PER_KBIT; in cbs_change()
396 q->offload = qopt->offload; in cbs_change()
A Dsch_multiq.c176 struct tc_multiq_qopt *qopt; in multiq_tune() local
182 if (nla_len(opt) < sizeof(*qopt)) in multiq_tune()
185 qopt = nla_data(opt); in multiq_tune()
187 qopt->bands = qdisc_dev(sch)->real_num_tx_queues; in multiq_tune()
195 q->bands = qopt->bands; in multiq_tune()
A Dsch_hfsc.c1388 struct tc_hfsc_qopt *qopt; in hfsc_init_qdisc() local
1393 if (!opt || nla_len(opt) < sizeof(*qopt)) in hfsc_init_qdisc()
1395 qopt = nla_data(opt); in hfsc_init_qdisc()
1397 q->defcls = qopt->defcls; in hfsc_init_qdisc()
1431 struct tc_hfsc_qopt *qopt; in hfsc_change_qdisc() local
1433 if (opt == NULL || nla_len(opt) < sizeof(*qopt)) in hfsc_change_qdisc()
1435 qopt = nla_data(opt); in hfsc_change_qdisc()
1438 q->defcls = qopt->defcls; in hfsc_change_qdisc()
1519 struct tc_hfsc_qopt qopt; in hfsc_dump_qdisc() local
1521 qopt.defcls = q->defcls; in hfsc_dump_qdisc()
[all …]
A Dsch_taprio.c931 struct tc_mqprio_qopt *qopt, in taprio_parse_mqprio_opt() argument
937 if (!qopt && !dev->num_tc) { in taprio_parse_mqprio_opt()
949 if (qopt->num_tc > TC_MAX_QUEUE) { in taprio_parse_mqprio_opt()
955 if (qopt->num_tc > dev->num_tx_queues) { in taprio_parse_mqprio_opt()
962 if (qopt->prio_tc_map[i] >= qopt->num_tc) { in taprio_parse_mqprio_opt()
968 for (i = 0; i < qopt->num_tc; i++) { in taprio_parse_mqprio_opt()
969 unsigned int last = qopt->offset[i] + qopt->count[i]; in taprio_parse_mqprio_opt()
974 if (qopt->offset[i] >= dev->num_tx_queues || in taprio_parse_mqprio_opt()
975 !qopt->count[i] || in taprio_parse_mqprio_opt()
985 for (j = i + 1; j < qopt->num_tc; j++) { in taprio_parse_mqprio_opt()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_tc_mqprio.c19 if (!mqprio->qopt.num_tc) in cxgb4_mqprio_validate()
49 qcount += mqprio->qopt.count[i]; in cxgb4_mqprio_validate()
51 start_a = mqprio->qopt.offset[i]; in cxgb4_mqprio_validate()
54 start_b = mqprio->qopt.offset[j]; in cxgb4_mqprio_validate()
62 if (!mqprio->qopt.count[i]) in cxgb4_mqprio_validate()
65 if (!mqprio->qopt.count[j]) in cxgb4_mqprio_validate()
446 qcount = mqprio->qopt.count[i]; in cxgb4_mqprio_enable_offload()
486 qcount = mqprio->qopt.count[i]; in cxgb4_mqprio_enable_offload()
510 i = mqprio->qopt.num_tc; in cxgb4_mqprio_enable_offload()
515 qcount = mqprio->qopt.count[i]; in cxgb4_mqprio_enable_offload()
[all …]
/linux/drivers/net/ethernet/stmicro/stmmac/
A Dstmmac_tc.c344 u32 queue = qopt->queue; in tc_setup_cbs()
389 } else if (!qopt->enable) { in tc_setup_cbs()
421 queue, qopt->sendslope, qopt->idleslope, in tc_setup_cbs()
422 qopt->hicredit, qopt->locredit); in tc_setup_cbs()
845 if (!qopt->enable) in tc_setup_taprio()
849 if (!qopt->cycle_time) in tc_setup_taprio()
863 size = qopt->num_entries; in tc_setup_taprio()
904 qopt->cycle_time); in tc_setup_taprio()
913 ctr = qopt->cycle_time; in tc_setup_taprio()
976 if (qopt->enable) in tc_setup_etf()
[all …]
A Dstmmac_selftests.c1757 struct tc_etf_qopt_offload qopt; in stmmac_test_tbs() local
1773 qopt.enable = true; in stmmac_test_tbs()
1774 qopt.queue = i; in stmmac_test_tbs()
1776 ret = stmmac_tc_setup_etf(priv, priv, &qopt); in stmmac_test_tbs()
1810 qopt.enable = false; in stmmac_test_tbs()
1811 stmmac_tc_setup_etf(priv, priv, &qopt); in stmmac_test_tbs()
A Dhwif.h580 struct tc_cbs_qopt_offload *qopt);
584 struct tc_taprio_qopt_offload *qopt);
586 struct tc_etf_qopt_offload *qopt);
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A Dhclge_dcb.c400 if (!mqprio_qopt->qopt.num_tc) { in hclge_mqprio_qopt_check()
401 mqprio_qopt->qopt.num_tc = 1; in hclge_mqprio_qopt_check()
406 mqprio_qopt->qopt.prio_tc_map); in hclge_mqprio_qopt_check()
410 for (i = 0; i < mqprio_qopt->qopt.num_tc; i++) { in hclge_mqprio_qopt_check()
411 if (!is_power_of_2(mqprio_qopt->qopt.count[i])) { in hclge_mqprio_qopt_check()
424 if (mqprio_qopt->qopt.offset[i] != queue_sum) { in hclge_mqprio_qopt_check()
436 queue_sum = mqprio_qopt->qopt.offset[i]; in hclge_mqprio_qopt_check()
437 queue_sum += mqprio_qopt->qopt.count[i]; in hclge_mqprio_qopt_check()
453 tc_info->num_tc = mqprio_qopt->qopt.num_tc; in hclge_sync_mqprio_qopt()
456 memcpy(tc_info->tqp_count, mqprio_qopt->qopt.count, in hclge_sync_mqprio_qopt()
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/
A Daq_main.c392 err = aq_validate_mqprio_opt(aq_nic, mqprio, mqprio->qopt.num_tc); in aq_ndo_setup_tc()
396 for (i = 0; i < mqprio->qopt.num_tc; i++) { in aq_ndo_setup_tc()
412 return aq_nic_setup_tc_mqprio(aq_nic, mqprio->qopt.num_tc, in aq_ndo_setup_tc()
413 mqprio->qopt.prio_tc_map); in aq_ndo_setup_tc()
/linux/drivers/net/ethernet/ti/
A Dcpsw_priv.c931 struct tc_cbs_qopt_offload *qopt) in cpsw_set_cbs() argument
940 tc = netdev_txq_to_tc(priv->ndev, qopt->queue); in cpsw_set_cbs()
953 if (!qopt->enable && !priv->fifo_bw[fifo]) in cpsw_set_cbs()
977 bw = qopt->enable ? qopt->idleslope : 0; in cpsw_set_cbs()
1002 num_tc = mqprio->qopt.num_tc; in cpsw_set_mqprio()
1017 tc = mqprio->qopt.prio_tc_map[i]; in cpsw_set_mqprio()
1024 count = mqprio->qopt.count[i]; in cpsw_set_mqprio()
1025 offset = mqprio->qopt.offset[i]; in cpsw_set_mqprio()
1030 if (!mqprio->qopt.hw) { in cpsw_set_mqprio()
1036 priv->mqprio_hw = mqprio->qopt.hw; in cpsw_set_mqprio()
/linux/drivers/net/ethernet/intel/igc/
A Digc_main.c5785 if (qopt->cycle_time_extension) in validate_schedule()
5802 e = &qopt->entries[n]; in validate_schedule()
5831 err = igc_save_launchtime_params(adapter, qopt->queue, qopt->enable); in igc_tsn_enable_launchtime()
5861 if (!qopt->enable) in igc_save_qbv_schedule()
5867 if (!validate_schedule(adapter, qopt)) in igc_save_qbv_schedule()
5870 adapter->cycle_time = qopt->cycle_time; in igc_save_qbv_schedule()
5871 adapter->base_time = qopt->base_time; in igc_save_qbv_schedule()
5970 if (qopt->queue < 0 || qopt->queue > 1) in igc_tsn_enable_cbs()
5973 err = igc_save_cbs_params(adapter, qopt->queue, qopt->enable, in igc_tsn_enable_cbs()
5974 qopt->idleslope, qopt->sendslope, in igc_tsn_enable_cbs()
[all …]
/linux/drivers/net/ethernet/intel/iavf/
A Diavf_main.c2693 mqprio_qopt->qopt.num_tc < 1) in iavf_validate_ch_config()
2697 if (!mqprio_qopt->qopt.count[i] || in iavf_validate_ch_config()
2698 mqprio_qopt->qopt.offset[i] != num_qps) in iavf_validate_ch_config()
2709 num_qps += mqprio_qopt->qopt.count[i]; in iavf_validate_ch_config()
2761 num_tc = mqprio_qopt->qopt.num_tc; in __iavf_setup_tc()
2765 if (!mqprio_qopt->qopt.hw) { in __iavf_setup_tc()
2802 mqprio_qopt->qopt.count[i]; in __iavf_setup_tc()
2804 mqprio_qopt->qopt.offset[i]; in __iavf_setup_tc()
2805 total_qps += mqprio_qopt->qopt.count[i]; in __iavf_setup_tc()
2825 u16 qcount = mqprio_qopt->qopt.count[i]; in __iavf_setup_tc()
[all …]
/linux/drivers/net/ethernet/intel/ice/
A Dice_lib.c3558 if (!vsi->mqprio_qopt.qopt.count[i]) in ice_vsi_cfg_netdev_tc()
3561 vsi->mqprio_qopt.qopt.count[i], in ice_vsi_cfg_netdev_tc()
3562 vsi->mqprio_qopt.qopt.offset[i]); in ice_vsi_cfg_netdev_tc()
3590 u16 tc0_offset = vsi->mqprio_qopt.qopt.offset[0]; in ice_vsi_setup_q_map_mqprio()
3591 int tc0_qcount = vsi->mqprio_qopt.qopt.count[0]; in ice_vsi_setup_q_map_mqprio()
3613 offset = vsi->mqprio_qopt.qopt.offset[i]; in ice_vsi_setup_q_map_mqprio()
3614 qcount_rx = vsi->mqprio_qopt.qopt.count[i]; in ice_vsi_setup_q_map_mqprio()
3615 qcount_tx = vsi->mqprio_qopt.qopt.count[i]; in ice_vsi_setup_q_map_mqprio()
3626 offset = vsi->mqprio_qopt.qopt.offset[i]; in ice_vsi_setup_q_map_mqprio()
3627 qcount_rx = vsi->mqprio_qopt.qopt.count[i]; in ice_vsi_setup_q_map_mqprio()
[all …]
A Dice_main.c7438 if (mqprio_qopt->qopt.offset[0] != 0 || in ice_validate_mqprio_qopt()
7439 mqprio_qopt->qopt.num_tc < 1 || in ice_validate_mqprio_qopt()
7445 num_tc = mqprio_qopt->qopt.num_tc; in ice_validate_mqprio_qopt()
7448 int qcount = mqprio_qopt->qopt.count[i]; in ice_validate_mqprio_qopt()
7523 if (i >= mqprio_qopt->qopt.num_tc - 1) in ice_validate_mqprio_qopt()
7525 if (mqprio_qopt->qopt.offset[i + 1] != in ice_validate_mqprio_qopt()
7530 (mqprio_qopt->qopt.offset[i] + mqprio_qopt->qopt.count[i])) in ice_validate_mqprio_qopt()
7533 (mqprio_qopt->qopt.offset[i] + mqprio_qopt->qopt.count[i])) in ice_validate_mqprio_qopt()
8118 num_tcf = mqprio_qopt->qopt.num_tc; in ice_setup_tc_mqprio_qdisc()
8119 hw = mqprio_qopt->qopt.hw; in ice_setup_tc_mqprio_qdisc()
[all …]
A Dice_dcb_lib.c260 qoffset = vsi->mqprio_qopt.qopt.offset[n]; in ice_vsi_cfg_dcb_rings()
261 qcount = vsi->mqprio_qopt.qopt.count[n]; in ice_vsi_cfg_dcb_rings()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_main.c3122 struct tc_mqprio_qopt *qopt) in mlx5e_mqprio_build_tc_to_txq() argument
3128 .count = qopt->count[tc], in mlx5e_mqprio_build_tc_to_txq()
3129 .offset = qopt->offset[tc], in mlx5e_mqprio_build_tc_to_txq()
3144 struct tc_mqprio_qopt *qopt, in mlx5e_params_mqprio_channel_set() argument
3148 params->mqprio.num_tc = qopt->num_tc; in mlx5e_params_mqprio_channel_set()
3196 if (mqprio->qopt.offset[0] != 0 || mqprio->qopt.num_tc < 1 || in mlx5e_mqprio_channel_validate()
3200 for (i = 0; i < mqprio->qopt.num_tc; i++) { in mlx5e_mqprio_channel_validate()
3201 if (!mqprio->qopt.count[i]) { in mlx5e_mqprio_channel_validate()
3218 if (mqprio->qopt.offset[i] != agg_count) { in mlx5e_mqprio_channel_validate()
3222 agg_count += mqprio->qopt.count[i]; in mlx5e_mqprio_channel_validate()
[all …]
/linux/drivers/net/ethernet/freescale/enetc/
A Denetc_qos.c298 struct tc_etf_qopt_offload *qopt = type_data; in enetc_setup_tc_txtime() local
305 tc = qopt->queue; in enetc_setup_tc_txtime()
318 priv->tx_ring[tc]->tsd_enable = qopt->enable; in enetc_setup_tc_txtime()
320 qopt->enable ? ENETC_TSDE : 0); in enetc_setup_tc_txtime()

Completed in 134 milliseconds

12