/linux/net/devlink/ |
H A D | rate.c | 83 static int devlink_rate_put_tc_bws(struct sk_buff *msg, u32 *tc_bw) in devlink_rate_put_tc_bws() argument 94 nla_put_u32(msg, DEVLINK_RATE_TC_ATTR_BW, tc_bw[i])) in devlink_rate_put_tc_bws() 155 if (devlink_rate_put_tc_bws(msg, devlink_rate->tc_bw)) in devlink_nl_rate_fill() 345 static int devlink_nl_rate_tc_bw_parse(struct nlattr *parent_nest, u32 *tc_bw, in devlink_nl_rate_tc_bw_parse() argument 379 tc_bw[tc_index] = nla_get_u32(tb[DEVLINK_RATE_TC_ATTR_BW]); in devlink_nl_rate_tc_bw_parse() 390 u32 tc_bw[DEVLINK_RATE_TCS_MAX] = {}; in devlink_nl_rate_tc_bw_set() local 396 err = devlink_nl_rate_tc_bw_parse(attr, tc_bw, bitmap, in devlink_nl_rate_tc_bw_set() 413 tc_bw, info->extack); in devlink_nl_rate_tc_bw_set() 416 tc_bw, info->extack); in devlink_nl_rate_tc_bw_set() 421 memcpy(devlink_rate->tc_bw, tc_b in devlink_nl_rate_tc_bw_set() [all...] |
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | qos.h | 26 u32 *tc_bw, 30 u32 *tc_bw,
|
H A D | qos.c | 403 static u32 esw_qos_calculate_tc_bw_divider(u32 *tc_bw) in esw_qos_calculate_tc_bw_divider() argument 409 total += tc_bw[i]; in esw_qos_calculate_tc_bw_divider() 609 u32 *tc_bw) in esw_qos_tc_arbiter_get_bw_shares() argument 614 tc_bw[vports_tc_node->tc] = vports_tc_node->bw_share; in esw_qos_tc_arbiter_get_bw_shares() 619 u32 *tc_bw, struct netlink_ext_ack *extack) in esw_qos_set_tc_arbiter_bw_shares() argument 626 divider = esw_qos_calculate_tc_bw_divider(tc_bw); in esw_qos_set_tc_arbiter_bw_shares() 631 bw_share = tc_bw[tc] * fw_max_bw_share; in esw_qos_set_tc_arbiter_bw_shares() 1642 u32 *tc_bw) in esw_qos_validate_unsupported_tc_bw() argument 1647 if (tc_bw[i]) in esw_qos_validate_unsupported_tc_bw() 1655 u32 *tc_bw) in esw_qos_vport_validate_unsupported_tc_bw() argument 1664 esw_qos_tc_bw_disabled(u32 * tc_bw) esw_qos_tc_bw_disabled() argument 1736 mlx5_esw_devlink_rate_leaf_tc_bw_set(struct devlink_rate * rate_leaf,void * priv,u32 * tc_bw,struct netlink_ext_ack * extack) mlx5_esw_devlink_rate_leaf_tc_bw_set() argument 1789 mlx5_esw_devlink_rate_node_tc_bw_set(struct devlink_rate * rate_node,void * priv,u32 * tc_bw,struct netlink_ext_ack * extack) mlx5_esw_devlink_rate_node_tc_bw_set() argument [all...] |
/linux/tools/testing/selftests/drivers/net/netdevsim/ |
H A D | devlink.sh | 616 local tc_bw=$2 620 for bw in $tc_bw; do 630 for bw in $tc_bw; do 640 for bw in $tc_bw; do 694 local tc_bw="0:0 1:40 2:0 3:0 4:0 5:0 6:60 7:0" 697 rate_attr_tc_bw_check "$r_obj" "$tc_bw" \ 719 local tc_bw="0:20 1:0 2:0 3:0 4:0 5:20 6:60 7:0" 720 rate_attr_tc_bw_check $node1 "$tc_bw" \
|
/linux/drivers/net/netdevsim/ |
H A D | dev.c | 393 static void nsim_dev_tc_bw_debugfs_init(struct dentry *ddir, u32 *tc_bw) in nsim_dev_tc_bw_debugfs_init() argument 401 debugfs_create_u32(name, 0400, ddir, &tc_bw[i]); in nsim_dev_tc_bw_debugfs_init() 432 nsim_dev_port->tc_bw); in nsim_dev_port_debugfs_init() 1191 void *priv, u32 *tc_bw, in nsim_leaf_tc_bw_set() argument 1198 nsim_dev_port->tc_bw[i] = tc_bw[i]; in nsim_leaf_tc_bw_set() 1241 u32 tc_bw[DEVLINK_RATE_TCS_MAX]; member 1245 u32 *tc_bw, struct netlink_ext_ack *extack) in nsim_node_tc_bw_set() argument 1251 nsim_node->tc_bw[i] = tc_bw[ in nsim_node_tc_bw_set() [all...] |
H A D | netdevsim.h | 280 u32 tc_bw[DEVLINK_RATE_TCS_MAX]; member
|
/linux/tools/testing/selftests/drivers/net/hw/ |
H A D | devlink_rate_tc_bw.py | 321 for tc_ix, tc_bw in results.items(): 322 if tc_bw is None:
|
/linux/include/net/ |
H A D | devlink.h | 126 u32 tc_bw[DEVLINK_RATE_TCS_MAX]; member 1502 void *priv, u32 *tc_bw, 1513 void *priv, u32 *tc_bw,
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | mlx5_core.h | 342 int mlx5_set_port_tc_bw_alloc(struct mlx5_core_dev *mdev, u8 *tc_bw);
|
H A D | port.c | 740 int mlx5_set_port_tc_bw_alloc(struct mlx5_core_dev *mdev, u8 *tc_bw) in mlx5_set_port_tc_bw_alloc() argument 747 MLX5_SET(qetc_reg, in, tc_configuration[i].bw_allocation, tc_bw[i]); in mlx5_set_port_tc_bw_alloc()
|
/linux/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_sli.h | 2224 u32 tc_bw[2]; member
|