Files
Linux/drivers
Ido Schimmel be43224fc0 netdevsim: Ensure policer drop counter always increases
In case the policer drop counter is retrieved when the jiffies value is
a multiple of 64, the counter will not be incremented.

This randomly breaks a selftest [1] the reads the counter twice and
checks that it was incremented:

```
TEST: Trap policer                                                  [FAIL]
	Policer drop counter was not incremented
```

Fix by always incrementing the counter by 1.

[1] tools/testing/selftests/drivers/net/netdevsim/devlink_trap.sh

Fixes: ad188458d0 ("netdevsim: Add devlink-trap policer support")
Signed-off-by: Ido Schimmel <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2020-05-22 16:05:42 -07:00
..
…
…
2020-04-10 11:32:22 +02:00
…
…
…
…
…
…
…
…
…
2020-04-04 18:07:59 -07:00
…
2020-04-16 13:52:31 -07:00
…
…
…
…
…
…
…
…
…
2020-04-17 06:05:29 -04:00
…
…
…
…
…
…
…
…
2020-04-20 10:19:22 -04:00
…
…
…