summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVictor Nogueira <victor@mojatatu.com>2022-06-23 17:07:41 +0300
committerJakub Kicinski <kuba@kernel.org>2022-06-28 07:51:23 +0300
commit76b39b94382f9e0a639e1c70c3253de248cc4c83 (patch)
tree4aa5250f647f54598b6f26305805add2acbe635c /tools
parent8ee9d82cd0a45e7d050ade598c9f33032a0f2891 (diff)
downloadlinux-76b39b94382f9e0a639e1c70c3253de248cc4c83.tar.xz
net/sched: act_api: Notify user space if any actions were flushed before error
If during an action flush operation one of the actions is still being referenced, the flush operation is aborted and the kernel returns to user space with an error. However, if the kernel was able to flush, for example, 3 actions and failed on the fourth, the kernel will not notify user space that it deleted 3 actions before failing. This patch fixes that behaviour by notifying user space of how many actions were deleted before flush failed and by setting extack with a message describing what happened. Fixes: 55334a5db5cd ("net_sched: act: refuse to remove bound action outside") Signed-off-by: Victor Nogueira <victor@mojatatu.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions