Home | History | Annotate | Download | only in bpf
      1 #ifndef __BPF_SHARED__
      2 #define __BPF_SHARED__
      3 
      4 enum {
      5 	BPF_MAP_ID_PROTO,
      6 	BPF_MAP_ID_QUEUE,
      7 	BPF_MAP_ID_DROPS,
      8 	__BPF_MAP_ID_MAX,
      9 #define BPF_MAP_ID_MAX	__BPF_MAP_ID_MAX
     10 };
     11 
     12 struct count_tuple {
     13 	long packets; /* type long for lock_xadd() */
     14 	long bytes;
     15 };
     16 
     17 struct count_queue {
     18 	long total;
     19 	long mismatch;
     20 };
     21 
     22 #endif /* __BPF_SHARED__ */
     23