]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/net: e1000: Correct the initial value of VET register
authorChristina Wang <christina.wang@windriver.com>
Fri, 23 Jul 2021 07:55:10 +0000 (15:55 +0800)
committerJason Wang <jasowang@redhat.com>
Mon, 2 Aug 2021 04:19:18 +0000 (12:19 +0800)
commita1d7e475beb5c9e7a8e1213f29b0d20a208a9ade
tree18d51c5f2b49729fab94421fdd206343196b8c00
parent11744862f27b9ba6488a247d2fd6bb83d9bc3c8d
hw/net: e1000: Correct the initial value of VET register

The initial value of VLAN Ether Type (VET) register is 0x8100, as per
the manual and real hardware.

While Linux e1000 driver always writes VET register to 0x8100, it is
not always the case for everyone. Drivers relying on the reset value
of VET won't be able to transmit and receive VLAN frames in QEMU.

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/core/machine.c
hw/net/e1000.c