Home
last modified time | relevance | path

Searched refs:ets (Results 1 – 25 of 34) sorted by relevance

12

/drivers/net/ethernet/amd/xgbe/
Dxgbe-dcb.c124 struct ieee_ets *ets) in xgbe_dcb_ieee_getets() argument
129 ets->ets_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getets()
131 if (pdata->ets) { in xgbe_dcb_ieee_getets()
132 ets->cbs = pdata->ets->cbs; in xgbe_dcb_ieee_getets()
133 memcpy(ets->tc_tx_bw, pdata->ets->tc_tx_bw, in xgbe_dcb_ieee_getets()
134 sizeof(ets->tc_tx_bw)); in xgbe_dcb_ieee_getets()
135 memcpy(ets->tc_tsa, pdata->ets->tc_tsa, in xgbe_dcb_ieee_getets()
136 sizeof(ets->tc_tsa)); in xgbe_dcb_ieee_getets()
137 memcpy(ets->prio_tc, pdata->ets->prio_tc, in xgbe_dcb_ieee_getets()
138 sizeof(ets->prio_tc)); in xgbe_dcb_ieee_getets()
[all …]
Dxgbe-dev.c473 tc = pdata->ets->prio_tc[prio]; in xgbe_is_pfc_queue()
564 struct ieee_ets *ets = pdata->ets; in xgbe_enable_tx_flow_control() local
574 if (pfc && ets) { in xgbe_enable_tx_flow_control()
2581 if (pdata->pfc && pdata->ets) in xgbe_config_rx_fifo_size()
2592 if (pdata->pfc && pdata->ets && pdata->pfc->pfc_en) { in xgbe_config_rx_fifo_size()
2710 if (!pdata->ets) in xgbe_config_tc()
2715 pdata->ets->prio_tc[prio]); in xgbe_config_tc()
2720 struct ieee_ets *ets = pdata->ets; in xgbe_config_dcb_tc() local
2725 if (!ets) in xgbe_config_dcb_tc()
2743 if (ets->prio_tc[prio] == i) in xgbe_config_dcb_tc()
[all …]
/drivers/net/ethernet/intel/fm10k/
Dfm10k_dcbnl.c11 static int fm10k_dcbnl_ieee_getets(struct net_device *dev, struct ieee_ets *ets) in fm10k_dcbnl_ieee_getets() argument
16 ets->ets_cap = IEEE_8021QAZ_MAX_TCS; in fm10k_dcbnl_ieee_getets()
17 ets->cbs = 0; in fm10k_dcbnl_ieee_getets()
20 memset(ets->tc_tx_bw, 0, sizeof(ets->tc_tx_bw)); in fm10k_dcbnl_ieee_getets()
21 memset(ets->tc_rx_bw, 0, sizeof(ets->tc_rx_bw)); in fm10k_dcbnl_ieee_getets()
22 memset(ets->tc_tsa, IEEE_8021QAZ_TSA_STRICT, sizeof(ets->tc_tsa)); in fm10k_dcbnl_ieee_getets()
26 ets->prio_tc[i] = netdev_get_prio_tc_map(dev, i); in fm10k_dcbnl_ieee_getets()
36 static int fm10k_dcbnl_ieee_setets(struct net_device *dev, struct ieee_ets *ets) in fm10k_dcbnl_ieee_setets() argument
43 if (ets->tc_tx_bw[i] || ets->tc_rx_bw[i]) in fm10k_dcbnl_ieee_setets()
45 if (ets->tc_tsa[i] != IEEE_8021QAZ_TSA_STRICT) in fm10k_dcbnl_ieee_setets()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_dcbnl.c107 struct ieee_ets *ets) in mlx5e_dcbnl_ieee_getets() argument
117 if (!MLX5_CAP_GEN(priv->mdev, ets)) in mlx5e_dcbnl_ieee_getets()
121 err = mlx5_query_port_prio_tc(mdev, i, &ets->prio_tc[i]); in mlx5e_dcbnl_ieee_getets()
126 ets->ets_cap = mlx5_max_tc(priv->mdev) + 1; in mlx5e_dcbnl_ieee_getets()
127 for (i = 0; i < ets->ets_cap; i++) { in mlx5e_dcbnl_ieee_getets()
132 err = mlx5_query_port_tc_bw_alloc(mdev, i, &ets->tc_tx_bw[i]); in mlx5e_dcbnl_ieee_getets()
136 if (ets->tc_tx_bw[i] < MLX5E_MAX_BW_ALLOC && in mlx5e_dcbnl_ieee_getets()
146 for (i = 0; i < ets->ets_cap; i++) in mlx5e_dcbnl_ieee_getets()
148 ets->tc_tx_bw[i] = 0; in mlx5e_dcbnl_ieee_getets()
152 for (i = 0; i < ets->ets_cap; i++) { in mlx5e_dcbnl_ieee_getets()
[all …]
Dport.c702 if (!MLX5_CAP_GEN(mdev, ets)) in mlx5_set_port_qetcr_reg()
714 if (!MLX5_CAP_GEN(mdev, ets)) in mlx5_query_port_qetcr_reg()
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_dcb.c12 struct ieee_ets *ets) in hclge_ieee_ets_to_tm_info() argument
17 switch (ets->tc_tsa[i]) { in hclge_ieee_ets_to_tm_info()
27 ets->tc_tx_bw[i]; in hclge_ieee_ets_to_tm_info()
39 hclge_tm_prio_tc_info_update(hdev, ets->prio_tc); in hclge_ieee_ets_to_tm_info()
45 struct ieee_ets *ets) in hclge_tm_info_to_ieee_ets() argument
49 memset(ets, 0, sizeof(*ets)); in hclge_tm_info_to_ieee_ets()
50 ets->willing = 1; in hclge_tm_info_to_ieee_ets()
51 ets->ets_cap = hdev->tc_max; in hclge_tm_info_to_ieee_ets()
54 ets->prio_tc[i] = hdev->tm_info.prio_tc[i]; in hclge_tm_info_to_ieee_ets()
56 ets->tc_tx_bw[i] = hdev->tm_info.pg_info[0].tc_dwrr[i]; in hclge_tm_info_to_ieee_ets()
[all …]
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_dcb.c40 static int bnxt_hwrm_queue_pri2cos_cfg(struct bnxt *bp, struct ieee_ets *ets) in bnxt_hwrm_queue_pri2cos_cfg() argument
60 qidx = bp->tc_to_qidx[ets->prio_tc[i]]; in bnxt_hwrm_queue_pri2cos_cfg()
66 static int bnxt_hwrm_queue_pri2cos_qcfg(struct bnxt *bp, struct ieee_ets *ets) in bnxt_hwrm_queue_pri2cos_qcfg() argument
89 ets->prio_tc[i] = tc; in bnxt_hwrm_queue_pri2cos_qcfg()
96 static int bnxt_hwrm_queue_cos2bw_cfg(struct bnxt *bp, struct ieee_ets *ets, in bnxt_hwrm_queue_cos2bw_cfg() argument
117 if (ets->tc_tsa[i] == IEEE_8021QAZ_TSA_STRICT) { in bnxt_hwrm_queue_cos2bw_cfg()
124 cos2bw.bw_weight = ets->tc_tx_bw[i]; in bnxt_hwrm_queue_cos2bw_cfg()
129 cpu_to_le32((ets->tc_tx_bw[i] * 100) | in bnxt_hwrm_queue_cos2bw_cfg()
142 static int bnxt_hwrm_queue_cos2bw_qcfg(struct bnxt *bp, struct ieee_ets *ets) in bnxt_hwrm_queue_cos2bw_qcfg() argument
175 ets->tc_tsa[tc] = IEEE_8021QAZ_TSA_STRICT; in bnxt_hwrm_queue_cos2bw_qcfg()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Den_dcb_nl.c288 struct ieee_ets *ets) in mlx4_en_dcbnl_ieee_getets() argument
291 struct ieee_ets *my_ets = &priv->ets; in mlx4_en_dcbnl_ieee_getets()
296 ets->ets_cap = IEEE_8021QAZ_MAX_TCS; in mlx4_en_dcbnl_ieee_getets()
297 ets->cbs = my_ets->cbs; in mlx4_en_dcbnl_ieee_getets()
298 memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw)); in mlx4_en_dcbnl_ieee_getets()
299 memcpy(ets->tc_tsa, my_ets->tc_tsa, sizeof(ets->tc_tsa)); in mlx4_en_dcbnl_ieee_getets()
300 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in mlx4_en_dcbnl_ieee_getets()
305 static int mlx4_en_ets_validate(struct mlx4_en_priv *priv, struct ieee_ets *ets) in mlx4_en_ets_validate() argument
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()
[all …]
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_dcb.c45 struct dcbx_ets_feature *ets,
50 struct dcbx_ets_feature *ets);
78 bp->dcbx_port_params.ets.num_of_cos; in bnx2x_pfc_set()
81 for (i = 0; i < bp->dcbx_port_params.ets.num_of_cos; i++) in bnx2x_pfc_set()
88 bp->dcbx_port_params.ets.cos_params[i].pri_bitmask in bnx2x_pfc_set()
135 "local_mib.features.ets.enabled %x\n", features->ets.enabled); in bnx2x_dump_dcbx_drv_param()
139 DCBX_PG_BW_GET(features->ets.pg_bw_tbl, i)); in bnx2x_dump_dcbx_drv_param()
143 DCBX_PRI_PG_GET(features->ets.pri_pg_tbl, i)); in bnx2x_dump_dcbx_drv_param()
275 struct dcbx_ets_feature *ets, in bnx2x_dcbx_get_ets_feature() argument
281 bp->dcbx_port_params.ets.cos_params; in bnx2x_dcbx_get_ets_feature()
[all …]
Dbnx2x_dcb.h65 struct bnx2x_dcbx_pg_params ets; member
74 (bp)->dcbx_port_params.ets.enabled)
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dcb.c24 struct ieee_ets *ets) in mlxsw_sp_dcbnl_ieee_getets() argument
28 memcpy(ets, mlxsw_sp_port->dcb.ets, sizeof(*ets)); in mlxsw_sp_dcbnl_ieee_getets()
34 struct ieee_ets *ets) in mlxsw_sp_port_ets_validate() argument
41 switch (ets->tc_tsa[i]) { in mlxsw_sp_port_ets_validate()
46 tx_bw_sum += ets->tc_tx_bw[i]; in mlxsw_sp_port_ets_validate()
53 if (ets->prio_tc[i] >= IEEE_8021QAZ_MAX_TCS) { in mlxsw_sp_port_ets_validate()
68 struct ieee_ets *ets) in mlxsw_sp_port_headroom_ets_set() argument
77 hdroom.prios.prio[prio].ets_buf_idx = ets->prio_tc[prio]; in mlxsw_sp_port_headroom_ets_set()
92 struct ieee_ets *ets) in __mlxsw_sp_dcbnl_ieee_setets() argument
94 struct ieee_ets *my_ets = mlxsw_sp_port->dcb.ets; in __mlxsw_sp_dcbnl_ieee_setets()
[all …]
/drivers/net/ethernet/intel/ice/
Dice_dcb_nl.c32 static int ice_dcbnl_getets(struct net_device *netdev, struct ieee_ets *ets) in ice_dcbnl_getets() argument
40 ets->willing = dcbxcfg->etscfg.willing; in ice_dcbnl_getets()
41 ets->ets_cap = dcbxcfg->etscfg.maxtcs; in ice_dcbnl_getets()
42 ets->cbs = dcbxcfg->etscfg.cbs; in ice_dcbnl_getets()
43 memcpy(ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable, sizeof(ets->tc_tx_bw)); in ice_dcbnl_getets()
44 memcpy(ets->tc_rx_bw, dcbxcfg->etscfg.tcbwtable, sizeof(ets->tc_rx_bw)); in ice_dcbnl_getets()
45 memcpy(ets->tc_tsa, dcbxcfg->etscfg.tsatable, sizeof(ets->tc_tsa)); in ice_dcbnl_getets()
46 memcpy(ets->prio_tc, dcbxcfg->etscfg.prio_table, sizeof(ets->prio_tc)); in ice_dcbnl_getets()
47 memcpy(ets->tc_reco_bw, dcbxcfg->etsrec.tcbwtable, in ice_dcbnl_getets()
48 sizeof(ets->tc_reco_bw)); in ice_dcbnl_getets()
[all …]
/drivers/net/ethernet/intel/i40e/
Di40e_dcb_nl.c36 struct ieee_ets *ets) in i40e_dcbnl_ieee_getets() argument
45 ets->willing = dcbxcfg->etscfg.willing; in i40e_dcbnl_ieee_getets()
46 ets->ets_cap = I40E_MAX_TRAFFIC_CLASS; in i40e_dcbnl_ieee_getets()
47 ets->cbs = dcbxcfg->etscfg.cbs; in i40e_dcbnl_ieee_getets()
48 memcpy(ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable, in i40e_dcbnl_ieee_getets()
49 sizeof(ets->tc_tx_bw)); in i40e_dcbnl_ieee_getets()
50 memcpy(ets->tc_rx_bw, dcbxcfg->etscfg.tcbwtable, in i40e_dcbnl_ieee_getets()
51 sizeof(ets->tc_rx_bw)); in i40e_dcbnl_ieee_getets()
52 memcpy(ets->tc_tsa, dcbxcfg->etscfg.tsatable, in i40e_dcbnl_ieee_getets()
53 sizeof(ets->tc_tsa)); in i40e_dcbnl_ieee_getets()
[all …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb_nl.c488 struct ieee_ets *ets) in ixgbe_dcbnl_ieee_getets() argument
493 ets->ets_cap = adapter->dcb_cfg.num_tcs.pg_tcs; in ixgbe_dcbnl_ieee_getets()
499 ets->cbs = my_ets->cbs; in ixgbe_dcbnl_ieee_getets()
500 memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw)); in ixgbe_dcbnl_ieee_getets()
501 memcpy(ets->tc_rx_bw, my_ets->tc_rx_bw, sizeof(ets->tc_rx_bw)); in ixgbe_dcbnl_ieee_getets()
502 memcpy(ets->tc_tsa, my_ets->tc_tsa, sizeof(ets->tc_tsa)); in ixgbe_dcbnl_ieee_getets()
503 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in ixgbe_dcbnl_ieee_getets()
508 struct ieee_ets *ets) in ixgbe_dcbnl_ieee_setets() argument
535 if (ets->prio_tc[i] > max_tc) in ixgbe_dcbnl_ieee_setets()
536 max_tc = ets->prio_tc[i]; in ixgbe_dcbnl_ieee_setets()
[all …]
Dixgbe_dcb.c303 s32 ixgbe_dcb_hw_ets(struct ixgbe_hw *hw, struct ieee_ets *ets, int max_frame) in ixgbe_dcb_hw_ets() argument
314 switch (ets->tc_tsa[i]) { in ixgbe_dcb_hw_ets()
331 ixgbe_ieee_credits(ets->tc_tx_bw, refill, max, max_frame); in ixgbe_dcb_hw_ets()
333 bwg_id, prio_type, ets->prio_tc); in ixgbe_dcb_hw_ets()
Dixgbe_dcb.h131 s32 ixgbe_dcb_hw_ets(struct ixgbe_hw *hw, struct ieee_ets *ets, int max);
/drivers/net/ethernet/hisilicon/hns3/
Dhns3_dcbnl.c7 static int hns3_dcbnl_ieee_getets(struct net_device *ndev, struct ieee_ets *ets) in hns3_dcbnl_ieee_getets() argument
15 return h->kinfo.dcb_ops->ieee_getets(h, ets); in hns3_dcbnl_ieee_getets()
20 static int hns3_dcbnl_ieee_setets(struct net_device *ndev, struct ieee_ets *ets) in hns3_dcbnl_ieee_setets() argument
28 return h->kinfo.dcb_ops->ieee_setets(h, ets); in hns3_dcbnl_ieee_setets()
/drivers/net/ethernet/qlogic/qed/
Dqed_dcbx.c345 p_ets = &p_hwfn->p_dcbx_info->operational.features.ets; in qed_dcbx_process_mib_info()
611 p_feat->app.app_pri_tbl, &p_feat->ets, in qed_dcbx_get_local_params()
623 p_feat->app.app_pri_tbl, &p_feat->ets, in qed_dcbx_get_remote_params()
674 p_feat->app.app_pri_tbl, &p_feat->ets, in qed_dcbx_get_operational_params()
1193 qed_dcbx_set_ets_data(p_hwfn, &local_admin->features.ets, in qed_dcbx_set_local_params()
2123 struct ieee_ets *ets, bool remote) in qed_dcbnl_get_ieee_ets() argument
2154 ets->ets_cap = params->max_ets_tc; in qed_dcbnl_get_ieee_ets()
2155 ets->willing = params->ets_willing; in qed_dcbnl_get_ieee_ets()
2156 ets->cbs = params->ets_cbs; in qed_dcbnl_get_ieee_ets()
2157 memcpy(ets->tc_tx_bw, params->ets_tc_bw_tbl, sizeof(ets->tc_tx_bw)); in qed_dcbnl_get_ieee_ets()
[all …]
/drivers/net/ethernet/qlogic/qede/
Dqede_dcbnl.c255 struct ieee_ets *ets) in qede_dcbnl_ieee_getets() argument
259 return edev->ops->dcb->ieee_getets(edev->cdev, ets); in qede_dcbnl_ieee_getets()
263 struct ieee_ets *ets) in qede_dcbnl_ieee_setets() argument
267 return edev->ops->dcb->ieee_setets(edev->cdev, ets); in qede_dcbnl_ieee_setets()
300 struct ieee_ets *ets) in qede_dcbnl_ieee_peer_getets() argument
304 return edev->ops->dcb->ieee_peer_getets(edev->cdev, ets); in qede_dcbnl_ieee_peer_getets()
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_dcb.c940 static int cxgb4_ieee_read_ets(struct net_device *dev, struct ieee_ets *ets, in cxgb4_ieee_read_ets() argument
953 ets->ets_cap = dcb->pg_num_tcs_supported; in cxgb4_ieee_read_ets()
956 ets->willing = 1; in cxgb4_ieee_read_ets()
986 ets->prio_tc[i] = bwg; in cxgb4_ieee_read_ets()
987 ets->tc_tx_bw[i] = pcmd.u.dcb.pgrate.pgrate[i]; in cxgb4_ieee_read_ets()
988 ets->tc_rx_bw[i] = ets->tc_tx_bw[i]; in cxgb4_ieee_read_ets()
989 ets->tc_tsa[i] = pcmd.u.dcb.pgrate.tsa[i]; in cxgb4_ieee_read_ets()
995 static int cxgb4_ieee_get_ets(struct net_device *dev, struct ieee_ets *ets) in cxgb4_ieee_get_ets() argument
997 return cxgb4_ieee_read_ets(dev, ets, 1); in cxgb4_ieee_get_ets()
1017 static int cxgb4_ieee_peer_ets(struct net_device *dev, struct ieee_ets *ets) in cxgb4_ieee_peer_ets() argument
[all …]
/drivers/staging/qlge/
Dqlge_dbg.c1114 + sizeof(mpi_coredump->ets), in qlge_core_dump()
1116 status = qlge_get_ets_regs(qdev, &mpi_coredump->ets[0]); in qlge_core_dump()
1287 + sizeof(mpi_coredump->ets), in qlge_gen_reg_dump()
1289 status = qlge_get_ets_regs(qdev, &mpi_coredump->ets[0]); in qlge_gen_reg_dump()
Dqlge_devlink.c128 FILL_SEG(ets_seg_hdr, ets); in qlge_reporter_coredump()
Dqlge.h1792 u32 ets[8 + 2]; member
1936 u32 ets[ETS_REGS_DUMP_WORD_COUNT]; member
/drivers/net/ethernet/stmicro/stmmac/
Ddwxgmac2_core.c156 bool ets = true; in dwxgmac2_prog_mtl_tx_algorithms() local
174 ets = false; in dwxgmac2_prog_mtl_tx_algorithms()
184 if (ets) in dwxgmac2_prog_mtl_tx_algorithms()
/drivers/net/ethernet/intel/igb/
Digb.h643 bool ets; member

12