]> git.proxmox.com Git - mirror_qemu.git/commit
e1000e: Introduce e1000_rx_desc_union
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 23 Feb 2023 10:20:00 +0000 (19:20 +0900)
committerJason Wang <jasowang@redhat.com>
Fri, 10 Mar 2023 07:35:38 +0000 (15:35 +0800)
commit235f2eee8298ba2d1fbb4315187dcad7c3773ae8
tree03f3c652f9fa97e35750b221ee4aadb2108f728d
parent8a35c648ac669e515a5dd71d46de09b2b1cc28c2
e1000e: Introduce e1000_rx_desc_union

Before this change, e1000e_write_packet_to_guest() allocated the
receive descriptor buffer as an array of uint8_t. This does not ensure
the buffer is sufficiently aligned.

Introduce e1000_rx_desc_union type, a union type of all receive
descriptor types to correct this.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/e1000_regs.h
hw/net/e1000e_core.c