Home
last modified time | relevance | path

Searched refs:htb (Results 1 – 6 of 6) sorted by relevance

/drivers/net/ethernet/mellanox/mlx5/core/en/
Dqos.c17 int last = find_last_bit(priv->htb.qos_used_qids, mlx5e_qos_max_leaf_nodes(priv->mdev)); in mlx5e_qos_cur_leaf_nodes()
30 res = find_first_zero_bit(priv->htb.qos_used_qids, size); in mlx5e_find_unused_qos_qid()
63 __set_bit(qid, priv->htb.qos_used_qids); in mlx5e_sw_node_create_leaf()
66 hash_add_rcu(priv->htb.qos_tc2node, &node->hnode, classid); in mlx5e_sw_node_create_leaf()
83 hash_add_rcu(priv->htb.qos_tc2node, &node->hnode, node->classid); in mlx5e_sw_node_create_root()
92 hash_for_each_possible(priv->htb.qos_tc2node, node, hnode, classid) { in mlx5e_sw_node_find()
104 hash_for_each_possible_rcu(priv->htb.qos_tc2node, node, hnode, classid) { in mlx5e_sw_node_find_rcu()
116 __clear_bit(node->qid, priv->htb.qos_used_qids); in mlx5e_sw_node_delete()
196 WARN_ON(node->qid > priv->htb.max_qos_sqs); in mlx5e_open_qos_sq()
197 if (node->qid == priv->htb.max_qos_sqs) { in mlx5e_open_qos_sq()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c1319 sq->stats = c->priv->htb.qos_sq_stats[qos_qid]; in mlx5e_open_txqsq()
3018 if (WARN_ON(priv->htb.maj_id)) in mlx5e_setup_tc_mqprio()
3031 static int mlx5e_setup_tc_htb(struct mlx5e_priv *priv, struct tc_htb_qopt_offload *htb) in mlx5e_setup_tc_htb() argument
3035 switch (htb->command) { in mlx5e_setup_tc_htb()
3037 return mlx5e_htb_root_add(priv, htb->parent_classid, htb->classid, in mlx5e_setup_tc_htb()
3038 htb->extack); in mlx5e_setup_tc_htb()
3042 res = mlx5e_htb_leaf_alloc_queue(priv, htb->classid, htb->parent_classid, in mlx5e_setup_tc_htb()
3043 htb->rate, htb->ceil, htb->extack); in mlx5e_setup_tc_htb()
3046 htb->qid = res; in mlx5e_setup_tc_htb()
3049 return mlx5e_htb_leaf_to_inner(priv, htb->parent_classid, htb->classid, in mlx5e_setup_tc_htb()
[all …]
Den_stats.c436 max_qos_sqs = smp_load_acquire(&priv->htb.max_qos_sqs); in mlx5e_stats_grp_sw_update_stats_qos()
437 stats = READ_ONCE(priv->htb.qos_sq_stats); in mlx5e_stats_grp_sw_update_stats_qos()
2001 return NUM_QOS_SQ_STATS * smp_load_acquire(&priv->htb.max_qos_sqs); in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS()
2007 u16 max_qos_sqs = smp_load_acquire(&priv->htb.max_qos_sqs); in MLX5E_DECLARE_STATS_GRP_OP_FILL_STRS()
2025 max_qos_sqs = smp_load_acquire(&priv->htb.max_qos_sqs); in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
2026 stats = READ_ONCE(priv->htb.qos_sq_stats); in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
Den_tx.c98 classid = READ_ONCE(priv->htb.defcls); in mlx5e_select_htb_queue()
121 u16 htb_maj_id = smp_load_acquire(&priv->htb.maj_id); in mlx5e_select_queue()
Den_ethtool.c452 if (priv->htb.maj_id) { in mlx5e_ethtool_set_channels()
2032 if (priv->htb.maj_id) { in set_pflag_tx_port_ts()
Den.h893 struct mlx5e_htb htb; member