From: Jason Wang Date: Mon, 9 Nov 2015 06:45:17 +0000 (+0800) Subject: rtl8139: using CP_TX_OWN for ownership transferring during tx X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=91731d5f6d85ca33e7c151e8feac3d5cfafec4d4;p=qemu.git 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 --- 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;