Avoid napi_consume_skb.
This commit is contained in:
parent
12df7a1f4a
commit
39ee16381d
|
|
@ -4607,7 +4607,8 @@ static void rtl_tx(struct net_device *dev, struct rtl8169_private *tp,
|
||||||
if (skb) {
|
if (skb) {
|
||||||
pkts_compl++;
|
pkts_compl++;
|
||||||
bytes_compl += skb->len;
|
bytes_compl += skb->len;
|
||||||
napi_consume_skb(skb, budget);
|
if (!get_ecdev(tp))
|
||||||
|
napi_consume_skb(skb, budget);
|
||||||
}
|
}
|
||||||
dirty_tx++;
|
dirty_tx++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4400,7 +4400,8 @@ static void rtl_tx(struct net_device *dev, struct rtl8169_private *tp,
|
||||||
if (skb) {
|
if (skb) {
|
||||||
pkts_compl++;
|
pkts_compl++;
|
||||||
bytes_compl += skb->len;
|
bytes_compl += skb->len;
|
||||||
napi_consume_skb(skb, budget);
|
if (!get_ecdev(tp))
|
||||||
|
napi_consume_skb(skb, budget);
|
||||||
}
|
}
|
||||||
dirty_tx++;
|
dirty_tx++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue