traffic-pacing-edt: Align map struct to cache-line size

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
This commit is contained in:
Jesper Dangaard Brouer
2020-11-15 15:56:31 +01:00
parent 692202e60e
commit 21ebc4d8cd

View File

@@ -26,7 +26,7 @@ struct edt_val {
__u64 t_last;
__u64 t_horizon_drop;
__u64 t_horizon_ecn;
};
} __aligned(64); /* Align struct to cache-size to avoid false-sharing */
/* The tc tool (iproute2) use another ELF map layout than libbpf (struct
* bpf_map_def), see struct bpf_elf_map from iproute2.