net/sched: cls_api: conditional notification of events
authorPedro Tammela <pctammela@mojatatu.com>
Fri, 8 Dec 2023 19:28:47 +0000 (16:28 -0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Dec 2023 02:52:57 +0000 (18:52 -0800)
commit93775590b1ee98bf2976b1f4a1ed24e9ff76170f
treeb09cc8e5beb83e881ed077fe2ae68f505c0653eb
parente522755520ef63b121ddd5808197a370be212e9a
net/sched: cls_api: conditional notification of events

As of today tc-filter/chain events are unconditionally built and sent to
RTNLGRP_TC. As with the introduction of rtnl_notify_needed we can check
before-hand if they are really needed. This will help to alleviate
system pressure when filters are concurrently added without the rtnl
lock as in tc-flower.

Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Link: https://lore.kernel.org/r/20231208192847.714940-8-pctammela@mojatatu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/cls_api.c