net/sched: act_police: don't use spinlock in the data path
authorDavide Caratti <dcaratti@redhat.com>
Thu, 13 Sep 2018 17:29:13 +0000 (19:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Sep 2018 22:30:22 +0000 (15:30 -0700)
commit2d550dbad83c88fc7cb594a1803e77457fe625f9
tree65206253194882b4ccb9a7b83aff2ebc4b1e883c
parent93be42f9173bbc133bd72915b658394308437d00
net/sched: act_police: don't use spinlock in the data path

use RCU instead of spinlocks, to protect concurrent read/write on
act_police configuration. This reduces the effects of contention in the
data path, in case multiple readers are present.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_police.c