Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/sched/
Dsch_tbf.c145 struct tc_tbf_qopt_offload qopt; in tbf_offload_change() local
150 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()
153 qopt.replace_params.rate = q->rate; in tbf_offload_change()
154 qopt.replace_params.max_size = q->max_size; in tbf_offload_change()
155 qopt.replace_params.qstats = &sch->qstats; in tbf_offload_change()
157 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TBF, &qopt); in tbf_offload_change()
163 struct tc_tbf_qopt_offload qopt; in tbf_offload_destroy() local
168 qopt.command = TC_TBF_DESTROY; in tbf_offload_destroy()
[all …]
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()
66 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_FIFO, &qopt); 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()
80 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_FIFO, &qopt); in fifo_offload_destroy()
[all …]
Dsch_mqprio.c62 static int mqprio_parse_opt(struct net_device *dev, struct tc_mqprio_qopt *qopt) in mqprio_parse_opt() argument
67 if (qopt->num_tc > TC_MAX_QUEUE) in mqprio_parse_opt()
72 if (qopt->prio_tc_map[i] >= qopt->num_tc) in mqprio_parse_opt()
80 if (qopt->hw > TC_MQPRIO_HW_OFFLOAD_MAX) in mqprio_parse_opt()
81 qopt->hw = TC_MQPRIO_HW_OFFLOAD_MAX; in mqprio_parse_opt()
88 if (qopt->hw) in mqprio_parse_opt()
91 for (i = 0; i < qopt->num_tc; i++) { in mqprio_parse_opt()
92 unsigned int last = qopt->offset[i] + qopt->count[i]; in mqprio_parse_opt()
97 if (qopt->offset[i] >= dev->real_num_tx_queues || in mqprio_parse_opt()
98 !qopt->count[i] || in mqprio_parse_opt()
[all …]
Dsch_ets.c109 struct tc_ets_qopt_offload qopt; in ets_offload_change() local
121 qopt.command = TC_ETS_REPLACE; in ets_offload_change()
122 qopt.handle = sch->handle; in ets_offload_change()
123 qopt.parent = sch->parent; in ets_offload_change()
124 qopt.replace_params.bands = q->nbands; in ets_offload_change()
125 qopt.replace_params.qstats = &sch->qstats; in ets_offload_change()
126 memcpy(&qopt.replace_params.priomap, in ets_offload_change()
139 qopt.replace_params.quanta[i] = quantum; in ets_offload_change()
140 qopt.replace_params.weights[i] = weight; in ets_offload_change()
143 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_ETS, &qopt); in ets_offload_change()
[all …]
Dsch_etf.c44 static inline int validate_input_params(struct tc_etf_qopt *qopt, in validate_input_params() argument
57 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()
376 DEADLINE_MODE_IS_ON(qopt) ? "on" : "off"); in etf_init()
378 err = validate_input_params(qopt, extack); in etf_init()
[all …]
Dsch_prio.c140 static int prio_offload(struct Qdisc *sch, struct tc_prio_qopt *qopt) in prio_offload() argument
151 if (qopt) { in prio_offload()
153 opt.replace_params.bands = qopt->bands; in prio_offload()
154 memcpy(&opt.replace_params.priomap, qopt->priomap, in prio_offload()
182 struct tc_prio_qopt *qopt; in prio_tune() local
184 if (nla_len(opt) < sizeof(*qopt)) in prio_tune()
186 qopt = nla_data(opt); in prio_tune()
188 if (qopt->bands > TCQ_PRIO_BANDS || qopt->bands < 2) in prio_tune()
192 if (qopt->priomap[i] >= qopt->bands) in prio_tune()
197 for (i = oldbands; i < qopt->bands; i++) { in prio_tune()
[all …]
Dsch_cbs.c366 struct tc_cbs_qopt *qopt; in cbs_change() local
379 qopt = nla_data(tb[TCA_CBS_PARMS]); in cbs_change()
381 if (!qopt->offload) { in cbs_change()
385 err = cbs_enable_offload(dev, q, qopt, extack); in cbs_change()
391 q->hicredit = qopt->hicredit; in cbs_change()
392 q->locredit = qopt->locredit; in cbs_change()
393 q->idleslope = qopt->idleslope * BYTES_PER_KBIT; in cbs_change()
394 q->sendslope = qopt->sendslope * BYTES_PER_KBIT; in cbs_change()
395 q->offload = qopt->offload; in cbs_change()
Dsch_netem.c959 struct tc_netem_qopt *qopt; in netem_change() local
967 qopt = nla_data(opt); in netem_change()
968 ret = parse_attr(tb, TCA_NETEM_MAX, opt, netem_policy, sizeof(*qopt)); in netem_change()
1000 sch->limit = qopt->limit; in netem_change()
1002 q->latency = PSCHED_TICKS2NS(qopt->latency); in netem_change()
1003 q->jitter = PSCHED_TICKS2NS(qopt->jitter); 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()
1008 q->duplicate = qopt->duplicate; in netem_change()
[all …]
Dsch_multiq.c175 struct tc_multiq_qopt *qopt; in multiq_tune() local
181 if (nla_len(opt) < sizeof(*qopt)) in multiq_tune()
184 qopt = nla_data(opt); in multiq_tune()
186 qopt->bands = qdisc_dev(sch)->real_num_tx_queues; in multiq_tune()
194 q->bands = qopt->bands; in multiq_tune()
Dsch_hfsc.c1393 struct tc_hfsc_qopt *qopt; in hfsc_init_qdisc() local
1398 if (!opt || nla_len(opt) < sizeof(*qopt)) in hfsc_init_qdisc()
1400 qopt = nla_data(opt); in hfsc_init_qdisc()
1402 q->defcls = qopt->defcls; in hfsc_init_qdisc()
1435 struct tc_hfsc_qopt *qopt; in hfsc_change_qdisc() local
1437 if (opt == NULL || nla_len(opt) < sizeof(*qopt)) in hfsc_change_qdisc()
1439 qopt = nla_data(opt); in hfsc_change_qdisc()
1442 q->defcls = qopt->defcls; in hfsc_change_qdisc()
1521 struct tc_hfsc_qopt qopt; in hfsc_dump_qdisc() local
1523 qopt.defcls = q->defcls; in hfsc_dump_qdisc()
[all …]
Dsch_taprio.c922 struct tc_mqprio_qopt *qopt, in taprio_parse_mqprio_opt() argument
928 if (!qopt && !dev->num_tc) { in taprio_parse_mqprio_opt()
940 if (qopt->num_tc > TC_MAX_QUEUE) { in taprio_parse_mqprio_opt()
946 if (qopt->num_tc > dev->num_tx_queues) { in taprio_parse_mqprio_opt()
953 if (qopt->prio_tc_map[i] >= qopt->num_tc) { in taprio_parse_mqprio_opt()
959 for (i = 0; i < qopt->num_tc; i++) { in taprio_parse_mqprio_opt()
960 unsigned int last = qopt->offset[i] + qopt->count[i]; in taprio_parse_mqprio_opt()
965 if (qopt->offset[i] >= dev->num_tx_queues || in taprio_parse_mqprio_opt()
966 !qopt->count[i] || in taprio_parse_mqprio_opt()
976 for (j = i + 1; j < qopt->num_tc; j++) { in taprio_parse_mqprio_opt()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_tc.c310 struct tc_cbs_qopt_offload *qopt) in tc_setup_cbs() argument
313 u32 queue = qopt->queue; in tc_setup_cbs()
352 if (mode_to_use == MTL_QUEUE_DCB && qopt->enable) { in tc_setup_cbs()
358 } else if (!qopt->enable) { in tc_setup_cbs()
368 value = div_s64(qopt->idleslope * 1024ll * ptr, speed_div); in tc_setup_cbs()
371 value = div_s64(-qopt->sendslope * 1024ll * ptr, speed_div); in tc_setup_cbs()
374 value = qopt->hicredit * 1024ll * 8; in tc_setup_cbs()
377 value = qopt->locredit * 1024ll * 8; in tc_setup_cbs()
390 queue, qopt->sendslope, qopt->idleslope, in tc_setup_cbs()
391 qopt->hicredit, qopt->locredit); in tc_setup_cbs()
[all …]
Dstmmac_selftests.c1760 struct tc_etf_qopt_offload qopt; in stmmac_test_tbs() local
1776 qopt.enable = true; in stmmac_test_tbs()
1777 qopt.queue = i; in stmmac_test_tbs()
1779 ret = stmmac_tc_setup_etf(priv, priv, &qopt); in stmmac_test_tbs()
1813 qopt.enable = false; in stmmac_test_tbs()
1814 stmmac_tc_setup_etf(priv, priv, &qopt); in stmmac_test_tbs()
Dhwif.h558 struct tc_cbs_qopt_offload *qopt);
562 struct tc_taprio_qopt_offload *qopt);
564 struct tc_etf_qopt_offload *qopt);
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_mqprio.c19 if (!mqprio->qopt.num_tc) in cxgb4_mqprio_validate()
22 if (mqprio->qopt.hw != TC_MQPRIO_HW_OFFLOAD_TCS) { in cxgb4_mqprio_validate()
31 } else if (mqprio->qopt.num_tc > adap->params.nsched_cls) { in cxgb4_mqprio_validate()
47 for (i = 0; i < mqprio->qopt.num_tc; i++) { in cxgb4_mqprio_validate()
48 qoffset = max_t(u16, mqprio->qopt.offset[i], qoffset); 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()
52 end_a = start_a + mqprio->qopt.count[i] - 1; in cxgb4_mqprio_validate()
53 for (j = i + 1; j < mqprio->qopt.num_tc; j++) { in cxgb4_mqprio_validate()
54 start_b = mqprio->qopt.offset[j]; in cxgb4_mqprio_validate()
[all …]
Dcxgb4_debugfs.c2863 for (tc = 0; tc < port_mqprio->mqprio.qopt.num_tc; tc++) in sge_qinfo_show()
2864 entries += port_mqprio->mqprio.qopt.count[tc]; in sge_qinfo_show()
3170 for (tc = 0; tc < port_mqprio->mqprio.qopt.num_tc; tc++) in sge_queue_entries()
3171 entries += port_mqprio->mqprio.qopt.count[tc]; in sge_queue_entries()
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_main.c389 err = aq_validate_mqprio_opt(aq_nic, mqprio, mqprio->qopt.num_tc); in aq_ndo_setup_tc()
393 for (i = 0; i < mqprio->qopt.num_tc; i++) { in aq_ndo_setup_tc()
409 return aq_nic_setup_tc_mqprio(aq_nic, mqprio->qopt.num_tc, in aq_ndo_setup_tc()
410 mqprio->qopt.prio_tc_map); in aq_ndo_setup_tc()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
Digc_main.c4845 const struct tc_taprio_qopt_offload *qopt) in validate_schedule() argument
4851 if (qopt->cycle_time_extension) in validate_schedule()
4861 if (!is_base_time_past(qopt->base_time, &now)) in validate_schedule()
4864 for (n = 0; n < qopt->num_entries; n++) { in validate_schedule()
4868 prev = n ? &qopt->entries[n - 1] : NULL; in validate_schedule()
4869 e = &qopt->entries[n]; in validate_schedule()
4895 struct tc_etf_qopt_offload *qopt) in igc_tsn_enable_launchtime() argument
4903 err = igc_save_launchtime_params(adapter, qopt->queue, qopt->enable); in igc_tsn_enable_launchtime()
4911 struct tc_taprio_qopt_offload *qopt) in igc_save_qbv_schedule() argument
4918 if (!qopt->enable) { in igc_save_qbv_schedule()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/
Diavf_main.c2584 if (mqprio_qopt->qopt.num_tc > IAVF_MAX_TRAFFIC_CLASS || in iavf_validate_ch_config()
2585 mqprio_qopt->qopt.num_tc < 1) in iavf_validate_ch_config()
2588 for (i = 0; i <= mqprio_qopt->qopt.num_tc - 1; i++) { in iavf_validate_ch_config()
2589 if (!mqprio_qopt->qopt.count[i] || in iavf_validate_ch_config()
2590 mqprio_qopt->qopt.offset[i] != num_qps) in iavf_validate_ch_config()
2621 num_qps += mqprio_qopt->qopt.count[i]; in iavf_validate_ch_config()
2673 num_tc = mqprio_qopt->qopt.num_tc; in __iavf_setup_tc()
2677 if (!mqprio_qopt->qopt.hw) { in __iavf_setup_tc()
2714 mqprio_qopt->qopt.count[i]; in __iavf_setup_tc()
2716 mqprio_qopt->qopt.offset[i]; in __iavf_setup_tc()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/
Denetc_qos.c303 struct tc_etf_qopt_offload *qopt = type_data; in enetc_setup_tc_txtime() local
311 tc = qopt->queue; in enetc_setup_tc_txtime()
324 priv->tx_ring[tc]->tsd_enable = qopt->enable; in enetc_setup_tc_txtime()
325 enetc_port_wr(hw, ENETC_PTCTSDR(tc), qopt->enable ? ENETC_TSDE : 0); in enetc_setup_tc_txtime()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/
Digb_main.c2559 struct tc_cbs_qopt_offload *qopt) in igb_offload_cbs() argument
2569 if (qopt->queue < 0 || qopt->queue > 1) in igb_offload_cbs()
2572 err = igb_save_cbs_params(adapter, qopt->queue, qopt->enable, in igb_offload_cbs()
2573 qopt->idleslope, qopt->sendslope, in igb_offload_cbs()
2574 qopt->hicredit, qopt->locredit); in igb_offload_cbs()
2578 igb_offload_apply(adapter, qopt->queue); in igb_offload_cbs()
2794 struct tc_etf_qopt_offload *qopt) in igb_offload_txtime() argument
2804 if (qopt->queue < 0 || qopt->queue > 1) in igb_offload_txtime()
2807 err = igb_save_txtime_params(adapter, qopt->queue, qopt->enable); in igb_offload_txtime()
2811 igb_offload_apply(adapter, qopt->queue); in igb_offload_txtime()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_main.c1809 vsi->tc_config.numtc = vsi->mqprio_qopt.qopt.num_tc; in i40e_vsi_setup_queue_map_mqprio()
1811 num_qps = vsi->mqprio_qopt.qopt.count[0]; in i40e_vsi_setup_queue_map_mqprio()
1821 max_qcount = vsi->mqprio_qopt.qopt.count[0]; in i40e_vsi_setup_queue_map_mqprio()
1825 offset = vsi->mqprio_qopt.qopt.offset[i]; in i40e_vsi_setup_queue_map_mqprio()
1826 qcount = vsi->mqprio_qopt.qopt.count[i]; in i40e_vsi_setup_queue_map_mqprio()
1868 override_q = vsi->mqprio_qopt.qopt.count[0]; in i40e_vsi_setup_queue_map_mqprio()
5263 u8 num_tc = vsi->mqprio_qopt.qopt.num_tc; in i40e_mqprio_get_enabled_tc()
5285 return pf->vsi[pf->lan_vsi]->mqprio_qopt.qopt.num_tc; in i40e_pf_get_num_tc()
5415 if (!vsi->mqprio_qopt.qopt.hw && !(pf->flags & I40E_FLAG_DCB_ENABLED)) { in i40e_vsi_configure_bw_alloc()
5656 if (!vsi->mqprio_qopt.qopt.hw && vsi->reconfig_rss) { in i40e_vsi_config_tc()
[all …]
/kernel/linux/linux-5.10/include/net/
Dpkt_cls.h754 struct tc_mqprio_qopt qopt; member
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c1747 u8 *prio_tc = mqprio_qopt->qopt.prio_tc_map; in hns3_setup_tc()
1749 u8 tc = mqprio_qopt->qopt.num_tc; in hns3_setup_tc()
1751 u8 hw = mqprio_qopt->qopt.hw; in hns3_setup_tc()