]> xenbits.xensource.com Git - people/pauldu/qemu.git/commitdiff
rtl8139: using CP_TX_OWN for ownership transferring during tx
authorJason Wang <jasowang@redhat.com>
Mon, 9 Nov 2015 06:45:17 +0000 (14:45 +0800)
committerJason Wang <jasowang@redhat.com>
Wed, 6 Apr 2016 01:52:07 +0000 (09:52 +0800)
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>
hw/net/rtl8139.c

index fee97bf60789c57dc2a25ddcac26dd8324ae4efc..1e5ec149fa2c32be9f5004cbcee74d87a901cd43 100644 (file)
@@ -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;