summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2015-11-09 14:45:17 +0800
committerJason Wang <jasowang@redhat.com>2016-04-06 09:52:07 +0800
commit91731d5f6d85ca33e7c151e8feac3d5cfafec4d4 (patch)
treec88bd65bbd389042a3b53f9e2dec23240b51504e /hw
parent044d65525f6ac2093042ae18dbf8c1300b5c1c18 (diff)
downloadqemu-91731d5f6d85ca33e7c151e8feac3d5cfafec4d4.tar.gz
rtl8139: using CP_TX_OWN for ownership transferring during tx
Through CP_TX_OWN and CP_RX_OWN points to the same bit, we'd better use CP_TX_OWN for tx descriptor handling. Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/net/rtl8139.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c
index fee97bf607..1e5ec149fa 100644
--- a/hw/net/rtl8139.c
+++ b/hw/net/rtl8139.c
@@ -2046,7 +2046,7 @@ static int rtl8139_cplus_transmit_one(RTL8139State *s)
}
/* transfer ownership to target */
- txdw0 &= ~CP_RX_OWN;
+ txdw0 &= ~CP_TX_OWN;
/* reset error indicator bits */
txdw0 &= ~CP_TX_STATUS_UNF;