| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ ! |
| H A D | qos.c | 106 u32 tc_bw[DEVLINK_RATE_TCS_MAX]; member 398 static u32 esw_qos_calculate_tc_bw_divider(u32 *tc_bw) in esw_qos_calculate_tc_bw_divider() argument 404 total += tc_bw[i]; in esw_qos_calculate_tc_bw_divider() 605 u32 *tc_bw) in esw_qos_tc_arbiter_get_bw_shares() argument 607 memcpy(tc_bw, tc_arbiter_node->tc_bw, sizeof(tc_arbiter_node->tc_bw)); in esw_qos_tc_arbiter_get_bw_shares() 612 u32 *tc_bw, struct netlink_ext_ack *extack) in esw_qos_set_tc_arbiter_bw_shares() argument 619 divider = esw_qos_calculate_tc_bw_divider(tc_bw); in esw_qos_set_tc_arbiter_bw_shares() 624 tc_arbiter_node->tc_bw[tc] = tc_bw[tc]; in esw_qos_set_tc_arbiter_bw_shares() 625 bw_share = tc_bw[tc] * fw_max_bw_share; in esw_qos_set_tc_arbiter_bw_shares() 1056 memset(vport_node->tc_bw, 0, sizeof(vport_node->tc_bw)); in esw_qos_vport_disable() [all …]
|
| H A D | qos.h | 26 u32 *tc_bw, 30 u32 *tc_bw,
|
| /linux/net/devlink/ ! |
| H A D | rate.c | 82 static int devlink_rate_put_tc_bws(struct sk_buff *msg, u32 *tc_bw) in devlink_rate_put_tc_bws() argument 93 nla_put_u32(msg, DEVLINK_RATE_TC_ATTR_BW, tc_bw[i])) in devlink_rate_put_tc_bws() 154 if (devlink_rate_put_tc_bws(msg, devlink_rate->tc_bw)) in devlink_nl_rate_fill() 344 static int devlink_nl_rate_tc_bw_parse(struct nlattr *parent_nest, u32 *tc_bw, in devlink_nl_rate_tc_bw_parse() argument 378 tc_bw[tc_index] = nla_get_u32(tb[DEVLINK_RATE_TC_ATTR_BW]); in devlink_nl_rate_tc_bw_parse() 389 u32 tc_bw[DEVLINK_RATE_TCS_MAX] = {}; in devlink_nl_rate_tc_bw_set() local 395 err = devlink_nl_rate_tc_bw_parse(attr, tc_bw, bitmap, in devlink_nl_rate_tc_bw_set() 412 tc_bw, info->extack); in devlink_nl_rate_tc_bw_set() 415 tc_bw, info->extack); in devlink_nl_rate_tc_bw_set() 420 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 | 720 local tc_bw=$2 724 for bw in $tc_bw; do 734 for bw in $tc_bw; do 744 for bw in $tc_bw; do 798 local tc_bw="0:0 1:40 2:0 3:0 4:0 5:0 6:60 7:0" 801 rate_attr_tc_bw_check "$r_obj" "$tc_bw" \ 823 local tc_bw="0:20 1:0 2:0 3:0 4:0 5:20 6:60 7:0" 824 rate_attr_tc_bw_check $node1 "$tc_bw" \
|
| /linux/drivers/net/netdevsim/ ! |
| H A D | dev.c | 396 static void nsim_dev_tc_bw_debugfs_init(struct dentry *ddir, u32 *tc_bw) in nsim_dev_tc_bw_debugfs_init() argument 404 debugfs_create_u32(name, 0400, ddir, &tc_bw[i]); in nsim_dev_tc_bw_debugfs_init() 435 nsim_dev_port->tc_bw); in nsim_dev_port_debugfs_init() 1246 void *priv, u32 *tc_bw, in nsim_leaf_tc_bw_set() argument 1253 nsim_dev_port->tc_bw[i] = tc_bw[i]; in nsim_leaf_tc_bw_set() 1296 u32 tc_bw[DEVLINK_RATE_TCS_MAX]; member 1300 u32 *tc_bw, struct netlink_ext_ack *extack) in nsim_node_tc_bw_set() argument 1306 nsim_node->tc_bw[i] = tc_bw[i]; in nsim_node_tc_bw_set() 1363 nsim_dev_tc_bw_debugfs_init(nsim_node->ddir, nsim_node->tc_bw); in nsim_rate_node_new()
|
| H A D | netdevsim.h | 291 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 1563 void *priv, u32 *tc_bw, 1574 void *priv, u32 *tc_bw,
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ ! |
| 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()
|
| H A D | mlx5_core.h | 344 int mlx5_set_port_tc_bw_alloc(struct mlx5_core_dev *mdev, u8 *tc_bw);
|
| /linux/Documentation/networking/devlink/ ! |
| H A D | devlink-port.rst | 421 ``tc_bw`` 426 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
|