]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31600092cbf1b330c8cc805427d9e8551a16b518
tree69d0024af991cefa3620b31bdbb094fe42723b72
parentabd05787529b1d6b975e9cd152fd45ccf72e2d78
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