]> git.baikalelectronics.ru Git - kernel.git/commit
drop_monitor: allow more events per second
authorEric Dumazet <edumazet@google.com>
Thu, 19 Apr 2012 07:16:21 +0000 (07:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2012 20:28:38 +0000 (16:28 -0400)
commite29d24586064c4590fdf96f44534c2e7e9092dba
tree6f31a927c4224e5366d97c621362020ccf7dd689
parentd582a18d1609d03a38814153f78bca320dd19fa7
drop_monitor: allow more events per second

It seems there is a logic error in trace_drop_common(), since we store
only 64 drops, even if they are from same location.

This fix is a one liner, but we probably need more work to avoid useless
atomic dec/inc

Now I can watch 1 Mpps drops through dropwatch...

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/drop_monitor.c