Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_mqprio.c9 struct tc_mqprio_qopt_offload *mqprio) in cxgb4_mqprio_validate() argument
19 if (!mqprio->qopt.num_tc) in cxgb4_mqprio_validate()
22 if (mqprio->qopt.hw != TC_MQPRIO_HW_OFFLOAD_TCS) { in cxgb4_mqprio_validate()
25 } else if (mqprio->mode != TC_MQPRIO_MODE_CHANNEL) { in cxgb4_mqprio_validate()
28 } else if (mqprio->shaper != TC_MQPRIO_SHAPER_BW_RATE) { 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()
[all …]
Dcxgb4_tc_mqprio.h29 struct tc_mqprio_qopt_offload mqprio; /* MQPRIO offload params */ member
41 struct tc_mqprio_qopt_offload *mqprio);
/linux-6.1.9/Documentation/networking/device_drivers/ethernet/ti/
Dcpsw.rst195 $ tc qdisc replace dev eth0 handle 100: parent root mqprio num_tc 3 \
205 $ tc qdisc replace dev eth1 handle 100: parent root mqprio num_tc 1 \
212 +---(100:ffe2) mqprio
213 | +---(100:3) mqprio
214 | +---(100:4) mqprio
216 +---(100:ffe1) mqprio
217 | +---(100:2) mqprio
219 +---(100:ffe0) mqprio
220 +---(100:1) mqprio
223 +---(100:ffe0) mqprio
[all …]
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/
Daq_main.c378 struct tc_mqprio_qopt_offload *mqprio, in aq_validate_mqprio_opt() argument
381 const bool has_min_rate = !!(mqprio->flags & TC_MQPRIO_F_MIN_RATE); in aq_validate_mqprio_opt()
407 struct tc_mqprio_qopt_offload *mqprio = type_data; in aq_ndo_setup_tc() local
417 has_min_rate = !!(mqprio->flags & TC_MQPRIO_F_MIN_RATE); in aq_ndo_setup_tc()
418 has_max_rate = !!(mqprio->flags & TC_MQPRIO_F_MAX_RATE); in aq_ndo_setup_tc()
420 err = aq_validate_mqprio_opt(aq_nic, mqprio, mqprio->qopt.num_tc); in aq_ndo_setup_tc()
424 for (i = 0; i < mqprio->qopt.num_tc; i++) { in aq_ndo_setup_tc()
426 u64 max_rate = mqprio->max_rate[i]; in aq_ndo_setup_tc()
433 u64 min_rate = mqprio->min_rate[i]; in aq_ndo_setup_tc()
440 return aq_nic_setup_tc_mqprio(aq_nic, mqprio->qopt.num_tc, in aq_ndo_setup_tc()
[all …]
/linux-6.1.9/net/sched/
Dsch_mqprio.c45 struct tc_mqprio_qopt_offload mqprio = { { 0 } }; in mqprio_destroy() local
52 &mqprio); in mqprio_destroy()
244 struct tc_mqprio_qopt_offload mqprio = {.qopt = *qopt}; in mqprio_init() local
252 mqprio.flags = priv->flags; in mqprio_init()
254 mqprio.mode = priv->mode; in mqprio_init()
256 mqprio.shaper = priv->shaper; in mqprio_init()
258 for (i = 0; i < mqprio.qopt.num_tc; i++) in mqprio_init()
259 mqprio.min_rate[i] = priv->min_rate[i]; in mqprio_init()
261 for (i = 0; i < mqprio.qopt.num_tc; i++) in mqprio_init()
262 mqprio.max_rate[i] = priv->max_rate[i]; in mqprio_init()
[all …]
Dsch_taprio.c1487 const struct tc_mqprio_qopt *mqprio) in taprio_mqprio_cmp() argument
1491 if (!mqprio || mqprio->num_tc != dev->num_tc) in taprio_mqprio_cmp()
1494 for (i = 0; i < mqprio->num_tc; i++) in taprio_mqprio_cmp()
1495 if (dev->tc_to_txq[i].count != mqprio->count[i] || in taprio_mqprio_cmp()
1496 dev->tc_to_txq[i].offset != mqprio->offset[i]) in taprio_mqprio_cmp()
1500 if (dev->prio_tc_map[i] != mqprio->prio_tc_map[i]) in taprio_mqprio_cmp()
1540 struct tc_mqprio_qopt *mqprio = NULL; in taprio_change() local
1551 mqprio = nla_data(tb[TCA_TAPRIO_ATTR_PRIOMAP]); in taprio_change()
1560 err = taprio_parse_mqprio_opt(dev, mqprio, extack, q->flags); in taprio_change()
1579 if (!taprio_mqprio_cmp(dev, mqprio)) in taprio_change()
[all …]
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_tc.c10 struct tc_mqprio_qopt_offload *mqprio) in lan966x_tc_setup_qdisc_mqprio() argument
12 u8 num_tc = mqprio->qopt.num_tc; in lan966x_tc_setup_qdisc_mqprio()
14 mqprio->qopt.hw = TC_MQPRIO_HW_OFFLOAD_TCS; in lan966x_tc_setup_qdisc_mqprio()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c2065 if (params->mqprio.mode != TC_MQPRIO_MODE_CHANNEL) { in mlx5e_txq_get_qos_node_hw_id()
2070 tc = mlx5e_mqprio_txq_to_tc(params->mqprio.tc_to_txq, txq_ix); in mlx5e_txq_get_qos_node_hw_id()
2074 if (tc >= params->mqprio.num_tc) { in mlx5e_txq_get_qos_node_hw_id()
2076 tc, params->mqprio.num_tc); in mlx5e_txq_get_qos_node_hw_id()
2080 *hw_id = params->mqprio.channel.hw_id[tc]; in mlx5e_txq_get_qos_node_hw_id()
2767 ntc = priv->channels.params.mqprio.num_tc; in mlx5e_update_netdev_queues()
2768 tc_to_txq = priv->channels.params.mqprio.tc_to_txq; in mlx5e_update_netdev_queues()
3367 params->mqprio.mode = TC_MQPRIO_MODE_DCB; in mlx5e_params_mqprio_dcb_set()
3368 params->mqprio.num_tc = num_tc; in mlx5e_params_mqprio_dcb_set()
3369 mlx5e_mqprio_build_default_tc_to_txq(params->mqprio.tc_to_txq, num_tc, in mlx5e_params_mqprio_dcb_set()
[all …]
Den.h314 } mqprio; member
335 return params->mqprio.mode == TC_MQPRIO_MODE_DCB ? in mlx5e_get_dcb_num_tc()
336 params->mqprio.num_tc : 1; in mlx5e_get_dcb_num_tc()
/linux-6.1.9/drivers/net/ethernet/sfc/siena/
Dtx.c362 struct tc_mqprio_qopt *mqprio = type_data; in efx_siena_setup_tc() local
372 num_tc = mqprio->num_tc; in efx_siena_setup_tc()
377 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in efx_siena_setup_tc()
/linux-6.1.9/tools/testing/selftests/drivers/net/netdevsim/
Dtc-mq-visibility.sh28 for root in mq mqprio; do
/linux-6.1.9/drivers/net/ethernet/ti/
Dcpsw_priv.c993 struct tc_mqprio_qopt_offload *mqprio = type_data; in cpsw_set_mqprio() local
1001 num_tc = mqprio->qopt.num_tc; in cpsw_set_mqprio()
1005 if (mqprio->mode != TC_MQPRIO_MODE_DCB) in cpsw_set_mqprio()
1014 tc = mqprio->qopt.prio_tc_map[i]; in cpsw_set_mqprio()
1021 count = mqprio->qopt.count[i]; in cpsw_set_mqprio()
1022 offset = mqprio->qopt.offset[i]; in cpsw_set_mqprio()
1027 if (!mqprio->qopt.hw) { in cpsw_set_mqprio()
1033 priv->mqprio_hw = mqprio->qopt.hw; in cpsw_set_mqprio()
Dnetcp_core.c1880 struct tc_mqprio_qopt *mqprio = type_data; in netcp_setup_tc() local
1890 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in netcp_setup_tc()
1891 num_tc = mqprio->num_tc; in netcp_setup_tc()
/linux-6.1.9/drivers/net/ethernet/sfc/
Dtx.c615 struct tc_mqprio_qopt *mqprio = type_data; in efx_setup_tc() local
625 num_tc = mqprio->num_tc; in efx_setup_tc()
630 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in efx_setup_tc()
/linux-6.1.9/drivers/net/ethernet/sfc/falcon/
Dtx.c430 struct tc_mqprio_qopt *mqprio = type_data; in ef4_setup_tc() local
439 num_tc = mqprio->num_tc; in ef4_setup_tc()
444 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in ef4_setup_tc()
/linux-6.1.9/Documentation/networking/device_drivers/ethernet/intel/
Diavf.rst163 tc qdisc add dev <interface> root mqprio num_tc 2 map 0 0 0 0 1 1 1 1
175 offload mode in mqprio that makes full use of the mqprio options, the
186 TCs are configured using mqprio.
200 are configured using mqprio
Di40e.rst672 # tc qdisc add dev <interface> root mqprio num_tc 2 map 0 0 0 0 1 1 1 1
684 offload mode in mqprio that makes full use of the mqprio options, the
705 TCs are configured using mqprio.
/linux-6.1.9/drivers/net/ethernet/marvell/
Dmvneta.c5146 struct tc_mqprio_qopt_offload *mqprio) in mvneta_setup_mqprio() argument
5152 if (mqprio->qopt.hw != TC_MQPRIO_HW_OFFLOAD_TCS) in mvneta_setup_mqprio()
5155 num_tc = mqprio->qopt.num_tc; in mvneta_setup_mqprio()
5168 netdev_set_num_tc(dev, mqprio->qopt.num_tc); in mvneta_setup_mqprio()
5170 for (tc = 0; tc < mqprio->qopt.num_tc; tc++) { in mvneta_setup_mqprio()
5171 netdev_set_tc_queue(dev, tc, mqprio->qopt.count[tc], in mvneta_setup_mqprio()
5172 mqprio->qopt.offset[tc]); in mvneta_setup_mqprio()
5174 for (rxq = mqprio->qopt.offset[tc]; in mvneta_setup_mqprio()
5175 rxq < mqprio->qopt.count[tc] + mqprio->qopt.offset[tc]; in mvneta_setup_mqprio()
5184 if (mqprio->shaper != TC_MQPRIO_SHAPER_BW_RATE) { in mvneta_setup_mqprio()
[all …]
/linux-6.1.9/Documentation/admin-guide/cgroup-v1/
Dnet_prio.rst52 One usage for the net_prio cgroup is with mqprio qdisc allowing application
/linux-6.1.9/tools/testing/selftests/drivers/net/ocelot/
Dpsfp.sh155 tc qdisc add dev ${if_name} handle 100: parent root mqprio num_tc 8 \
/linux-6.1.9/Documentation/networking/device_drivers/ethernet/freescale/
Ddpaa.rst166 are used. Higher priority traffic classes can be enabled with the mqprio
179 mqprio num_tc 4 map 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3 hw 1
/linux-6.1.9/drivers/net/ethernet/intel/fm10k/
Dfm10k_netdev.c1320 struct tc_mqprio_qopt *mqprio = type_data; in __fm10k_setup_tc() local
1325 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in __fm10k_setup_tc()
1327 return fm10k_setup_tc(dev, mqprio->num_tc); in __fm10k_setup_tc()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dptp.c512 params->mqprio = orig->mqprio; in mlx5e_ptp_build_params()
/linux-6.1.9/drivers/net/ethernet/qlogic/qede/
Dqede_main.c677 struct tc_mqprio_qopt *mqprio; in qede_setup_tc_offload() local
686 mqprio = type_data; in qede_setup_tc_offload()
688 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in qede_setup_tc_offload()
689 return qede_setup_tc(dev, mqprio->num_tc); in qede_setup_tc_offload()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Den_netdev.c146 struct tc_mqprio_qopt *mqprio = type_data; in __mlx4_en_setup_tc() local
151 if (mqprio->num_tc && mqprio->num_tc != MLX4_EN_NUM_UP_HIGH) in __mlx4_en_setup_tc()
154 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in __mlx4_en_setup_tc()
156 return mlx4_en_alloc_tx_queue_per_tc(dev, mqprio->num_tc); in __mlx4_en_setup_tc()

12