]> 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)
commitc0e791fc81b05b8b0584ceb427b26b05d8421bf3
tree69d0024af991cefa3620b31bdbb094fe42723b72
parent8089709052cbeba2a8b4d7e148e98ba682c2254e
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