]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/sched: cls_api: conditional notification of events
authorPedro Tammela <pctammela@mojatatu.com>
Fri, 8 Dec 2023 19:28:47 +0000 (16:28 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:45:06 +0000 (10:45 +0200)
commit28f2cd143b5b2b35b83669d892b15871f2a57efe
treed67f9d8b9fa7e0717c00eacd944b3d16c3edfe48
parentaa258dbf4598faad9d3248ec9363dcedd30c413e
net/sched: cls_api: conditional notification of events

[ Upstream commit 93775590b1ee98bf2976b1f4a1ed24e9ff76170f ]

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>
Stable-dep-of: 369609fc6272 ("tc: Ensure we have enough buffer space when sending filter netlink notifications")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sched/cls_api.c