netcnt_common.h 320 B

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