Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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);
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.c350 struct tc_mqprio_qopt_offload *mqprio, in aq_validate_mqprio_opt() argument
353 const bool has_min_rate = !!(mqprio->flags & TC_MQPRIO_F_MIN_RATE); in aq_validate_mqprio_opt()
379 struct tc_mqprio_qopt_offload *mqprio = type_data; in aq_ndo_setup_tc() local
389 has_min_rate = !!(mqprio->flags & TC_MQPRIO_F_MIN_RATE); in aq_ndo_setup_tc()
390 has_max_rate = !!(mqprio->flags & TC_MQPRIO_F_MAX_RATE); in aq_ndo_setup_tc()
392 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()
398 u64 max_rate = mqprio->max_rate[i]; in aq_ndo_setup_tc()
405 u64 min_rate = mqprio->min_rate[i]; in aq_ndo_setup_tc()
412 return aq_nic_setup_tc_mqprio(aq_nic, mqprio->qopt.num_tc, in aq_ndo_setup_tc()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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.c1396 const struct tc_mqprio_qopt *mqprio) in taprio_mqprio_cmp() argument
1400 if (!mqprio || mqprio->num_tc != dev->num_tc) in taprio_mqprio_cmp()
1403 for (i = 0; i < mqprio->num_tc; i++) in taprio_mqprio_cmp()
1404 if (dev->tc_to_txq[i].count != mqprio->count[i] || in taprio_mqprio_cmp()
1405 dev->tc_to_txq[i].offset != mqprio->offset[i]) in taprio_mqprio_cmp()
1409 if (dev->prio_tc_map[i] != mqprio->prio_tc_map[i]) in taprio_mqprio_cmp()
1449 struct tc_mqprio_qopt *mqprio = NULL; in taprio_change() local
1460 mqprio = nla_data(tb[TCA_TAPRIO_ATTR_PRIOMAP]); in taprio_change()
1469 err = taprio_parse_mqprio_opt(dev, mqprio, extack, q->flags); in taprio_change()
1486 if (!taprio_mqprio_cmp(dev, mqprio)) in taprio_change()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dcpsw_priv.c994 struct tc_mqprio_qopt_offload *mqprio = type_data; in cpsw_set_mqprio() local
1002 num_tc = mqprio->qopt.num_tc; in cpsw_set_mqprio()
1006 if (mqprio->mode != TC_MQPRIO_MODE_DCB) 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()
Dnetcp_core.c1881 struct tc_mqprio_qopt *mqprio = type_data; in netcp_setup_tc() local
1891 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in netcp_setup_tc()
1892 num_tc = mqprio->num_tc; in netcp_setup_tc()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dtx.c609 struct tc_mqprio_qopt *mqprio = type_data; in efx_setup_tc() local
619 num_tc = mqprio->num_tc; in efx_setup_tc()
624 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in efx_setup_tc()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
Dtx.c429 struct tc_mqprio_qopt *mqprio = type_data; in ef4_setup_tc() local
438 num_tc = mqprio->num_tc; in ef4_setup_tc()
443 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in ef4_setup_tc()
/kernel/linux/linux-5.10/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.
/kernel/linux/linux-5.10/Documentation/admin-guide/cgroup-v1/
Dnet_prio.rst52 One usage for the net_prio cgroup is with mqprio qdisc allowing application
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/
Dqede_main.c621 struct tc_mqprio_qopt *mqprio; in qede_setup_tc_offload() local
630 mqprio = type_data; in qede_setup_tc_offload()
632 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in qede_setup_tc_offload()
633 return qede_setup_tc(dev, mqprio->num_tc); in qede_setup_tc_offload()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/
Denetc.c1562 struct tc_mqprio_qopt *mqprio = type_data; in enetc_setup_tc_mqprio() local
1567 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in enetc_setup_tc_mqprio()
1568 num_tc = mqprio->num_tc; in enetc_setup_tc_mqprio()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Den_netdev.c145 struct tc_mqprio_qopt *mqprio = type_data; in __mlx4_en_setup_tc() local
150 if (mqprio->num_tc && mqprio->num_tc != MLX4_EN_NUM_UP_HIGH) in __mlx4_en_setup_tc()
153 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in __mlx4_en_setup_tc()
155 return mlx4_en_alloc_tx_queue_per_tc(dev, mqprio->num_tc); in __mlx4_en_setup_tc()
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c2169 struct tc_mqprio_qopt *mqprio = type_data; in xgbe_setup_tc() local
2175 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in xgbe_setup_tc()
2176 tc = mqprio->num_tc; in xgbe_setup_tc()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c376 struct tc_mqprio_qopt *mqprio = type_data; in dpaa_setup_tc() local
383 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in dpaa_setup_tc()
384 num_tc = mqprio->num_tc; in dpaa_setup_tc()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth.c2416 struct tc_mqprio_qopt *mqprio) in dpaa2_eth_setup_mqprio() argument
2422 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in dpaa2_eth_setup_mqprio()
2424 num_tc = mqprio->num_tc; in dpaa2_eth_setup_mqprio()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c4305 struct tc_mqprio_qopt *mqprio = type_data; in __bnx2x_setup_tc() local
4310 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in __bnx2x_setup_tc()
4312 return bnx2x_setup_tc(dev, mqprio->num_tc); in __bnx2x_setup_tc()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c3580 struct tc_mqprio_qopt *mqprio) in mlx5e_setup_tc_mqprio() argument
3583 u8 tc = mqprio->num_tc; in mlx5e_setup_tc_mqprio()
3586 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in mlx5e_setup_tc_mqprio()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c9676 struct tc_mqprio_qopt *mqprio) in ixgbe_setup_tc_mqprio() argument
9678 mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS; in ixgbe_setup_tc_mqprio()
9679 return ixgbe_setup_tc(dev, mqprio->num_tc); in ixgbe_setup_tc_mqprio()

12