drop_monitor: Consider all monitoring states before performing configuration
authorIdo Schimmel <idosch@mellanox.com>
Sat, 17 Aug 2019 13:28:13 +0000 (16:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Aug 2019 19:40:08 +0000 (12:40 -0700)
commit80cebed85c88e71fb435b9eb5948548f10f15cba
tree7d297b7142fed09af7748d006e2d916ad6470a88
parentedd3d0074c256848bbf5805350b39d40b1e2bf2b
drop_monitor: Consider all monitoring states before performing configuration

The drop monitor configuration (e.g., alert mode) is global, but user
will be able to enable monitoring of only software or hardware drops.

Therefore, ensure that monitoring of both software and hardware drops are
disabled before allowing drop monitor configuration to take place.

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