diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2019-03-21 15:17:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-21 14:32:17 -0700 |
commit | b2552b8c40fa89210070c6e3487b35f10608d6c5 (patch) | |
tree | 3042c0c081a606768562826789af2ad4568a2358 /net/sched/sch_sfq.c | |
parent | 061775583e35eeaa3d12ea9641906668159f1b44 (diff) | |
download | linux-b2552b8c40fa89210070c6e3487b35f10608d6c5.tar.bz2 |
net: sched: flower: track filter deletion with flag
In order to prevent double deletion of filter by concurrent tasks when rtnl
lock is not used for synchronization, add 'deleted' filter field. Check
value of this field when modifying filters and return error if concurrent
deletion is detected.
Refactor __fl_delete() to accept pointer to 'last' boolean as argument,
and return error code as function return value instead. This is necessary
to signal concurrent filter delete to caller.
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_sfq.c')
0 files changed, 0 insertions, 0 deletions