net: sched: flower: handle concurrent filter insertion in fl_change
authorVlad Buslov <vladbu@mellanox.com>
Thu, 21 Mar 2019 13:17:40 +0000 (15:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Mar 2019 21:32:17 +0000 (14:32 -0700)
commit9a2d93899897efb0702f97e71387f9d0ae94a9d5
tree093b466c2ba39194ac83be20e7214aab4566af52
parent259e60f96785ab9043bb6eea5b90b354053f98cc
net: sched: flower: handle concurrent filter insertion in fl_change

Check if user specified a handle and another filter with the same handle
was inserted concurrently. Return EAGAIN to retry filter processing (in
case it is an overwrite request).

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c