mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-05 19:02:41 +00:00

Improve example files further and add a more generic set of possible helpers for them that can be used. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org>
23 lines
341 B
C
23 lines
341 B
C
#ifndef __BPF_SHARED__
|
|
#define __BPF_SHARED__
|
|
|
|
enum {
|
|
BPF_MAP_ID_PROTO,
|
|
BPF_MAP_ID_QUEUE,
|
|
BPF_MAP_ID_DROPS,
|
|
__BPF_MAP_ID_MAX,
|
|
#define BPF_MAP_ID_MAX __BPF_MAP_ID_MAX
|
|
};
|
|
|
|
struct count_tuple {
|
|
long packets; /* type long for lock_xadd() */
|
|
long bytes;
|
|
};
|
|
|
|
struct count_queue {
|
|
long total;
|
|
long mismatch;
|
|
};
|
|
|
|
#endif /* __BPF_SHARED__ */
|