/linux/drivers/net/ethernet/amd/xgbe/ |
A D | xgbe-dcb.c | 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() 135 memcpy(ets->tc_tsa, pdata->ets->tc_tsa, in xgbe_dcb_ieee_getets() 137 memcpy(ets->prio_tc, pdata->ets->prio_tc, in xgbe_dcb_ieee_getets() 156 ets->tc_tx_bw[i], ets->tc_rx_bw[i], in xgbe_dcb_ieee_setets() 162 if ((ets->tc_tx_bw[i] || ets->tc_tsa[i])) in xgbe_dcb_ieee_setets() 195 if (!pdata->ets) { in xgbe_dcb_ieee_setets() 196 pdata->ets = devm_kzalloc(pdata->dev, sizeof(*pdata->ets), in xgbe_dcb_ieee_setets() 198 if (!pdata->ets) in xgbe_dcb_ieee_setets() [all …]
|
A D | xgbe-dev.c | 473 tc = pdata->ets->prio_tc[prio]; in xgbe_is_pfc_queue() 555 struct ieee_ets *ets = pdata->ets; in xgbe_enable_tx_flow_control() local 566 if (pfc && ets) { in xgbe_enable_tx_flow_control() 2574 if (pdata->pfc && pdata->ets) in xgbe_config_rx_fifo_size() 2703 if (!pdata->ets) in xgbe_config_tc() 2708 pdata->ets->prio_tc[prio]); in xgbe_config_tc() 2713 struct ieee_ets *ets = pdata->ets; in xgbe_config_dcb_tc() local 2718 if (!ets) in xgbe_config_dcb_tc() 2736 if (ets->prio_tc[prio] == i) in xgbe_config_dcb_tc() 2752 switch (ets->tc_tsa[i]) { in xgbe_config_dcb_tc() [all …]
|
/linux/drivers/net/ethernet/intel/fm10k/ |
A D | fm10k_dcbnl.c | 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() 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() 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() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_dcbnl.c | 157 memcpy(ets->tc_tsa, priv->dcbx.tc_tsa, sizeof(ets->tc_tsa)); in mlx5e_dcbnl_ieee_getets() 273 memcpy(priv->dcbx.tc_tsa, ets->tc_tsa, sizeof(ets->tc_tsa)); in mlx5e_dcbnl_ieee_setets_core() 624 struct ieee_ets ets; in mlx5e_dcbnl_setall() local 632 memset(&ets, 0, sizeof(ets)); in mlx5e_dcbnl_setall() 643 __func__, i, ets.tc_tx_bw[i], ets.tc_rx_bw[i], in mlx5e_dcbnl_setall() 644 ets.prio_tc[i]); in mlx5e_dcbnl_setall() 760 struct ieee_ets ets; in mlx5e_dcbnl_getpgbwgcfgtx() local 1057 struct ieee_ets ets; in mlx5e_ets_init() local 1064 memset(&ets, 0, sizeof(ets)); in mlx5e_ets_init() 1069 ets.prio_tc[i] = i; in mlx5e_ets_init() [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
A D | hclge_dcb.c | 12 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() 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() 117 if (ets->prio_tc[i] > max_tc_id) in hclge_ets_tc_changed() 118 max_tc_id = ets->prio_tc[i]; in hclge_ets_tc_changed() 133 switch (ets->tc_tsa[i]) { in hclge_ets_sch_mode_validate() [all …]
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_dcb.c | 89 ets->prio_tc[i] = tc; in bnxt_hwrm_queue_pri2cos_qcfg() 474 ets->prio_tc[i]); in bnxt_ets_validate() 478 max_tc = ets->prio_tc[i]; in bnxt_ets_validate() 480 if ((ets->tc_tx_bw[i] || ets->tc_tsa[i]) && i > bp->max_tc) in bnxt_ets_validate() 483 switch (ets->tc_tsa[i]) { in bnxt_ets_validate() 516 ets->ets_cap = bp->max_tc; in bnxt_dcbnl_ieee_getets() 536 ets->cbs = my_ets->cbs; in bnxt_dcbnl_ieee_getets() 537 memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw)); in bnxt_dcbnl_ieee_getets() 538 memcpy(ets->tc_rx_bw, my_ets->tc_rx_bw, sizeof(ets->tc_rx_bw)); in bnxt_dcbnl_ieee_getets() 539 memcpy(ets->tc_tsa, my_ets->tc_tsa, sizeof(ets->tc_tsa)); in bnxt_dcbnl_ieee_getets() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | en_dcb_nl.c | 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() 314 i, ets->prio_tc[i]); in mlx4_en_ets_validate() 318 switch (ets->tc_tsa[i]) { in mlx4_en_ets_validate() 328 i, ets->tc_tsa[i]); in mlx4_en_ets_validate() 351 ets = ets ?: &priv->ets; in mlx4_en_config_port_scheduler() 356 switch (ets->tc_tsa[i]) { in mlx4_en_config_port_scheduler() 395 memcpy(&priv->ets, ets, sizeof(priv->ets)); in mlx4_en_dcbnl_ieee_setets() [all …]
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
A D | bnx2x_dcb.c | 50 struct dcbx_ets_feature *ets); 307 ets->pri_pg_tbl); in bnx2x_dcbx_get_ets_feature() 319 ets->pri_pg_tbl[0] = 0; in bnx2x_dcbx_get_ets_feature() 507 struct bnx2x_dcbx_pg_params *ets = &(bp->dcbx_port_params.ets); in bnx2x_dcbx_2cos_limit_update_ets_config() local 510 if (ets->num_of_cos == 0 || ets->num_of_cos > DCBX_COS_MAX_NUM_E2) { in bnx2x_dcbx_2cos_limit_update_ets_config() 529 ets->cos_params[0].strict, in bnx2x_dcbx_2cos_limit_update_ets_config() 530 ets->cos_params[0].bw_tbl, in bnx2x_dcbx_2cos_limit_update_ets_config() 569 struct bnx2x_dcbx_pg_params *ets = &(bp->dcbx_port_params.ets); in bnx2x_dcbx_update_ets_config() local 1596 ets, in bnx2x_dcbx_2cos_limit_cee_fill_cos_params() 1607 ets, in bnx2x_dcbx_2cos_limit_cee_fill_cos_params() [all …]
|
A D | bnx2x_dcb.h | 65 struct bnx2x_dcbx_pg_params ets; member 74 (bp)->dcbx_port_params.ets.enabled)
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_dcb.c | 24 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() 68 struct ieee_ets *ets) in mlxsw_sp_port_headroom_ets_set() argument 92 struct ieee_ets *ets) in __mlxsw_sp_dcbnl_ieee_setets() argument 101 u8 weight = ets->tc_tx_bw[i]; in __mlxsw_sp_dcbnl_ieee_setets() 115 ets->prio_tc[i]); in __mlxsw_sp_dcbnl_ieee_setets() 118 ets->prio_tc[i]); in __mlxsw_sp_dcbnl_ieee_setets() 162 memcpy(mlxsw_sp_port->dcb.ets, ets, sizeof(*ets)); in mlxsw_sp_dcbnl_ieee_setets() [all …]
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_dcb_nl.c | 36 struct ieee_ets *ets) in i40e_dcbnl_ieee_getets() argument 47 ets->cbs = dcbxcfg->etscfg.cbs; in i40e_dcbnl_ieee_getets() 49 sizeof(ets->tc_tx_bw)); in i40e_dcbnl_ieee_getets() 51 sizeof(ets->tc_rx_bw)); in i40e_dcbnl_ieee_getets() 53 sizeof(ets->tc_tsa)); in i40e_dcbnl_ieee_getets() 55 sizeof(ets->prio_tc)); in i40e_dcbnl_ieee_getets() 57 sizeof(ets->tc_reco_bw)); in i40e_dcbnl_ieee_getets() 59 sizeof(ets->tc_reco_tsa)); in i40e_dcbnl_ieee_getets() 61 sizeof(ets->reco_prio_tc)); in i40e_dcbnl_ieee_getets() 107 struct ieee_ets *ets) in i40e_dcbnl_ieee_setets() argument [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_dcb_nl.c | 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() 48 sizeof(ets->tc_reco_bw)); in ice_dcbnl_getets() 50 sizeof(ets->tc_reco_tsa)); in ice_dcbnl_getets() 52 sizeof(ets->reco_prio_tc)); in ice_dcbnl_getets() 78 new_cfg->etscfg.cbs = ets->cbs; in ice_dcbnl_setets() 81 bwcfg += ets->tc_tx_bw[i]; in ice_dcbnl_setets() [all …]
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe_dcb_nl.c | 488 struct ieee_ets *ets) in ixgbe_dcbnl_ieee_getets() argument 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() 716 struct ieee_ets ets = {0}; in ixgbe_dcbnl_setdcbx() local [all …]
|
A D | ixgbe_dcb.c | 303 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()
|
A D | ixgbe_dcb.h | 131 s32 ixgbe_dcb_hw_ets(struct ixgbe_hw *hw, struct ieee_ets *ets, int max);
|
/linux/drivers/net/ethernet/hisilicon/hns3/ |
A D | hns3_dcbnl.c | 7 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()
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
A D | qos_headroom.sh | 50 dcb -j ets show dev $swp | 125 dcb ets set dev $swp prio-tc 0:0 1:2 2:4 3:6 4:1 5:3 6:5 7:7 131 dcb ets set dev $swp prio-tc all:0 178 dcb ets set dev $swp prio-tc all:0 5:1 6:2 7:3 226 dcb ets set dev $swp prio-tc all:0 246 dcb ets set dev $swp prio-tc 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7 262 dcb ets set dev $swp prio-tc all:0
|
A D | qos_pfc.sh | 173 ets bands 8 strict 8 priomap 7 6 189 ets bands 8 strict 8 priomap 7 6 206 ets bands 8 strict 8 priomap 7 6 228 ets bands 8 strict 8 priomap 7 6
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A D | qed_dcbx.c | 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() 2158 memcpy(ets->tc_tsa, params->ets_tc_tsa_tbl, sizeof(ets->tc_tsa)); in qed_dcbnl_get_ieee_ets() 2159 memcpy(ets->prio_tc, params->ets_pri_tc_tbl, sizeof(ets->prio_tc)); in qed_dcbnl_get_ieee_ets() 2198 dcbx_set.config.params.ets_cbs = ets->cbs; in qed_dcbnl_ieee_setets() 2200 sizeof(ets->tc_tx_bw)); in qed_dcbnl_ieee_setets() 2202 sizeof(ets->tc_tsa)); in qed_dcbnl_ieee_setets() [all …]
|
/linux/drivers/net/ethernet/qlogic/qede/ |
A D | qede_dcbnl.c | 255 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()
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
A D | cxgb4_dcb.c | 940 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 …]
|
/linux/include/linux/qed/ |
A D | qed_eth_if.h | 196 int (*ieee_getets)(struct qed_dev *cdev, struct ieee_ets *ets); 197 int (*ieee_setets)(struct qed_dev *cdev, struct ieee_ets *ets); 198 int (*ieee_peer_getets)(struct qed_dev *cdev, struct ieee_ets *ets);
|
/linux/net/dcb/ |
A D | dcbnl.c | 1047 struct ieee_ets ets; in dcbnl_ieee_fill() local 1048 memset(&ets, 0, sizeof(ets)); in dcbnl_ieee_fill() 1049 err = ops->ieee_getets(netdev, &ets); in dcbnl_ieee_fill() 1051 nla_put(skb, DCB_ATTR_IEEE_ETS, sizeof(ets), &ets)) in dcbnl_ieee_fill() 1138 struct ieee_ets ets; in dcbnl_ieee_fill() local 1139 memset(&ets, 0, sizeof(ets)); in dcbnl_ieee_fill() 1140 err = ops->ieee_peer_getets(netdev, &ets); in dcbnl_ieee_fill() 1142 nla_put(skb, DCB_ATTR_IEEE_PEER_ETS, sizeof(ets), &ets)) in dcbnl_ieee_fill() 1445 struct ieee_ets *ets = nla_data(ieee[DCB_ATTR_IEEE_ETS]); in dcbnl_ieee_set() local 1446 err = ops->ieee_setets(netdev, ets); in dcbnl_ieee_set()
|
/linux/tools/testing/selftests/net/forwarding/ |
A D | sch_ets_core.sh | 113 tc qdisc $op dev $dev $PARENT handle 10: ets \ 129 tc qdisc $op dev $dev $PARENT handle 10: ets \
|
/linux/fs/ |
A D | binfmt_elf.c | 2035 struct elf_thread_status *ets; in fill_note_info() local 2042 ets = kzalloc(sizeof(*ets), GFP_KERNEL); in fill_note_info() 2043 if (!ets) in fill_note_info() 2046 ets->thread = ct->task; in fill_note_info() 2047 list_add(&ets->list, &info->thread_list); in fill_note_info() 2050 list_for_each_entry(ets, &info->thread_list, list) { in fill_note_info() 2053 sz = elf_dump_thread_status(siginfo->si_signo, ets); in fill_note_info() 2109 struct elf_thread_status *ets; in write_note_info() local 2117 list_for_each_entry(ets, &info->thread_list, list) { in write_note_info() 2118 for (i = 0; i < ets->num_notes; i++) in write_note_info() [all …]
|