Skip to contentSkip to conversation

rtl8139: using CP_TX_OWN for ownership transferring during tx

PATCH Applied Jason Wang 1 participant 2 messages Apr 1, 2016 – Apr 5, 2016

lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 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.

---
 hw/net/rtl8139.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/net/rtl8139.c +1 -1
index fee97bf..1e5ec14 100644
@@ -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;
Signature · 1 line
2.5.0
author Applied
#1 lore raw
Quoted 13 lines · Jason Wang

Through CP_TX_OWN and CP_RX_OWN points to the same bit, we'd better use CP_TX_OWN for tx descriptor handling.

---
 hw/net/rtl8139.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/net/rtl8139.c +0 -0
index fee97bf..1e5ec14 100644

hw/net/rtl8139.c static int rtl8139_cplus_transmit_one(RTL8139State *s) · line 2052

Quoted 8 lines
hw/net/rtl8139.c +1 -1
@@ -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;

Applied to -net.

Thanks