forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/net/ethernet/i825xx/82596.c
....@@ -53,10 +53,10 @@
5353 #include <linux/init.h>
5454 #include <linux/bitops.h>
5555 #include <linux/gfp.h>
56
+#include <linux/pgtable.h>
5657
5758 #include <asm/io.h>
5859 #include <asm/dma.h>
59
-#include <asm/pgtable.h>
6060 #include <asm/cacheflush.h>
6161
6262 static char version[] __initdata =
....@@ -363,7 +363,7 @@
363363 static irqreturn_t i596_interrupt(int irq, void *dev_id);
364364 static int i596_close(struct net_device *dev);
365365 static void i596_add_cmd(struct net_device *dev, struct i596_cmd *cmd);
366
-static void i596_tx_timeout (struct net_device *dev);
366
+static void i596_tx_timeout (struct net_device *dev, unsigned int txqueue);
367367 static void print_eth(unsigned char *buf, char *str);
368368 static void set_multicast_list(struct net_device *dev);
369369
....@@ -1019,7 +1019,7 @@
10191019 return res;
10201020 }
10211021
1022
-static void i596_tx_timeout (struct net_device *dev)
1022
+static void i596_tx_timeout (struct net_device *dev, unsigned int txqueue)
10231023 {
10241024 struct i596_private *lp = dev->ml_priv;
10251025 int ioaddr = dev->base_addr;
....@@ -1310,7 +1310,7 @@
13101310 dev->stats.tx_aborted_errors++;
13111311 }
13121312
1313
- dev_kfree_skb_irq(skb);
1313
+ dev_consume_skb_irq(skb);
13141314
13151315 tx_cmd->cmd.command = 0; /* Mark free */
13161316 break;