The vxlan header may not be aligned to 4 bytes in
vxlan_build_skb (e.g., for MLD packets). This patch
avoids unaligned access traps from vxlan_build_skb
(in platforms like sparc) by making struct vxlanhdr __packed.
Signed-off-by: Sowmini Varadhan <redacted>
---
include/net/vxlan.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
On Tue, 20 Sep 2016 14:57:37 -0400, Sowmini Varadhan wrote:
The vxlan header may not be aligned to 4 bytes in
vxlan_build_skb (e.g., for MLD packets). This patch
avoids unaligned access traps from vxlan_build_skb
(in platforms like sparc) by making struct vxlanhdr __packed.
Signed-off-by: Sowmini Varadhan <redacted>
From: Hannes Frederic Sowa <hidden> Date: 2016-09-21 10:10:58
On 20.09.2016 20:57, Sowmini Varadhan wrote:
The vxlan header may not be aligned to 4 bytes in
vxlan_build_skb (e.g., for MLD packets). This patch
avoids unaligned access traps from vxlan_build_skb
(in platforms like sparc) by making struct vxlanhdr __packed.
Signed-off-by: Sowmini Varadhan <redacted>
Performance wise this should only affect code generation for archs where
it matters anyway.
Acked-by: Hannes Frederic Sowa <redacted>
Thanks,
Hannes
On Wed, Sep 21, 2016 at 12:10:55PM +0200, Hannes Frederic Sowa wrote:
On 20.09.2016 20:57, Sowmini Varadhan wrote:
quoted
The vxlan header may not be aligned to 4 bytes in
vxlan_build_skb (e.g., for MLD packets). This patch
avoids unaligned access traps from vxlan_build_skb
(in platforms like sparc) by making struct vxlanhdr __packed.
Signed-off-by: Sowmini Varadhan <redacted>
Performance wise this should only affect code generation for archs where
it matters anyway.
I think it's the opposite. Even on x86 compiler will use byte loads.
From: Hannes Frederic Sowa <hidden> Date: 2016-09-21 16:49:21
On 21.09.2016 18:14, Alexei Starovoitov wrote:
On Wed, Sep 21, 2016 at 12:10:55PM +0200, Hannes Frederic Sowa wrote:
quoted
On 20.09.2016 20:57, Sowmini Varadhan wrote:
quoted
The vxlan header may not be aligned to 4 bytes in
vxlan_build_skb (e.g., for MLD packets). This patch
avoids unaligned access traps from vxlan_build_skb
(in platforms like sparc) by making struct vxlanhdr __packed.
Signed-off-by: Sowmini Varadhan <redacted>
Performance wise this should only affect code generation for archs where
it matters anyway.
I think it's the opposite. Even on x86 compiler will use byte loads.