hw/net/net_rx_pkt: Enforce alignment for eth_header
commit7edf2f1d54454c0c0e5596b1112318cb91ec1afe
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Tue, 23 May 2023 02:43:23 +0000 (23 11:43 +0900)
committerJason Wang <jasowang@redhat.com>
Tue, 23 May 2023 07:20:15 +0000 (23 15:20 +0800)
tree1f29e929676a9650f245b0f18ef1c068ef289289
parentaaa8a15c96a8a7341a3667dcc932f8c5f227d6af
hw/net/net_rx_pkt: Enforce alignment for eth_header

eth_strip_vlan and eth_strip_vlan_ex refers to ehdr_buf as struct
eth_header. Enforce alignment for the structure.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/net_rx_pkt.c