diff options
author | Christian Breunig <christian@breunig.cc> | 2023-02-15 19:05:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-15 19:05:47 +0100 |
commit | c8a6b4cf2efec079af558997c0600c54be45215c (patch) | |
tree | ff25541d9dad6ffd304b1de5919eb308d35f090f /src/xdp/common/xdp_stats_kern.h | |
parent | a48940a943d237b0b2e8fcf8f9066c416d175e8d (diff) | |
parent | 819eab8708365ac5398f44c25178470358330c36 (diff) | |
download | vyos-1x-c8a6b4cf2efec079af558997c0600c54be45215c.tar.gz vyos-1x-c8a6b4cf2efec079af558997c0600c54be45215c.zip |
Merge pull request #1817 from sarthurdev/bookworm
debian: T5003: Upgrade base system to Debian 12 "Bookworm"
Diffstat (limited to 'src/xdp/common/xdp_stats_kern.h')
-rw-r--r-- | src/xdp/common/xdp_stats_kern.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/xdp/common/xdp_stats_kern.h b/src/xdp/common/xdp_stats_kern.h index 4e08551a0..c061a149d 100644 --- a/src/xdp/common/xdp_stats_kern.h +++ b/src/xdp/common/xdp_stats_kern.h @@ -13,12 +13,12 @@ #endif /* Keeps stats per (enum) xdp_action */ -struct bpf_map_def SEC("maps") xdp_stats_map = { - .type = BPF_MAP_TYPE_PERCPU_ARRAY, - .key_size = sizeof(__u32), - .value_size = sizeof(struct datarec), - .max_entries = XDP_ACTION_MAX, -}; +struct { + __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); + __type(key, __u32); + __type(value, struct datarec); + __uint(max_entries, XDP_ACTION_MAX); +} xdp_stats_map SEC(".maps"); static __always_inline __u32 xdp_stats_record_action(struct xdp_md *ctx, __u32 action) |