/Linux-v4.19/net/sched/ |
D | sch_mqprio.c | 65 static int mqprio_parse_opt(struct net_device *dev, struct tc_mqprio_qopt *qopt) in mqprio_parse_opt() argument 70 if (qopt->num_tc > TC_MAX_QUEUE) in mqprio_parse_opt() 75 if (qopt->prio_tc_map[i] >= qopt->num_tc) in mqprio_parse_opt() 83 if (qopt->hw > TC_MQPRIO_HW_OFFLOAD_MAX) in mqprio_parse_opt() 84 qopt->hw = TC_MQPRIO_HW_OFFLOAD_MAX; in mqprio_parse_opt() 91 if (qopt->hw) in mqprio_parse_opt() 94 for (i = 0; i < qopt->num_tc; i++) { in mqprio_parse_opt() 95 unsigned int last = qopt->offset[i] + qopt->count[i]; in mqprio_parse_opt() 100 if (qopt->offset[i] >= dev->real_num_tx_queues || in mqprio_parse_opt() 101 !qopt->count[i] || in mqprio_parse_opt() [all …]
|
D | sch_etf.c | 42 static inline int validate_input_params(struct tc_etf_qopt *qopt, in validate_input_params() argument 55 if (qopt->clockid < 0) { in validate_input_params() 60 if (qopt->clockid != CLOCK_TAI) { in validate_input_params() 65 if (qopt->delta < 0) { in validate_input_params() 320 struct tc_etf_qopt *qopt; in etf_init() local 338 qopt = nla_data(tb[TCA_ETF_PARMS]); in etf_init() 341 qopt->delta, qopt->clockid, in etf_init() 342 OFFLOAD_IS_ON(qopt) ? "on" : "off", in etf_init() 343 DEADLINE_MODE_IS_ON(qopt) ? "on" : "off"); in etf_init() 345 err = validate_input_params(qopt, extack); in etf_init() [all …]
|
D | sch_tbf.c | 302 struct tc_tbf_qopt *qopt; in tbf_change() local 318 qopt = nla_data(tb[TCA_TBF_PARMS]); in tbf_change() 319 if (qopt->rate.linklayer == TC_LINKLAYER_UNAWARE) in tbf_change() 320 qdisc_put_rtab(qdisc_get_rtab(&qopt->rate, in tbf_change() 324 if (qopt->peakrate.linklayer == TC_LINKLAYER_UNAWARE) in tbf_change() 325 qdisc_put_rtab(qdisc_get_rtab(&qopt->peakrate, in tbf_change() 329 buffer = min_t(u64, PSCHED_TICKS2NS(qopt->buffer), ~0U); in tbf_change() 330 mtu = min_t(u64, PSCHED_TICKS2NS(qopt->mtu), ~0U); in tbf_change() 334 psched_ratecfg_precompute(&rate, &qopt->rate, rate64); in tbf_change() 343 if (qopt->peakrate.rate) { in tbf_change() [all …]
|
D | sch_prio.c | 145 static int prio_offload(struct Qdisc *sch, struct tc_prio_qopt *qopt) in prio_offload() argument 156 if (qopt) { in prio_offload() 158 opt.replace_params.bands = qopt->bands; in prio_offload() 159 memcpy(&opt.replace_params.priomap, qopt->priomap, in prio_offload() 187 struct tc_prio_qopt *qopt; in prio_tune() local 189 if (nla_len(opt) < sizeof(*qopt)) in prio_tune() 191 qopt = nla_data(opt); in prio_tune() 193 if (qopt->bands > TCQ_PRIO_BANDS || qopt->bands < 2) in prio_tune() 197 if (qopt->priomap[i] >= qopt->bands) in prio_tune() 202 for (i = oldbands; i < qopt->bands; i++) { in prio_tune() [all …]
|
D | sch_cbs.c | 302 struct tc_cbs_qopt *qopt; in cbs_change() local 314 qopt = nla_data(tb[TCA_CBS_PARMS]); in cbs_change() 316 if (!qopt->offload) { in cbs_change() 329 err = cbs_enable_offload(dev, q, qopt, extack); in cbs_change() 335 q->hicredit = qopt->hicredit; in cbs_change() 336 q->locredit = qopt->locredit; in cbs_change() 337 q->idleslope = qopt->idleslope * BYTES_PER_KBIT; in cbs_change() 338 q->sendslope = qopt->sendslope * BYTES_PER_KBIT; in cbs_change() 339 q->offload = qopt->offload; in cbs_change()
|
D | sch_netem.c | 914 struct tc_netem_qopt *qopt; in netem_change() local 922 qopt = nla_data(opt); in netem_change() 923 ret = parse_attr(tb, TCA_NETEM_MAX, opt, netem_policy, sizeof(*qopt)); in netem_change() 955 sch->limit = qopt->limit; in netem_change() 957 q->latency = PSCHED_TICKS2NS(qopt->latency); in netem_change() 958 q->jitter = PSCHED_TICKS2NS(qopt->jitter); in netem_change() 959 q->limit = qopt->limit; in netem_change() 960 q->gap = qopt->gap; in netem_change() 962 q->loss = qopt->loss; in netem_change() 963 q->duplicate = qopt->duplicate; in netem_change() [all …]
|
D | sch_multiq.c | 187 struct tc_multiq_qopt *qopt; in multiq_tune() local 192 if (nla_len(opt) < sizeof(*qopt)) in multiq_tune() 195 qopt = nla_data(opt); in multiq_tune() 197 qopt->bands = qdisc_dev(sch)->real_num_tx_queues; in multiq_tune() 200 q->bands = qopt->bands; in multiq_tune()
|
D | sch_hfsc.c | 1397 struct tc_hfsc_qopt *qopt; in hfsc_init_qdisc() local 1402 if (!opt || nla_len(opt) < sizeof(*qopt)) in hfsc_init_qdisc() 1404 qopt = nla_data(opt); in hfsc_init_qdisc() 1406 q->defcls = qopt->defcls; in hfsc_init_qdisc() 1439 struct tc_hfsc_qopt *qopt; in hfsc_change_qdisc() local 1441 if (opt == NULL || nla_len(opt) < sizeof(*qopt)) in hfsc_change_qdisc() 1443 qopt = nla_data(opt); in hfsc_change_qdisc() 1446 q->defcls = qopt->defcls; in hfsc_change_qdisc() 1527 struct tc_hfsc_qopt qopt; in hfsc_dump_qdisc() local 1529 qopt.defcls = q->defcls; in hfsc_dump_qdisc() [all …]
|
/Linux-v4.19/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_tc.c | 292 struct tc_cbs_qopt_offload *qopt) in tc_setup_cbs() argument 295 u32 queue = qopt->queue; in tc_setup_cbs() 308 if (mode_to_use == MTL_QUEUE_DCB && qopt->enable) { in tc_setup_cbs() 314 } else if (!qopt->enable) { in tc_setup_cbs() 323 value = div_s64(qopt->idleslope * 1024ll * ptr, speed_div); in tc_setup_cbs() 326 value = div_s64(-qopt->sendslope * 1024ll * ptr, speed_div); in tc_setup_cbs() 329 value = qopt->hicredit * 1024ll * 8; in tc_setup_cbs() 332 value = qopt->locredit * 1024ll * 8; in tc_setup_cbs() 345 queue, qopt->sendslope, qopt->idleslope, in tc_setup_cbs() 346 qopt->hicredit, qopt->locredit); in tc_setup_cbs()
|
D | hwif.h | 457 struct tc_cbs_qopt_offload *qopt);
|
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/ |
D | i40evf_main.c | 2293 if (mqprio_qopt->qopt.num_tc > I40EVF_MAX_TRAFFIC_CLASS || in i40evf_validate_ch_config() 2294 mqprio_qopt->qopt.num_tc < 1) in i40evf_validate_ch_config() 2297 for (i = 0; i <= mqprio_qopt->qopt.num_tc - 1; i++) { in i40evf_validate_ch_config() 2298 if (!mqprio_qopt->qopt.count[i] || in i40evf_validate_ch_config() 2299 mqprio_qopt->qopt.offset[i] != num_qps) in i40evf_validate_ch_config() 2310 num_qps += mqprio_qopt->qopt.count[i]; in i40evf_validate_ch_config() 2359 num_tc = mqprio_qopt->qopt.num_tc; in __i40evf_setup_tc() 2363 if (!mqprio_qopt->qopt.hw) { in __i40evf_setup_tc() 2400 mqprio_qopt->qopt.count[i]; in __i40evf_setup_tc() 2402 mqprio_qopt->qopt.offset[i]; in __i40evf_setup_tc() [all …]
|
/Linux-v4.19/drivers/net/ethernet/ti/ |
D | cpsw.c | 1744 struct tc_cbs_qopt_offload *qopt) in cpsw_set_cbs() argument 1753 tc = netdev_txq_to_tc(priv->ndev, qopt->queue); in cpsw_set_cbs() 1766 if (!qopt->enable && !priv->fifo_bw[fifo]) in cpsw_set_cbs() 1790 bw = qopt->enable ? qopt->idleslope : 0; in cpsw_set_cbs() 2472 num_tc = mqprio->qopt.num_tc; in cpsw_set_mqprio() 2487 tc = mqprio->qopt.prio_tc_map[i]; in cpsw_set_mqprio() 2494 count = mqprio->qopt.count[i]; in cpsw_set_mqprio() 2495 offset = mqprio->qopt.offset[i]; in cpsw_set_mqprio() 2500 if (!mqprio->qopt.hw) { in cpsw_set_mqprio() 2506 priv->mqprio_hw = mqprio->qopt.hw; in cpsw_set_mqprio()
|
/Linux-v4.19/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 2552 struct tc_cbs_qopt_offload *qopt) in igb_offload_cbs() argument 2562 if (qopt->queue < 0 || qopt->queue > 1) in igb_offload_cbs() 2565 err = igb_save_cbs_params(adapter, qopt->queue, qopt->enable, in igb_offload_cbs() 2566 qopt->idleslope, qopt->sendslope, in igb_offload_cbs() 2567 qopt->hicredit, qopt->locredit); in igb_offload_cbs() 2571 igb_offload_apply(adapter, qopt->queue); in igb_offload_cbs() 2821 struct tc_etf_qopt_offload *qopt) in igb_offload_txtime() argument 2831 if (qopt->queue < 0 || qopt->queue > 1) in igb_offload_txtime() 2834 err = igb_save_txtime_params(adapter, qopt->queue, qopt->enable); in igb_offload_txtime() 2838 igb_offload_apply(adapter, qopt->queue); in igb_offload_txtime()
|
/Linux-v4.19/drivers/net/ethernet/intel/i40e/ |
D | i40e_main.c | 1669 vsi->tc_config.numtc = vsi->mqprio_qopt.qopt.num_tc; in i40e_vsi_setup_queue_map_mqprio() 1671 num_qps = vsi->mqprio_qopt.qopt.count[0]; in i40e_vsi_setup_queue_map_mqprio() 1681 max_qcount = vsi->mqprio_qopt.qopt.count[0]; in i40e_vsi_setup_queue_map_mqprio() 1685 offset = vsi->mqprio_qopt.qopt.offset[i]; in i40e_vsi_setup_queue_map_mqprio() 1686 qcount = vsi->mqprio_qopt.qopt.count[i]; in i40e_vsi_setup_queue_map_mqprio() 1728 override_q = vsi->mqprio_qopt.qopt.count[0]; in i40e_vsi_setup_queue_map_mqprio() 4980 u8 num_tc = vsi->mqprio_qopt.qopt.num_tc; in i40e_mqprio_get_enabled_tc() 5002 return pf->vsi[pf->lan_vsi]->mqprio_qopt.qopt.num_tc; in i40e_pf_get_num_tc() 5132 if (!vsi->mqprio_qopt.qopt.hw && !(pf->flags & I40E_FLAG_DCB_ENABLED)) { in i40e_vsi_configure_bw_alloc() 5321 if (!vsi->mqprio_qopt.qopt.hw && vsi->reconfig_rss) { in i40e_vsi_config_tc() [all …]
|
/Linux-v4.19/include/net/ |
D | pkt_cls.h | 774 struct tc_mqprio_qopt qopt; member
|
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.c | 1329 u8 *prio_tc = mqprio_qopt->qopt.prio_tc_map; in hns3_setup_tc() 1330 u8 tc = mqprio_qopt->qopt.num_tc; in hns3_setup_tc() 1332 u8 hw = mqprio_qopt->qopt.hw; in hns3_setup_tc()
|