Home
last modified time | relevance | path

Searched refs:prio_tc (Results 1 - 25 of 65) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_dcb_82599.c16 * @prio_tc: priority to tc assignments indexed by priority
25 u8 *prio_tc) in ixgbe_dcb_config_rx_arbiter_82599()
42 reg |= (prio_tc[i] << (i * IXGBE_RTRUP2TC_UP_SHIFT)); in ixgbe_dcb_config_rx_arbiter_82599()
127 * @prio_tc: priority to tc assignments indexed by priority
136 u8 *prio_tc) in ixgbe_dcb_config_tx_data_arbiter_82599()
153 reg |= (prio_tc[i] << (i * IXGBE_RTTUP2TC_UP_SHIFT)); in ixgbe_dcb_config_tx_data_arbiter_82599()
186 * @prio_tc: priority to tc assignments indexed by priority
190 s32 ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc) in ixgbe_dcb_config_pfc_82599() argument
218 if (prio_tc[i] > max_tc) in ixgbe_dcb_config_pfc_82599()
219 max_tc = prio_tc[ in ixgbe_dcb_config_pfc_82599()
20 ixgbe_dcb_config_rx_arbiter_82599(struct ixgbe_hw *hw, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) ixgbe_dcb_config_rx_arbiter_82599() argument
131 ixgbe_dcb_config_tx_data_arbiter_82599(struct ixgbe_hw *hw, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) ixgbe_dcb_config_tx_data_arbiter_82599() argument
333 ixgbe_dcb_hw_config_82599(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) ixgbe_dcb_hw_config_82599() argument
[all...]
H A Dixgbe_dcb.c256 u8 prio_tc[MAX_TRAFFIC_CLASS]; in ixgbe_dcb_hw_config() local
266 ixgbe_dcb_unpack_map(dcb_config, DCB_TX_CONFIG, prio_tc); in ixgbe_dcb_hw_config()
278 bwgid, ptype, prio_tc); in ixgbe_dcb_hw_config()
286 s32 ixgbe_dcb_hw_pfc_config(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc) in ixgbe_dcb_hw_pfc_config() argument
296 return ixgbe_dcb_config_pfc_82599(hw, pfc_en, prio_tc); in ixgbe_dcb_hw_pfc_config()
333 bwg_id, prio_type, ets->prio_tc); in ixgbe_dcb_hw_ets()
338 u8 *prio_type, u8 *prio_tc) in ixgbe_dcb_hw_ets_config()
355 bwg_id, prio_type, prio_tc); in ixgbe_dcb_hw_ets_config()
359 prio_type, prio_tc); in ixgbe_dcb_hw_ets_config()
336 ixgbe_dcb_hw_ets_config(struct ixgbe_hw *hw, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) ixgbe_dcb_hw_ets_config() argument
H A Dixgbe_dcb_nl.c318 u8 prio_tc[MAX_USER_PRIORITY]; in ixgbe_dcbnl_set_all() local
335 ixgbe_dcb_unpack_map(dcb_cfg, DCB_TX_CONFIG, prio_tc); in ixgbe_dcbnl_set_all()
338 prio_type, prio_tc); in ixgbe_dcbnl_set_all()
341 netdev_set_prio_tc_map(netdev, i, prio_tc[i]); in ixgbe_dcbnl_set_all()
349 u8 prio_tc[MAX_USER_PRIORITY]; in ixgbe_dcbnl_set_all() local
351 ixgbe_dcb_unpack_map(dcb_cfg, DCB_TX_CONFIG, prio_tc); in ixgbe_dcbnl_set_all()
353 ixgbe_dcb_hw_pfc_config(hw, pfc_en, prio_tc); in ixgbe_dcbnl_set_all()
503 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in ixgbe_dcbnl_ieee_getets()
590 u8 *prio_tc; ixgbe_dcbnl_ieee_setpfc() local
[all...]
H A Dixgbe_dcb_82599.h73 s32 ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc);
81 u8 *prio_tc);
94 u8 *prio_tc);
98 u8 *prio_tc);
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_dcb_82599.c16 * @prio_tc: priority to tc assignments indexed by priority
25 u8 *prio_tc) in ixgbe_dcb_config_rx_arbiter_82599()
42 reg |= (prio_tc[i] << (i * IXGBE_RTRUP2TC_UP_SHIFT)); in ixgbe_dcb_config_rx_arbiter_82599()
127 * @prio_tc: priority to tc assignments indexed by priority
136 u8 *prio_tc) in ixgbe_dcb_config_tx_data_arbiter_82599()
153 reg |= (prio_tc[i] << (i * IXGBE_RTTUP2TC_UP_SHIFT)); in ixgbe_dcb_config_tx_data_arbiter_82599()
186 * @prio_tc: priority to tc assignments indexed by priority
190 s32 ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc) in ixgbe_dcb_config_pfc_82599() argument
218 if (prio_tc[i] > max_tc) in ixgbe_dcb_config_pfc_82599()
219 max_tc = prio_tc[ in ixgbe_dcb_config_pfc_82599()
20 ixgbe_dcb_config_rx_arbiter_82599(struct ixgbe_hw *hw, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) ixgbe_dcb_config_rx_arbiter_82599() argument
131 ixgbe_dcb_config_tx_data_arbiter_82599(struct ixgbe_hw *hw, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) ixgbe_dcb_config_tx_data_arbiter_82599() argument
333 ixgbe_dcb_hw_config_82599(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) ixgbe_dcb_hw_config_82599() argument
[all...]
H A Dixgbe_dcb.c256 u8 prio_tc[MAX_TRAFFIC_CLASS]; in ixgbe_dcb_hw_config() local
266 ixgbe_dcb_unpack_map(dcb_config, DCB_TX_CONFIG, prio_tc); in ixgbe_dcb_hw_config()
278 bwgid, ptype, prio_tc); in ixgbe_dcb_hw_config()
286 s32 ixgbe_dcb_hw_pfc_config(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc) in ixgbe_dcb_hw_pfc_config() argument
296 return ixgbe_dcb_config_pfc_82599(hw, pfc_en, prio_tc); in ixgbe_dcb_hw_pfc_config()
333 bwg_id, prio_type, ets->prio_tc); in ixgbe_dcb_hw_ets()
338 u8 *prio_type, u8 *prio_tc) in ixgbe_dcb_hw_ets_config()
355 bwg_id, prio_type, prio_tc); in ixgbe_dcb_hw_ets_config()
359 prio_type, prio_tc); in ixgbe_dcb_hw_ets_config()
336 ixgbe_dcb_hw_ets_config(struct ixgbe_hw *hw, u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) ixgbe_dcb_hw_ets_config() argument
H A Dixgbe_dcb_nl.c316 u8 prio_tc[MAX_USER_PRIORITY]; in ixgbe_dcbnl_set_all() local
333 ixgbe_dcb_unpack_map(dcb_cfg, DCB_TX_CONFIG, prio_tc); in ixgbe_dcbnl_set_all()
336 prio_type, prio_tc); in ixgbe_dcbnl_set_all()
339 netdev_set_prio_tc_map(netdev, i, prio_tc[i]); in ixgbe_dcbnl_set_all()
347 u8 prio_tc[MAX_USER_PRIORITY]; in ixgbe_dcbnl_set_all() local
349 ixgbe_dcb_unpack_map(dcb_cfg, DCB_TX_CONFIG, prio_tc); in ixgbe_dcbnl_set_all()
351 ixgbe_dcb_hw_pfc_config(hw, pfc_en, prio_tc); in ixgbe_dcbnl_set_all()
501 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in ixgbe_dcbnl_ieee_getets()
588 u8 *prio_tc; ixgbe_dcbnl_ieee_setpfc() local
[all...]
H A Dixgbe_dcb_82599.h73 s32 ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc);
81 u8 *prio_tc);
94 u8 *prio_tc);
98 u8 *prio_tc);
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_dcb.c40 hclge_tm_prio_tc_info_update(hdev, ets->prio_tc); in hclge_ieee_ets_to_tm_info()
55 ets->prio_tc[i] = hdev->tm_info.prio_tc[i]; in hclge_tm_info_to_ieee_ets()
81 u8 *prio_tc) in hclge_dcb_common_validate()
93 if (prio_tc[i] >= num_tc) { in hclge_dcb_common_validate()
95 "prio_tc[%d] checking failed, %u >= num_tc(%u)\n", in hclge_dcb_common_validate()
96 i, prio_tc[i], num_tc); in hclge_dcb_common_validate()
118 if (ets->prio_tc[i] != hdev->tm_info.prio_tc[i]) in hclge_ets_tc_changed()
121 if (ets->prio_tc[ in hclge_ets_tc_changed()
80 hclge_dcb_common_validate(struct hclge_dev *hdev, u8 num_tc, u8 *prio_tc) hclge_dcb_common_validate() argument
360 u8 i, j, pfc_map, *prio_tc; hclge_ieee_setpfc() local
439 hclge_setup_tc(struct hnae3_handle *h, u8 tc, u8 *prio_tc) hclge_setup_tc() argument
[all...]
H A Dhclge_tm.c230 tc = hdev->tm_info.prio_tc[pri_id]; in hclge_fill_pri_array()
618 memcpy(kinfo->prio_tc, hdev->tm_info.prio_tc, in hclge_tm_vport_tc_info_update()
619 sizeof_field(struct hnae3_knic_private_info, prio_tc)); in hclge_tm_vport_tc_info_update()
647 hdev->tm_info.prio_tc[i] = in hclge_tm_tc_info_init()
1420 void hclge_tm_prio_tc_info_update(struct hclge_dev *hdev, u8 *prio_tc) in hclge_tm_prio_tc_info_update() argument
1427 hdev->tm_info.prio_tc[i] = prio_tc[i]; in hclge_tm_prio_tc_info_update()
1431 kinfo->prio_tc[i] = prio_tc[ in hclge_tm_prio_tc_info_update()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_dcb.c39 hclge_tm_prio_tc_info_update(hdev, ets->prio_tc); in hclge_ieee_ets_to_tm_info()
54 ets->prio_tc[i] = hdev->tm_info.prio_tc[i]; in hclge_tm_info_to_ieee_ets()
80 u8 *prio_tc) in hclge_dcb_common_validate()
92 if (prio_tc[i] >= num_tc) { in hclge_dcb_common_validate()
94 "prio_tc[%d] checking failed, %u >= num_tc(%u)\n", in hclge_dcb_common_validate()
95 i, prio_tc[i], num_tc); in hclge_dcb_common_validate()
117 if (ets->prio_tc[i] != hdev->tm_info.prio_tc[i]) in hclge_ets_tc_changed()
120 if (ets->prio_tc[ in hclge_ets_tc_changed()
79 hclge_dcb_common_validate(struct hclge_dev *hdev, u8 num_tc, u8 *prio_tc) hclge_dcb_common_validate() argument
331 u8 i, j, pfc_map, *prio_tc; hclge_ieee_setpfc() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-dcb.c137 memcpy(ets->prio_tc, pdata->ets->prio_tc, in xgbe_dcb_ieee_getets()
138 sizeof(ets->prio_tc)); in xgbe_dcb_ieee_getets()
159 ets->prio_tc[i]); in xgbe_dcb_ieee_setets()
161 max_tc = max_t(u8, max_tc, ets->prio_tc[i]); in xgbe_dcb_ieee_setets()
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-dcb.c137 memcpy(ets->prio_tc, pdata->ets->prio_tc, in xgbe_dcb_ieee_getets()
138 sizeof(ets->prio_tc)); in xgbe_dcb_ieee_getets()
159 ets->prio_tc[i]); in xgbe_dcb_ieee_setets()
161 max_tc = max_t(u8, max_tc, ets->prio_tc[i]); in xgbe_dcb_ieee_setets()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_dcbnl.c26 ets->prio_tc[i] = netdev_get_prio_tc_map(dev, i); in fm10k_dcbnl_ieee_getets()
47 if (ets->prio_tc[i] > num_tc) in fm10k_dcbnl_ieee_setets()
48 num_tc = ets->prio_tc[i]; in fm10k_dcbnl_ieee_setets()
67 netdev_set_prio_tc_map(dev, i, ets->prio_tc[i]); in fm10k_dcbnl_ieee_setets()
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_dcbnl.c26 ets->prio_tc[i] = netdev_get_prio_tc_map(dev, i); in fm10k_dcbnl_ieee_getets()
47 if (ets->prio_tc[i] > num_tc) in fm10k_dcbnl_ieee_setets()
48 num_tc = ets->prio_tc[i]; in fm10k_dcbnl_ieee_setets()
67 netdev_set_prio_tc_map(dev, i, ets->prio_tc[i]); in fm10k_dcbnl_ieee_setets()
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
H A Dqos_headroom.sh89 check_err $? "prio_tc is '$current', expected '$expect'"
124 __mlnx_qos -i $swp --prio_tc=0,2,4,6,1,3,5,7 > /dev/null
130 __mlnx_qos -i $swp --prio_tc=0,0,0,0,0,0,0,0 > /dev/null
177 __mlnx_qos -i $swp --prio_tc=0,0,0,0,0,1,2,3 > /dev/null
225 __mlnx_qos -i $swp --prio_tc=0,0,0,0,0,0,0,0 > /dev/null
245 __mlnx_qos -i $swp --prio_tc=0,1,2,3,4,5,6,7 > /dev/null
261 __mlnx_qos -i $swp --prio_tc=0,0,0,0,0,0,0,0 > /dev/null
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_dcb.c56 qidx = bp->tc_to_qidx[ets->prio_tc[i]]; in bnxt_hwrm_queue_pri2cos_cfg()
83 ets->prio_tc[i] = tc; in bnxt_hwrm_queue_pri2cos_qcfg()
244 (my_ets->prio_tc[pri] == i)) { in bnxt_hwrm_queue_pfc_cfg()
440 if (ets->prio_tc[i] > bp->max_tc) { in bnxt_ets_validate()
442 ets->prio_tc[i]); in bnxt_ets_validate()
445 if (ets->prio_tc[i] > max_tc) in bnxt_ets_validate()
446 max_tc = ets->prio_tc[i]; in bnxt_ets_validate()
501 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in bnxt_dcbnl_ieee_getets()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_dcb.c60 qidx = bp->tc_to_qidx[ets->prio_tc[i]]; in bnxt_hwrm_queue_pri2cos_cfg()
89 ets->prio_tc[i] = tc; in bnxt_hwrm_queue_pri2cos_qcfg()
264 (my_ets->prio_tc[pri] == i)) { in bnxt_hwrm_queue_pfc_cfg()
480 if (ets->prio_tc[i] > bp->max_tc) { in bnxt_ets_validate()
482 ets->prio_tc[i]); in bnxt_ets_validate()
485 if (ets->prio_tc[i] > max_tc) in bnxt_ets_validate()
486 max_tc = ets->prio_tc[i]; in bnxt_ets_validate()
548 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in bnxt_dcbnl_ieee_getets()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
H A Den_dcb_nl.c300 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in mlx4_en_dcbnl_ieee_getets()
312 if (ets->prio_tc[i] >= MLX4_EN_NUM_UP_HIGH) { in mlx4_en_ets_validate()
314 i, ets->prio_tc[i]); in mlx4_en_ets_validate()
387 err = mlx4_SET_PORT_PRIO2TC(mdev->dev, priv->port, ets->prio_tc); in mlx4_en_dcbnl_ieee_setets()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
H A Den_dcb_nl.c300 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in mlx4_en_dcbnl_ieee_getets()
312 if (ets->prio_tc[i] >= MLX4_EN_NUM_UP_HIGH) { in mlx4_en_ets_validate()
314 i, ets->prio_tc[i]); in mlx4_en_ets_validate()
387 err = mlx4_SET_PORT_PRIO2TC(mdev->dev, priv->port, ets->prio_tc); in mlx4_en_dcbnl_ieee_setets()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_dcb.c53 if (ets->prio_tc[i] >= IEEE_8021QAZ_MAX_TCS) { in mlxsw_sp_port_ets_validate()
77 hdroom.prios.prio[prio].ets_buf_idx = ets->prio_tc[prio]; in mlxsw_sp_port_headroom_ets_set()
115 ets->prio_tc[i]); in __mlxsw_sp_dcbnl_ieee_setets()
118 ets->prio_tc[i]); in __mlxsw_sp_dcbnl_ieee_setets()
134 mlxsw_sp_port_prio_tc_set(mlxsw_sp_port, i, my_ets->prio_tc[i]); in __mlxsw_sp_dcbnl_ieee_setets()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_dcb.c53 if (ets->prio_tc[i] >= IEEE_8021QAZ_MAX_TCS) { in mlxsw_sp_port_ets_validate()
77 hdroom.prios.prio[prio].ets_buf_idx = ets->prio_tc[prio]; in mlxsw_sp_port_headroom_ets_set()
115 ets->prio_tc[i]); in __mlxsw_sp_dcbnl_ieee_setets()
118 ets->prio_tc[i]); in __mlxsw_sp_dcbnl_ieee_setets()
134 mlxsw_sp_port_prio_tc_set(mlxsw_sp_port, i, my_ets->prio_tc[i]); in __mlxsw_sp_dcbnl_ieee_setets()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_dcbnl.c121 err = mlx5_query_port_prio_tc(mdev, i, &ets->prio_tc[i]); in mlx5e_dcbnl_ieee_getets()
262 err = mlx5_set_port_prio_tc(mdev, ets->prio_tc); in mlx5e_dcbnl_ieee_setets_core()
279 __func__, i, ets->prio_tc[i]); in mlx5e_dcbnl_ieee_setets_core()
297 if (ets->prio_tc[i] >= MLX5E_MAX_PRIORITY) { in mlx5e_dbcnl_validate_ets()
642 ets.prio_tc[i] = cee_cfg->prio_to_pg_map[i]; in mlx5e_dcbnl_setall()
644 "%s: Priority group %d: tx_bw %d, rx_bw %d, prio_tc %d\n", in mlx5e_dcbnl_setall()
646 ets.prio_tc[i]); in mlx5e_dcbnl_setall()
1071 ets.prio_tc[i] = i; in mlx5e_ets_init()
1076 ets.prio_tc[0] = 1; in mlx5e_ets_init()
1077 ets.prio_tc[ in mlx5e_ets_init()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_dcbnl.c121 err = mlx5_query_port_prio_tc(mdev, i, &ets->prio_tc[i]); in mlx5e_dcbnl_ieee_getets()
262 err = mlx5_set_port_prio_tc(mdev, ets->prio_tc); in mlx5e_dcbnl_ieee_setets_core()
279 __func__, i, ets->prio_tc[i]); in mlx5e_dcbnl_ieee_setets_core()
297 if (ets->prio_tc[i] >= MLX5E_MAX_PRIORITY) { in mlx5e_dbcnl_validate_ets()
642 ets.prio_tc[i] = cee_cfg->prio_to_pg_map[i]; in mlx5e_dcbnl_setall()
644 "%s: Priority group %d: tx_bw %d, rx_bw %d, prio_tc %d\n", in mlx5e_dcbnl_setall()
646 ets.prio_tc[i]); in mlx5e_dcbnl_setall()
1063 ets.prio_tc[i] = i; in mlx5e_ets_init()
1068 ets.prio_tc[0] = 1; in mlx5e_ets_init()
1069 ets.prio_tc[ in mlx5e_ets_init()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/
H A Di40e_dcb.h254 u8 pfc_en, u8 *prio_tc);
259 void i40e_dcb_hw_rx_up2tc_config(struct i40e_hw *hw, u8 *prio_tc);

Completed in 19 milliseconds

123