浏览代码

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>
Jason Wang 9 年之前
父节点
当前提交
91731d5f6d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hw/net/rtl8139.c

+ 1 - 1
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;