Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dhtb.c34 int mlx5e_htb_enumerate_leaves(struct mlx5e_htb *htb, mlx5e_fp_htb_enumerate callback, void *data) in mlx5e_htb_enumerate_leaves() argument
39 hash_for_each(htb->qos_tc2node, bkt, node, hnode) { in mlx5e_htb_enumerate_leaves()
49 int mlx5e_htb_cur_leaf_nodes(struct mlx5e_htb *htb) in mlx5e_htb_cur_leaf_nodes() argument
53 last = find_last_bit(htb->qos_used_qids, mlx5e_qos_max_leaf_nodes(htb->mdev)); in mlx5e_htb_cur_leaf_nodes()
54 return last == mlx5e_qos_max_leaf_nodes(htb->mdev) ? 0 : last + 1; in mlx5e_htb_cur_leaf_nodes()
57 static int mlx5e_htb_find_unused_qos_qid(struct mlx5e_htb *htb) in mlx5e_htb_find_unused_qos_qid() argument
59 int size = mlx5e_qos_max_leaf_nodes(htb->mdev); in mlx5e_htb_find_unused_qos_qid()
60 struct mlx5e_priv *priv = htb->priv; in mlx5e_htb_find_unused_qos_qid()
64 res = find_first_zero_bit(htb->qos_used_qids, size); in mlx5e_htb_find_unused_qos_qid()
70 mlx5e_htb_node_create_leaf(struct mlx5e_htb *htb, u16 classid, u16 qid, in mlx5e_htb_node_create_leaf() argument
[all …]
H A Dhtb.h15 int mlx5e_htb_enumerate_leaves(struct mlx5e_htb *htb, mlx5e_fp_htb_enumerate callback, void *data);
17 int mlx5e_htb_cur_leaf_nodes(struct mlx5e_htb *htb);
20 int mlx5e_htb_get_txq_by_classid(struct mlx5e_htb *htb, u16 classid);
25 mlx5e_htb_leaf_alloc_queue(struct mlx5e_htb *htb, u16 classid,
29 mlx5e_htb_leaf_to_inner(struct mlx5e_htb *htb, u16 classid, u16 child_classid,
31 int mlx5e_htb_leaf_del(struct mlx5e_htb *htb, u16 *classid,
34 mlx5e_htb_leaf_del_last(struct mlx5e_htb *htb, u16 classid, bool force,
37 mlx5e_htb_node_modify(struct mlx5e_htb *htb, u16 classid, u64 rate, u64 ceil,
40 void mlx5e_htb_free(struct mlx5e_htb *htb);
41 int mlx5e_htb_init(struct mlx5e_htb *htb, struct tc_htb_qopt_offload *htb_qopt,
[all …]
H A Dqos.c86 WARN_ON(node_qid >= mlx5e_htb_cur_leaf_nodes(priv->htb)); in mlx5e_open_qos_sq()
315 err = mlx5e_htb_enumerate_leaves(priv->htb, mlx5e_open_qos_sq_cb_wrapper, &callback_params); in mlx5e_qos_open_queues()
326 mlx5e_htb_enumerate_leaves(priv->htb, mlx5e_activate_qos_sq, priv); in mlx5e_qos_activate_queues()
389 struct mlx5e_htb *htb = priv->htb; in mlx5e_htb_setup_tc() local
392 if (!htb && htb_qopt->command != TC_HTB_CREATE) in mlx5e_htb_setup_tc()
408 priv->htb = mlx5e_htb_alloc(); in mlx5e_htb_setup_tc()
409 htb = priv->htb; in mlx5e_htb_setup_tc()
410 if (!htb) in mlx5e_htb_setup_tc()
412 res = mlx5e_htb_init(htb, htb_qopt, priv->netdev, priv->mdev, &priv->selq, priv); in mlx5e_htb_setup_tc()
414 mlx5e_htb_free(htb); in mlx5e_htb_setup_tc()
[all …]
H A Dqos.h41 int mlx5e_htb_setup_tc(struct mlx5e_priv *priv, struct tc_htb_qopt_offload *htb);
H A Dselq.c190 return mlx5e_htb_get_txq_by_classid(priv->htb, classid); in mlx5e_select_htb_queue()
/linux/Documentation/admin-guide/cgroup-v1/
H A Dnet_cls.rst35 tc qdisc add dev eth0 root handle 10: htb
36 tc class add dev eth0 parent 10: classid 10:1 htb rate 40mbit
/linux/tools/testing/selftests/net/netfilter/
H A Dconntrack_sctp_collision.sh48 tc -n "$SERVER_NS" qdisc add dev link0 root handle 1: htb r2q 64
49 tc -n "$SERVER_NS" class add dev link0 parent 1: classid 1:1 htb rate 100mbit
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dqos.h25 int otx2_setup_tc_htb(struct net_device *ndev, struct tc_htb_qopt_offload *htb);
/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-net.rst99 eth0(2) htb name prefix_matcher.o:[cls_prefix_matcher_htb] id 111727 act []
121 "kind": "htb",
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A DMakefile31 en/qos.o en/htb.o en/trap.o en/fs_tt_redirect.o en/selq.o \
H A Den.h937 struct mlx5e_htb *htb; member
H A Den_main.c2846 if (priv->htb) { in mlx5e_open_channels()
2876 if (priv->htb) in mlx5e_activate_channels()
3042 if (priv->htb) in mlx5e_update_tx_netdev_queues()
3043 qos_queues = mlx5e_htb_cur_leaf_nodes(priv->htb); in mlx5e_update_tx_netdev_queues()
/linux/tools/testing/selftests/net/
H A Drtnetlink.sh224 run_cmd tc qdisc add dev "$dev" root handle 1: htb
225 run_cmd tc class add dev "$dev" parent 1: classid 1:10 htb rate 1mbit
234 run_cmd tc qdisc del dev "$dev" root handle 1: htb
/linux/net/sched/
H A DKconfig53 <http://luxik.cdi.cz/~devik/qos/htb/> for complete manual and
/linux/net/netfilter/
H A DKconfig843 atm, cbq, dsmark, pfifo_fast, htb, prio