/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_tc_mqprio.c | 9 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 …]
|
D | cxgb4_tc_mqprio.h | 29 struct tc_mqprio_qopt_offload mqprio; /* MQPRIO offload params */ member 41 struct tc_mqprio_qopt_offload *mqprio);
|
D | cxgb4_debugfs.c | 2863 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/ |
D | aq_main.c | 350 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/ |
D | cpsw.rst | 195 $ 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/ |
D | sch_mqprio.c | 45 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 …]
|
D | sch_taprio.c | 1396 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/ |
D | cpsw_priv.c | 994 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()
|
D | netcp_core.c | 1881 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/ |
D | tx.c | 609 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/ |
D | tx.c | 429 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/ |
D | iavf.rst | 163 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
|
D | i40e.rst | 672 # 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/ |
D | net_prio.rst | 52 One usage for the net_prio cgroup is with mqprio qdisc allowing application
|
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/ethernet/freescale/ |
D | dpaa.rst | 166 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/ |
D | fm10k_netdev.c | 1320 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/ |
D | qede_main.c | 621 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/ |
D | enetc.c | 1562 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/ |
D | en_netdev.c | 145 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/ |
D | xgbe-drv.c | 2169 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/ |
D | dpaa_eth.c | 376 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/ |
D | dpaa2-eth.c | 2416 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/ |
D | bnx2x_cmn.c | 4305 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/ |
D | en_main.c | 3580 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/ |
D | ixgbe_main.c | 9676 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()
|