summaryrefslogtreecommitdiffstats
path: root/kernel/include/uapi/linux/if_packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/uapi/linux/if_packet.h')
-rw-r--r--kernel/include/uapi/linux/if_packet.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/include/uapi/linux/if_packet.h b/kernel/include/uapi/linux/if_packet.h
index 053bd102f..9e7edfd81 100644
--- a/kernel/include/uapi/linux/if_packet.h
+++ b/kernel/include/uapi/linux/if_packet.h
@@ -54,6 +54,8 @@ struct sockaddr_ll {
#define PACKET_FANOUT 18
#define PACKET_TX_HAS_OFF 19
#define PACKET_QDISC_BYPASS 20
+#define PACKET_ROLLOVER_STATS 21
+#define PACKET_FANOUT_DATA 22
#define PACKET_FANOUT_HASH 0
#define PACKET_FANOUT_LB 1
@@ -61,6 +63,8 @@ struct sockaddr_ll {
#define PACKET_FANOUT_ROLLOVER 3
#define PACKET_FANOUT_RND 4
#define PACKET_FANOUT_QM 5
+#define PACKET_FANOUT_CBPF 6
+#define PACKET_FANOUT_EBPF 7
#define PACKET_FANOUT_FLAG_ROLLOVER 0x1000
#define PACKET_FANOUT_FLAG_DEFRAG 0x8000
@@ -75,6 +79,12 @@ struct tpacket_stats_v3 {
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;