# Re: \[PATCH net-next V2\] net/vxlan: Avoid unaligned access in vxlan\_build\_skb()

- From: Hannes Frederic Sowa \<hidden\>
- Date: 2016-09-21 10:10:58 
- List: netdev
- Page: https://ratatoskr.run/netdev/2016/09/11029892
- Thread: https://ratatoskr.run/netdev/2016/09/11029776/t.md

```text
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
```
