Daniel Borkmann | 6256f8c | 2015-04-01 17:57:44 +0200 | [diff] [blame] | 1 | #ifndef __BPF_SHARED__ |
| 2 | #define __BPF_SHARED__ |
| 3 | |
Daniel Borkmann | 6256f8c | 2015-04-01 17:57:44 +0200 | [diff] [blame] | 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 { |
Daniel Borkmann | 41d6e33 | 2015-12-02 00:25:36 +0100 | [diff] [blame] | 13 | long packets; /* type long for lock_xadd() */ |
Daniel Borkmann | 6256f8c | 2015-04-01 17:57:44 +0200 | [diff] [blame] | 14 | long bytes; |
| 15 | }; |
| 16 | |
| 17 | struct count_queue { |
| 18 | long total; |
| 19 | long mismatch; |
| 20 | }; |
| 21 | |
| 22 | #endif /* __BPF_SHARED__ */ |