hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/net/ethernet/apple/mace.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Network device driver for the MACE ethernet controller on
34 * Apple Powermacs. Assumes it's under a DBDMA controller.
....@@ -18,10 +19,10 @@
1819 #include <linux/spinlock.h>
1920 #include <linux/bitrev.h>
2021 #include <linux/slab.h>
22
+#include <linux/pgtable.h>
2123 #include <asm/prom.h>
2224 #include <asm/dbdma.h>
2325 #include <asm/io.h>
24
-#include <asm/pgtable.h>
2526 #include <asm/macio.h>
2627
2728 #include "mace.h"
....@@ -764,7 +765,7 @@
764765 dev->stats.tx_bytes += mp->tx_bufs[i]->len;
765766 ++dev->stats.tx_packets;
766767 }
767
- dev_kfree_skb_irq(mp->tx_bufs[i]);
768
+ dev_consume_skb_irq(mp->tx_bufs[i]);
768769 --mp->tx_active;
769770 if (++i >= N_TX_RING)
770771 i = 0;
....@@ -840,7 +841,7 @@
840841 if (mp->tx_bad_runt) {
841842 mp->tx_bad_runt = 0;
842843 } else if (i != mp->tx_fill) {
843
- dev_kfree_skb(mp->tx_bufs[i]);
844
+ dev_kfree_skb_irq(mp->tx_bufs[i]);
844845 if (++i >= N_TX_RING)
845846 i = 0;
846847 mp->tx_empty = i;