|
@@ -383,7 +383,7 @@ static void free_tx_desc(struct adapter *adap, struct sge_txq *q,
|
|
|
if (d->skb) { /* an SGL is present */
|
|
|
if (unmap)
|
|
|
unmap_sgl(dev, d->skb, d->sgl, q);
|
|
|
- kfree_skb(d->skb);
|
|
|
+ dev_consume_skb_any(d->skb);
|
|
|
d->skb = NULL;
|
|
|
}
|
|
|
++d;
|
|
@@ -1009,7 +1009,7 @@ netdev_tx_t t4_eth_xmit(struct sk_buff *skb, struct net_device *dev)
|
|
|
* anything shorter than an Ethernet header.
|
|
|
*/
|
|
|
if (unlikely(skb->len < ETH_HLEN)) {
|
|
|
-out_free: dev_kfree_skb(skb);
|
|
|
+out_free: dev_kfree_skb_any(skb);
|
|
|
return NETDEV_TX_OK;
|
|
|
}
|
|
|
|
|
@@ -1104,7 +1104,7 @@ out_free: dev_kfree_skb(skb);
|
|
|
|
|
|
if (immediate) {
|
|
|
inline_tx_skb(skb, &q->q, cpl + 1);
|
|
|
- dev_kfree_skb(skb);
|
|
|
+ dev_consume_skb_any(skb);
|
|
|
} else {
|
|
|
int last_desc;
|
|
|
|