rtl8139: using CP_TX_OWN for ownership transferring during tx
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.
Signed-off-by Jason Wang <[email protected]>
--- hw/net/rtl8139.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 ;
Signature · 1 line
2.5.0
Jason Wang
AppliedQuoted 13 lines · Jason Wang
Through
CP_TX_OWNandCP_RX_OWNpoints to the same bit, we'd better useCP_TX_OWNfor tx descriptor handling.Signed-off-by Jason Wang <[email protected]>--- hw/net/rtl8139.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/net/rtl8139.c +0
-0
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