packet: rollover statistics
authorWillem de Bruijn <willemb@google.com>
Tue, 12 May 2015 15:56:50 +0000 (11:56 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 May 2015 19:43:00 +0000 (15:43 -0400)
commita9b6391814d5d6b8668fca2dace86949b7244e2e
tree69d0024af991cefa3620b31bdbb094fe42723b72
parent3b3a5b0aab5b9ad345d4beb9a364a7dd02c23d40
packet: rollover statistics

Rollover indicates exceptional conditions. Export a counter to inform
socket owners of this state.

If no socket with sufficient room is found, rollover fails. Also count
these events.

Finally, also count when flows are rolled over early thanks to huge
flow detection, to validate its correctness.

Tested:
  Read counters in bench_rollover on all other tests in the patchset

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_packet.h
net/packet/af_packet.c
net/packet/internal.h