projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
packet: rollover statistics
[cascardo/linux.git]
/
include
/
uapi
/
linux
/
if_packet.h
diff --git
a/include/uapi/linux/if_packet.h
b/include/uapi/linux/if_packet.h
index
053bd10
..
d3d715f
100644
(file)
--- a/
include/uapi/linux/if_packet.h
+++ b/
include/uapi/linux/if_packet.h
@@
-54,6
+54,7
@@
struct sockaddr_ll {
#define PACKET_FANOUT 18
#define PACKET_TX_HAS_OFF 19
#define PACKET_QDISC_BYPASS 20
#define PACKET_FANOUT 18
#define PACKET_TX_HAS_OFF 19
#define PACKET_QDISC_BYPASS 20
+#define PACKET_ROLLOVER_STATS 21
#define PACKET_FANOUT_HASH 0
#define PACKET_FANOUT_LB 1
#define PACKET_FANOUT_HASH 0
#define PACKET_FANOUT_LB 1
@@
-75,6
+76,12
@@
struct tpacket_stats_v3 {
unsigned int tp_freeze_q_cnt;
};
unsigned int tp_freeze_q_cnt;
};
+struct tpacket_rollover_stats {
+ __aligned_u64 tp_all;
+ __aligned_u64 tp_huge;
+ __aligned_u64 tp_failed;
+};
+
union tpacket_stats_u {
struct tpacket_stats stats1;
struct tpacket_stats_v3 stats3;
union tpacket_stats_u {
struct tpacket_stats stats1;
struct tpacket_stats_v3 stats3;