From cd98d7ddccbc9c6077efbcecef63d37cb0b5ad46 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Tue, 13 Feb 2018 00:04:05 +0100 Subject: [PATCH] ebpf: remove vlan_hdr alignement If we align the vlan_hdr then we increase its size and the parsing of packets with VLAN tag is broken. --- ebpf/xdp_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebpf/xdp_filter.c b/ebpf/xdp_filter.c index 3ee9dd0b11..c83a6fa6f4 100644 --- a/ebpf/xdp_filter.c +++ b/ebpf/xdp_filter.c @@ -45,7 +45,7 @@ struct vlan_hdr { __u16 h_vlan_TCI; __u16 h_vlan_encapsulated_proto; -} __attribute__((__aligned__(8))) ; +}; struct flowv4_keys { __u32 src;