drop_monitor: Use pre_doit / post_doit hooks
authorIdo Schimmel <idosch@mellanox.com>
Tue, 6 Aug 2019 13:19:56 +0000 (16:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Aug 2019 19:37:56 +0000 (12:37 -0700)
commitb19d955055480ac4e03f5afec0ca80f0de7b7013
treec1b6e0cc939800a2a5a317274d1dfb8097e82010
parent965100966efe85e636178166fbf006e9b74f78d4
drop_monitor: Use pre_doit / post_doit hooks

Each operation from user space should be protected by the global drop
monitor mutex. Use the pre_doit / post_doit hooks to take / release the
lock instead of doing it explicitly in each function.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/drop_monitor.c