diff options
author | Nogah Frankel | 2018-02-28 10:44:58 +0100 |
---|---|---|
committer | David S. Miller | 2018-02-28 18:06:00 +0100 |
commit | eed4baeb040aa41323d0091c18d36cc5a895792d (patch) | |
tree | a2a090d7370cb555ef226eaed3a8ad04e32b8e04 /drivers/net/ethernet/mellanox/mlxsw/spectrum.h | |
parent | net: mvpp2: Add hardware offloading for VLAN filtering (diff) | |
download | kernel-qcow2-linux-eed4baeb040aa41323d0091c18d36cc5a895792d.tar.gz kernel-qcow2-linux-eed4baeb040aa41323d0091c18d36cc5a895792d.tar.xz kernel-qcow2-linux-eed4baeb040aa41323d0091c18d36cc5a895792d.zip |
mlxsw: spectrum: qdiscs: Support qdisc per tclass
Add the option to set a qdisc per tclass. Match the qdisc to the tclass by
parent ID. Supported currently for sch_red only.
It allows offloading sch_prio as root qdisc and sch_red as its child.
(However, doing so might corrupt the stats for both parent and child.)
Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Reviewed-by: Yuval Mintz <yuvalm@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h index 2673310f92da..cc9786ff3b05 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h @@ -247,6 +247,7 @@ struct mlxsw_sp_port { struct mlxsw_sp_port_sample *sample; struct list_head vlans_list; struct mlxsw_sp_qdisc *root_qdisc; + struct mlxsw_sp_qdisc *tclass_qdiscs; unsigned acl_rule_count; struct mlxsw_sp_acl_block *ing_acl_block; struct mlxsw_sp_acl_block *eg_acl_block; |