Skip to content

Commit

Permalink
rtl8139: using CP_TX_OWN for ownership transferring during tx
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jasowang committed Apr 6, 2016
1 parent 044d655 commit 91731d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/net/rtl8139.c
Expand Up @@ -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;
Expand Down

0 comments on commit 91731d5

Please sign in to comment.