| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| H A D | qos.c | 59 u32 tc_bw[DEVLINK_RATE_TCS_MAX]; member 390 static u32 esw_qos_calculate_tc_bw_divider(u32 *tc_bw) in esw_qos_calculate_tc_bw_divider() argument 396 total += tc_bw[i]; in esw_qos_calculate_tc_bw_divider() 600 u32 *tc_bw) in esw_qos_tc_arbiter_get_bw_shares() argument 602 memcpy(tc_bw, tc_arbiter_node->tc_bw, sizeof(tc_arbiter_node->tc_bw)); in esw_qos_tc_arbiter_get_bw_shares() 607 u32 *tc_bw, struct netlink_ext_ack *extack) in esw_qos_set_tc_arbiter_bw_shares() argument 614 divider = esw_qos_calculate_tc_bw_divider(tc_bw); in esw_qos_set_tc_arbiter_bw_shares() 619 tc_arbiter_node->tc_bw[tc] = tc_bw[tc]; in esw_qos_set_tc_arbiter_bw_shares() 620 bw_share = tc_bw[tc] * fw_max_bw_share; in esw_qos_set_tc_arbiter_bw_shares() 1055 memset(vport_node->tc_bw, 0, sizeof(vport_node->tc_bw)); in esw_qos_vport_disable() [all …]
|
| H A D | qos.h | 23 u32 *tc_bw, 27 u32 *tc_bw,
|
| /linux/net/devlink/ |
| H A D | rate.c | 129 static int devlink_rate_put_tc_bws(struct sk_buff *msg, u32 *tc_bw) in devlink_rate_put_tc_bws() argument 140 nla_put_u32(msg, DEVLINK_RATE_TC_ATTR_BW, tc_bw[i])) in devlink_rate_put_tc_bws() 219 if (devlink_rate_put_tc_bws(msg, devlink_rate->tc_bw)) in devlink_nl_rate_fill() 440 static int devlink_nl_rate_tc_bw_parse(struct nlattr *parent_nest, u32 *tc_bw, in devlink_nl_rate_tc_bw_parse() argument 474 tc_bw[tc_index] = nla_get_u32(tb[DEVLINK_RATE_TC_ATTR_BW]); in devlink_nl_rate_tc_bw_parse() 485 u32 tc_bw[DEVLINK_RATE_TCS_MAX] = {}; in devlink_nl_rate_tc_bw_set() local 491 err = devlink_nl_rate_tc_bw_parse(attr, tc_bw, bitmap, in devlink_nl_rate_tc_bw_set() 508 tc_bw, info->extack); in devlink_nl_rate_tc_bw_set() 511 tc_bw, info->extack); in devlink_nl_rate_tc_bw_set() 516 memcpy(devlink_rate->tc_bw, tc_bw, sizeof(tc_bw)); in devlink_nl_rate_tc_bw_set()
|
| /linux/tools/testing/selftests/drivers/net/netdevsim/ |
| H A D | devlink.sh | 771 local tc_bw=$2 775 for bw in $tc_bw; do 785 for bw in $tc_bw; do 795 for bw in $tc_bw; do 875 local tc_bw="0:0 1:40 2:0 3:0 4:0 5:0 6:60 7:0" 878 rate_attr_tc_bw_check "$r_obj" "$tc_bw" \ 900 local tc_bw="0:20 1:0 2:0 3:0 4:0 5:20 6:60 7:0" 901 rate_attr_tc_bw_check $node1 "$tc_bw" \
|
| /linux/drivers/net/netdevsim/ |
| H A D | dev.c | 321 static void nsim_dev_tc_bw_debugfs_init(struct dentry *ddir, u32 *tc_bw) in nsim_dev_tc_bw_debugfs_init() argument 329 debugfs_create_u32(name, 0400, ddir, &tc_bw[i]); in nsim_dev_tc_bw_debugfs_init() 360 nsim_dev_port->tc_bw); in nsim_dev_port_debugfs_init() 1171 void *priv, u32 *tc_bw, in nsim_leaf_tc_bw_set() argument 1178 nsim_dev_port->tc_bw[i] = tc_bw[i]; in nsim_leaf_tc_bw_set() 1221 u32 tc_bw[DEVLINK_RATE_TCS_MAX]; member 1225 u32 *tc_bw, struct netlink_ext_ack *extack) in nsim_node_tc_bw_set() argument 1231 nsim_node->tc_bw[i] = tc_bw[i]; in nsim_node_tc_bw_set() 1288 nsim_dev_tc_bw_debugfs_init(nsim_node->ddir, nsim_node->tc_bw); in nsim_rate_node_new()
|
| H A D | netdevsim.h | 304 u32 tc_bw[DEVLINK_RATE_TCS_MAX]; member
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | devlink_rate_tc_bw.py | 305 for tc_ix, tc_bw in results.items(): 306 if tc_bw is None:
|
| /linux/include/net/ |
| H A D | devlink.h | 126 u32 tc_bw[DEVLINK_RATE_TCS_MAX]; member 1576 void *priv, u32 *tc_bw, 1587 void *priv, u32 *tc_bw,
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | mlx5_core.h | 344 int mlx5_set_port_tc_bw_alloc(struct mlx5_core_dev *mdev, u8 *tc_bw);
|
| H A D | port.c | 742 int mlx5_set_port_tc_bw_alloc(struct mlx5_core_dev *mdev, u8 *tc_bw) in mlx5_set_port_tc_bw_alloc() argument 749 MLX5_SET(qetc_reg, in, tc_configuration[i].bw_allocation, tc_bw[i]); in mlx5_set_port_tc_bw_alloc()
|
| /linux/Documentation/networking/devlink/ |
| H A D | devlink-port.rst | 435 ``tc_bw`` 440 When applied to a non-leaf node, tc_bw determines how bandwidth is shared
|
| /linux/drivers/infiniband/hw/ocrdma/ |
| H A D | ocrdma_sli.h | 2224 u32 tc_bw[2]; member
|