hw/net: e1000e: Don't zero out the VLAN tag in the legacy RX descriptor
commitcfe6d6841ff46b43ec38792422f690813f4ce3bf
authorChristina Wang <christina.wang@windriver.com>
Fri, 23 Jul 2021 07:55:12 +0000 (23 15:55 +0800)
committerJason Wang <jasowang@redhat.com>
Mon, 2 Aug 2021 04:19:18 +0000 (2 12:19 +0800)
tree39948d70550c5fcc4945a0a0a4e9e6da13731c96
parentd897056960fb379302cc9b656b899829f571eb6e
hw/net: e1000e: Don't zero out the VLAN tag in the legacy RX descriptor

In the legacy RX descriptor mode, VLAN tag was saved to d->special
by e1000e_build_rx_metadata() in e1000e_write_lgcy_rx_descr(), but
it was then zeroed out again at the end of the call, which is wrong.

Fixes: c89d416a2b0f ("e1000e: Don't zero out buffer address in rx descriptor")
Reported-by: Markus Carlstedt <markus.carlstedt@windriver.com>
Signed-off-by: Christina Wang <christina.wang@windriver.com>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/e1000e_core.c