1 // SPDX-License-Identifier: GPL-2.0 2 #ifndef __NETCNT_COMMON_H 3 #define __NETCNT_COMMON_H 4 5 #include <linux/types.h> 6 7 #define MAX_PERCPU_PACKETS 32 8 9 struct percpu_net_cnt { 10 __u64 packets; 11 __u64 bytes; 12 13 __u64 prev_ts; 14 15 __u64 prev_packets; 16 __u64 prev_bytes; 17 }; 18 19 struct net_cnt { 20 __u64 packets; 21 __u64 bytes; 22 }; 23 24 #endif 25