e1000e: Avoid hw_error if legacy mode used
commitb559ea95eaee8cbf72d910e8f98d2601c7f74f97
authorYuri Benditovich <yuri.benditovich@daynix.com>
Mon, 27 Jan 2020 16:03:12 +0000 (27 18:03 +0200)
committerJason Wang <jasowang@redhat.com>
Tue, 3 Mar 2020 10:04:47 +0000 (3 18:04 +0800)
tree9081654ee1e88d56b0e7c3a8ff6816ab719755eb
parentc2279bd0a19b35057f2e4c3b4df9a915717d1142
e1000e: Avoid hw_error if legacy mode used

https://bugzilla.redhat.com/show_bug.cgi?id=1787142
The emulation issues hw_error if PSRCTL register
is written, for example, with zero value.
Such configuration does not present any problem when
DTYP bits of RCTL register define legacy format of
transfer descriptors. Current commit discards check
for BSIZE0 and BSIZE1 when legacy mode used.

Acked-by: Dmitry Fleytman <dmitry.fleytman@gmail.com>
Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/e1000e_core.c