aboutsummaryrefslogtreecommitdiff
path: root/scripts/clean-header-guards.pl
diff options
context:
space:
mode:
authorChristina Wang <christina.wang@windriver.com>2021-07-23 15:55:11 +0800
committerJason Wang <jasowang@redhat.com>2021-08-02 12:19:18 +0800
commitd897056960fb379302cc9b656b899829f571eb6e (patch)
treef7ab7067739a9741b0484b15fa2bc19e31a66c97 /scripts/clean-header-guards.pl
parenta1d7e475beb5c9e7a8e1213f29b0d20a208a9ade (diff)
downloadqemu-d897056960fb379302cc9b656b899829f571eb6e.zip
qemu-d897056960fb379302cc9b656b899829f571eb6e.tar.gz
qemu-d897056960fb379302cc9b656b899829f571eb6e.tar.bz2
hw/net: e1000e: 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 e1000e 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. Unlike e1000 in QEMU, e1000e uses a field 'vet' in "struct E1000Core" to cache the value of VET register, but the cache only gets updated when VET register is written. To always get a consistent VET value no matter VET is written or remains its reset value, drop the 'vet' field and use 'core->mac[VET]' directly. 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>
Diffstat (limited to 'scripts/clean-header-guards.pl')
0 files changed, 0 insertions, 0 deletions