Skip to content

Commit ae84bc1

Browse files
hkallweitdavem330
authored andcommitted
r8169: don't use bit LastFrag in tx descriptor after send
On RTL8125 this bit is always cleared after send. Therefore check for tx_skb->skb being set what is functionally equivalent. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7366016 commit ae84bc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5713,7 +5713,7 @@ static void rtl_tx(struct net_device *dev, struct rtl8169_private *tp,
57135713

57145714
rtl8169_unmap_tx_skb(tp_to_dev(tp), tx_skb,
57155715
tp->TxDescArray + entry);
5716-
if (status & LastFrag) {
5716+
if (tx_skb->skb) {
57175717
pkts_compl++;
57185718
bytes_compl += tx_skb->skb->len;
57195719
napi_consume_skb(tx_skb->skb, budget);

0 commit comments

Comments
 (0)