summaryrefslogtreecommitdiffstats
path: root/include/net/pkt_cls.h
diff options
context:
space:
mode:
authorNogah Frankel2018-02-28 10:45:05 +0100
committerDavid S. Miller2018-02-28 18:06:01 +0100
commit98ceb7b6d64552f995973be1a0ee9af0bf85fb3d (patch)
treee57f1c0b05c990e8646ae2cc4cefce28717f0ec0 /include/net/pkt_cls.h
parentmlxsw: spectrum: Update sch_prio stats to include sch_red related drops (diff)
downloadkernel-qcow2-linux-98ceb7b6d64552f995973be1a0ee9af0bf85fb3d.tar.gz
kernel-qcow2-linux-98ceb7b6d64552f995973be1a0ee9af0bf85fb3d.tar.xz
kernel-qcow2-linux-98ceb7b6d64552f995973be1a0ee9af0bf85fb3d.zip
mlxsw: spectrum: qdiscs: prio: Delete child qdiscs when removing bands
When the number the bands of sch_prio is decreased, child qdiscs on the deleted bands would get deleted as well. This change and deletions are being done under sch_tree_lock of the sch_prio qdisc. Part of the destruction of qdisc is unoffloading it, if it is offloaded. Un-offloading can't be done inside this lock. Move the offload command to be done before reducing the number of bands, so unoffloading of the qdiscs that are about to be deleted could be done outside of the lock. 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 'include/net/pkt_cls.h')
0 files changed, 0 insertions, 0 deletions