diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-08-31 15:50:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-01 04:14:07 -0400 |
commit | 61357325f377889a1daffa14962d705dc814dd0e (patch) | |
tree | 7b436f1097abbc5681de6d1e5901f62963b42220 /drivers/net | |
parent | d0cf9c0dadcdc89a755bcb301cfc9c796eb28ccf (diff) |
netdev: convert bulk of drivers to netdev_tx_t
In a couple of cases collapse some extra code like:
int retval = NETDEV_TX_OK;
...
return retval;
into
return NETDEV_TX_OK;
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
100 files changed, 249 insertions, 171 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c index 4a8995aaeca3..462d9f59c53a 100644 --- a/drivers/net/8139cp.c +++ b/drivers/net/8139cp.c | |||
@@ -736,7 +736,8 @@ static void cp_tx (struct cp_private *cp) | |||
736 | netif_wake_queue(cp->dev); | 736 | netif_wake_queue(cp->dev); |
737 | } | 737 | } |
738 | 738 | ||
739 | static int cp_start_xmit (struct sk_buff *skb, struct net_device *dev) | 739 | static netdev_tx_t cp_start_xmit (struct sk_buff *skb, |
740 | struct net_device *dev) | ||
740 | { | 741 | { |
741 | struct cp_private *cp = netdev_priv(dev); | 742 | struct cp_private *cp = netdev_priv(dev); |
742 | unsigned entry; | 743 | unsigned entry; |
diff --git a/drivers/net/8139too.c b/drivers/net/8139too.c index b39ec98345ea..4a3628755026 100644 --- a/drivers/net/8139too.c +++ b/drivers/net/8139too.c | |||
@@ -628,8 +628,8 @@ static void mdio_write (struct net_device *dev, int phy_id, int location, | |||
628 | static void rtl8139_start_thread(struct rtl8139_private *tp); | 628 | static void rtl8139_start_thread(struct rtl8139_private *tp); |
629 | static void rtl8139_tx_timeout (struct net_device *dev); | 629 | static void rtl8139_tx_timeout (struct net_device *dev); |
630 | static void rtl8139_init_ring (struct net_device *dev); | 630 | static void rtl8139_init_ring (struct net_device *dev); |
631 | static int rtl8139_start_xmit (struct sk_buff *skb, | 631 | static netdev_tx_t rtl8139_start_xmit (struct sk_buff *skb, |
632 | struct net_device *dev); | 632 | struct net_device *dev); |
633 | #ifdef CONFIG_NET_POLL_CONTROLLER | 633 | #ifdef CONFIG_NET_POLL_CONTROLLER |
634 | static void rtl8139_poll_controller(struct net_device *dev); | 634 | static void rtl8139_poll_controller(struct net_device *dev); |
635 | #endif | 635 | #endif |
@@ -1687,7 +1687,8 @@ static void rtl8139_tx_timeout (struct net_device *dev) | |||
1687 | } | 1687 | } |
1688 | } | 1688 | } |
1689 | 1689 | ||
1690 | static int rtl8139_start_xmit (struct sk_buff *skb, struct net_device *dev) | 1690 | static netdev_tx_t rtl8139_start_xmit (struct sk_buff *skb, |
1691 | struct net_device *dev) | ||
1691 | { | 1692 | { |
1692 | struct rtl8139_private *tp = netdev_priv(dev); | 1693 | struct rtl8139_private *tp = netdev_priv(dev); |
1693 | void __iomem *ioaddr = tp->mmio_addr; | 1694 | void __iomem *ioaddr = tp->mmio_addr; |
diff --git a/drivers/net/82596.c b/drivers/net/82596.c index 996cc9102215..ea6b139b812c 100644 --- a/drivers/net/82596.c +++ b/drivers/net/82596.c | |||
@@ -356,7 +356,7 @@ static char init_setup[] = | |||
356 | 0x7f /* *multi IA */ }; | 356 | 0x7f /* *multi IA */ }; |
357 | 357 | ||
358 | static int i596_open(struct net_device *dev); | 358 | static int i596_open(struct net_device *dev); |
359 | static int i596_start_xmit(struct sk_buff *skb, struct net_device *dev); | 359 | static netdev_tx_t i596_start_xmit(struct sk_buff *skb, struct net_device *dev); |
360 | static irqreturn_t i596_interrupt(int irq, void *dev_id); | 360 | static irqreturn_t i596_interrupt(int irq, void *dev_id); |
361 | static int i596_close(struct net_device *dev); | 361 | static int i596_close(struct net_device *dev); |
362 | static void i596_add_cmd(struct net_device *dev, struct i596_cmd *cmd); | 362 | static void i596_add_cmd(struct net_device *dev, struct i596_cmd *cmd); |
@@ -1054,8 +1054,7 @@ static void i596_tx_timeout (struct net_device *dev) | |||
1054 | netif_wake_queue (dev); | 1054 | netif_wake_queue (dev); |
1055 | } | 1055 | } |
1056 | 1056 | ||
1057 | 1057 | static netdev_tx_t i596_start_xmit(struct sk_buff *skb, struct net_device *dev) | |
1058 | static int i596_start_xmit(struct sk_buff *skb, struct net_device *dev) | ||
1059 | { | 1058 | { |
1060 | struct i596_private *lp = dev->ml_priv; | 1059 | struct i596_private *lp = dev->ml_priv; |
1061 | struct tx_cmd *tx_cmd; | 1060 | struct tx_cmd *tx_cmd; |
diff --git a/drivers/net/8390.c b/drivers/net/8390.c index 21153dea8ebe..7c7518be1756 100644 --- a/drivers/net/8390.c +++ b/drivers/net/8390.c | |||
@@ -17,7 +17,7 @@ int ei_close(struct net_device *dev) | |||
17 | } | 17 | } |
18 | EXPORT_SYMBOL(ei_close); | 18 | EXPORT_SYMBOL(ei_close); |
19 | 19 | ||
20 | int ei_start_xmit(struct sk_buff *skb, struct net_device *dev) | 20 | netdev_tx_t ei_start_xmit(struct sk_buff *skb, struct net_device *dev) |
21 | { | 21 | { |
22 | return __ei_start_xmit(skb, dev); | 22 | return __ei_start_xmit(skb, dev); |
23 | } | 23 | } |
diff --git a/drivers/net/8390.h b/drivers/net/8390.h index 3c61d6d2748a..3d9e8fb4fbee 100644 --- a/drivers/net/8390.h +++ b/drivers/net/8390.h | |||
@@ -40,7 +40,7 @@ extern int ei_open(struct net_device *dev); | |||
40 | extern int ei_close(struct net_device *dev); | 40 | extern int ei_close(struct net_device *dev); |
41 | extern irqreturn_t ei_interrupt(int irq, void *dev_id); | 41 | extern irqreturn_t ei_interrupt(int irq, void *dev_id); |
42 | extern void ei_tx_timeout(struct net_device *dev); | 42 | extern void ei_tx_timeout(struct net_device *dev); |
43 | extern int ei_start_xmit(struct sk_buff *skb, struct net_device *dev); | 43 | extern netdev_tx_t ei_start_xmit(struct sk_buff *skb, struct net_device *dev); |
44 | extern void ei_set_multicast_list(struct net_device *dev); | 44 | extern void ei_set_multicast_list(struct net_device *dev); |
45 | extern struct net_device_stats *ei_get_stats(struct net_device *dev); | 45 | extern struct net_device_stats *ei_get_stats(struct net_device *dev); |
46 | 46 | ||
@@ -58,7 +58,7 @@ extern int eip_open(struct net_device *dev); | |||
58 | extern int eip_close(struct net_device *dev); | 58 | extern int eip_close(struct net_device *dev); |
59 | extern irqreturn_t eip_interrupt(int irq, void *dev_id); | 59 | extern irqreturn_t eip_interrupt(int irq, void *dev_id); |
60 | extern void eip_tx_timeout(struct net_device *dev); | 60 | extern void eip_tx_timeout(struct net_device *dev); |
61 | extern int eip_start_xmit(struct sk_buff *skb, struct net_device *dev); | 61 | extern netdev_tx_t eip_start_xmit(struct sk_buff *skb, struct net_device *dev); |
62 | extern void eip_set_multicast_list(struct net_device *dev); | 62 | extern void eip_set_multicast_list(struct net_device *dev); |
63 | extern struct net_device_stats *eip_get_stats(struct net_device *dev); | 63 | extern struct net_device_stats *eip_get_stats(struct net_device *dev); |
64 | 64 | ||
diff --git a/drivers/net/8390p.c b/drivers/net/8390p.c index d225c291fd93..a2a64ea0b691 100644 --- a/drivers/net/8390p.c +++ b/drivers/net/8390p.c | |||
@@ -22,7 +22,7 @@ int eip_close(struct net_device *dev) | |||
22 | } | 22 | } |
23 | EXPORT_SYMBOL(eip_close); | 23 | EXPORT_SYMBOL(eip_close); |
24 | 24 | ||
25 | int eip_start_xmit(struct sk_buff *skb, struct net_device *dev) | 25 | netdev_tx_t eip_start_xmit(struct sk_buff *skb, struct net_device *dev) |
26 | { | 26 | { |
27 | return __ei_start_xmit(skb, dev); | 27 | return __ei_start_xmit(skb, dev); |
28 | } | 28 | } |
diff --git a/drivers/net/a2065.c b/drivers/net/a2065.c index 174a81187a95..b7ec0368d7e8 100644 --- a/drivers/net/a2065.c +++ b/drivers/net/a2065.c | |||
@@ -547,7 +547,8 @@ static void lance_tx_timeout(struct net_device *dev) | |||
547 | netif_wake_queue(dev); | 547 | netif_wake_queue(dev); |
548 | } | 548 | } |
549 | 549 | ||
550 | static int lance_start_xmit (struct sk_buff *skb, struct net_device *dev) | 550 | static netdev_tx_t lance_start_xmit (struct sk_buff *skb, |
551 | struct net_device *dev) | ||
551 | { | 552 | { |
552 | struct lance_private *lp = netdev_priv(dev); | 553 | struct lance_private *lp = netdev_priv(dev); |
553 | volatile struct lance_regs *ll = lp->ll; | 554 | volatile struct lance_regs *ll = lp->ll; |
diff --git a/drivers/net/acenic.c b/drivers/net/acenic.c index 08419ee10290..5f0b05c2d71f 100644 --- a/drivers/net/acenic.c +++ b/drivers/net/acenic.c | |||
@@ -2464,7 +2464,8 @@ ace_load_tx_bd(struct ace_private *ap, struct tx_desc *desc, u64 addr, | |||
2464 | } | 2464 | } |
2465 | 2465 | ||
2466 | 2466 | ||
2467 | static int ace_start_xmit(struct sk_buff *skb, struct net_device *dev) | 2467 | static netdev_tx_t ace_start_xmit(struct sk_buff *skb, |
2468 | struct net_device *dev) | ||
2468 | { | 2469 | { |
2469 | struct ace_private *ap = netdev_priv(dev); | 2470 | struct ace_private *ap = netdev_priv(dev); |
2470 | struct ace_regs __iomem *regs = ap->regs; | 2471 | struct ace_regs __iomem *regs = ap->regs; |
diff --git a/drivers/net/acenic.h b/drivers/net/acenic.h index c987c9b5a137..17079b927ffa 100644 --- a/drivers/net/acenic.h +++ b/drivers/net/acenic.h | |||
@@ -775,7 +775,8 @@ static void ace_load_jumbo_rx_ring(struct ace_private *ap, int nr_bufs); | |||
775 | static irqreturn_t ace_interrupt(int irq, void *dev_id); | 775 | static irqreturn_t ace_interrupt(int irq, void *dev_id); |
776 | static int ace_load_firmware(struct net_device *dev); | 776 | static int ace_load_firmware(struct net_device *dev); |
777 | static int ace_open(struct net_device *dev); | 777 | static int ace_open(struct net_device *dev); |
778 | static int ace_start_xmit(struct sk_buff *skb, struct net_device *dev); | 778 | static netdev_tx_t ace_start_xmit(struct sk_buff *skb, |
779 | struct net_device *dev); | ||
779 | static int ace_close(struct net_device *dev); | 780 | static int ace_close(struct net_device *dev); |
780 | static void ace_tasklet(unsigned long dev); | 781 | static void ace_tasklet(unsigned long dev); |
781 | static void ace_dump_trace(struct ace_private *ap); | 782 | static void ace_dump_trace(struct ace_private *ap); |
diff --git a/drivers/net/amd8111e.c b/drivers/net/amd8111e.c index 61ac671f97bf..98b5f462c092 100644 --- a/drivers/net/amd8111e.c +++ b/drivers/net/amd8111e.c | |||
@@ -1300,7 +1300,8 @@ static int amd8111e_tx_queue_avail(struct amd8111e_priv* lp ) | |||
1300 | This function will queue the transmit packets to the descriptors and will trigger the send operation. It also initializes the transmit descriptors with buffer physical address, byte count, ownership to hardware etc. | 1300 | This function will queue the transmit packets to the descriptors and will trigger the send operation. It also initializes the transmit descriptors with buffer physical address, byte count, ownership to hardware etc. |
1301 | */ | 1301 | */ |
1302 | 1302 | ||
1303 | static int amd8111e_start_xmit(struct sk_buff *skb, struct net_device * dev) | 1303 | static netdev_tx_t amd8111e_start_xmit(struct sk_buff *skb, |
1304 | struct net_device * dev) | ||
1304 | { | 1305 | { |
1305 | struct amd8111e_priv *lp = netdev_priv(dev); | 1306 | struct amd8111e_priv *lp = netdev_priv(dev); |
1306 | int tx_index; | 1307 | int tx_index; |
diff --git a/drivers/net/arcnet/arcnet.c b/drivers/net/arcnet/arcnet.c index 7d227cdab9f8..75a572560909 100644 --- a/drivers/net/arcnet/arcnet.c +++ b/drivers/net/arcnet/arcnet.c | |||
@@ -591,7 +591,8 @@ static int arcnet_rebuild_header(struct sk_buff *skb) | |||
591 | 591 | ||
592 | 592 | ||
593 | /* Called by the kernel in order to transmit a packet. */ | 593 | /* Called by the kernel in order to transmit a packet. */ |
594 | int arcnet_send_packet(struct sk_buff *skb, struct net_device *dev) | 594 | netdev_tx_t arcnet_send_packet(struct sk_buff *skb, |
595 | struct net_device *dev) | ||
595 | { | 596 | { |
596 | struct arcnet_local *lp = netdev_priv(dev); | 597 | struct arcnet_local *lp = netdev_priv(dev); |
597 | struct archdr *pkt; | 598 | struct archdr *pkt; |
diff --git a/drivers/net/ariadne.c b/drivers/net/ariadne.c index 47d976cc3d7d..c35af3e106b1 100644 --- a/drivers/net/ariadne.c +++ b/drivers/net/ariadne.c | |||
@@ -115,7 +115,8 @@ struct lancedata { | |||
115 | 115 | ||
116 | static int ariadne_open(struct net_device *dev); | 116 | static int ariadne_open(struct net_device *dev); |
117 | static void ariadne_init_ring(struct net_device *dev); | 117 | static void ariadne_init_ring(struct net_device *dev); |
118 | static int ariadne_start_xmit(struct sk_buff *skb, struct net_device *dev); | 118 | static netdev_tx_t ariadne_start_xmit(struct sk_buff *skb, |
119 | struct net_device *dev); | ||
119 | static void ariadne_tx_timeout(struct net_device *dev); | 120 | static void ariadne_tx_timeout(struct net_device *dev); |
120 | static int ariadne_rx(struct net_device *dev); | 121 | static int ariadne_rx(struct net_device *dev); |
121 | static void ariadne_reset(struct net_device *dev); | 122 | static void ariadne_reset(struct net_device *dev); |
@@ -589,7 +590,8 @@ static void ariadne_tx_timeout(struct net_device *dev) | |||
589 | } | 590 | } |
590 | 591 | ||
591 | 592 | ||
592 | static int ariadne_start_xmit(struct sk_buff *skb, struct net_device *dev) | 593 | static netdev_tx_t ariadne_start_xmit(struct sk_buff *skb, |
594 | struct net_device *dev) | ||
593 | { | 595 | { |
594 | struct ariadne_private *priv = netdev_priv(dev); | 596 | struct ariadne_private *priv = netdev_priv(dev); |
595 | volatile struct Am79C960 *lance = (struct Am79C960*)dev->base_addr; | 597 | volatile struct Am79C960 *lance = (struct Am79C960*)dev->base_addr; |
diff --git a/drivers/net/at1700.c b/drivers/net/at1700.c index 5349c58d1fae..544d5af6950e 100644 --- a/drivers/net/at1700.c +++ b/drivers/net/at1700.c | |||
@@ -159,7 +159,8 @@ struct net_local { | |||
159 | static int at1700_probe1(struct net_device *dev, int ioaddr); | 159 | static int at1700_probe1(struct net_device *dev, int ioaddr); |
160 | static int read_eeprom(long ioaddr, int location); | 160 | static int read_eeprom(long ioaddr, int location); |
161 | static int net_open(struct net_device *dev); | 161 | static int net_open(struct net_device *dev); |
162 | static int net_send_packet(struct sk_buff *skb, struct net_device *dev); | 162 | static netdev_tx_t net_send_packet(struct sk_buff *skb, |
163 | struct net_device *dev); | ||
163 | static irqreturn_t net_interrupt(int irq, void *dev_id); | 164 | static irqreturn_t net_interrupt(int irq, void *dev_id); |
164 | static void net_rx(struct net_device *dev); | 165 | static void net_rx(struct net_device *dev); |
165 | static int net_close(struct net_device *dev); | 166 | static int net_close(struct net_device *dev); |
@@ -595,7 +596,8 @@ static void net_tx_timeout (struct net_device *dev) | |||
595 | } | 596 | } |
596 | 597 | ||
597 | 598 | ||
598 | static int net_send_packet (struct sk_buff *skb, struct net_device *dev) | 599 | static netdev_tx_t net_send_packet (struct sk_buff *skb, |
600 | struct net_device *dev) | ||
599 | { | 601 | { |
600 | struct net_local *lp = netdev_priv(dev); | 602 | struct net_local *lp = netdev_priv(dev); |
601 | int ioaddr = dev->base_addr; | 603 | int ioaddr = dev->base_addr; |
diff --git a/drivers/net/atl1c/atl1c_main.c b/drivers/net/atl1c/atl1c_main.c index 1d601ce7d5b2..bf7cc83e9836 100644 --- a/drivers/net/atl1c/atl1c_main.c +++ b/drivers/net/atl1c/atl1c_main.c | |||
@@ -2055,7 +2055,8 @@ static void atl1c_tx_queue(struct atl1c_adapter *adapter, struct sk_buff *skb, | |||
2055 | AT_WRITE_REG(&adapter->hw, REG_MB_PRIO_PROD_IDX, prod_data); | 2055 | AT_WRITE_REG(&adapter->hw, REG_MB_PRIO_PROD_IDX, prod_data); |
2056 | } | 2056 | } |
2057 | 2057 | ||
2058 | static int atl1c_xmit_frame(struct sk_buff *skb, struct net_device *netdev) | 2058 | static netdev_tx_t atl1c_xmit_frame(struct sk_buff *skb, |
2059 | struct net_device *netdev) | ||
2059 | { | 2060 | { |
2060 | struct atl1c_adapter *adapter = netdev_priv(netdev); | 2061 | struct atl1c_adapter *adapter = netdev_priv(netdev); |
2061 | unsigned long flags; | 2062 | unsigned long flags; |
diff --git a/drivers/net/atl1e/atl1e_main.c b/drivers/net/atl1e/atl1e_main.c index 4570749e3d3b..bca127e65f95 100644 --- a/drivers/net/atl1e/atl1e_main.c +++ b/drivers/net/atl1e/atl1e_main.c | |||
@@ -1839,7 +1839,8 @@ static void atl1e_tx_queue(struct atl1e_adapter *adapter, u16 count, | |||
1839 | AT_WRITE_REG(&adapter->hw, REG_MB_TPD_PROD_IDX, tx_ring->next_to_use); | 1839 | AT_WRITE_REG(&adapter->hw, REG_MB_TPD_PROD_IDX, tx_ring->next_to_use); |
1840 | } | 1840 | } |
1841 | 1841 | ||
1842 | static int atl1e_xmit_frame(struct sk_buff *skb, struct net_device *netdev) | 1842 | static netdev_tx_t atl1e_xmit_frame(struct sk_buff *skb, |
1843 | struct net_device *netdev) | ||
1843 | { | 1844 | { |
1844 | struct atl1e_adapter *adapter = netdev_priv(netdev); | 1845 | struct atl1e_adapter *adapter = netdev_priv(netdev); |
1845 | unsigned long flags; | 1846 | unsigned long flags; |
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c index 8bca12f71390..00569dc1313c 100644 --- a/drivers/net/atlx/atl1.c +++ b/drivers/net/atlx/atl1.c | |||
@@ -2349,7 +2349,8 @@ static void atl1_tx_queue(struct atl1_adapter *adapter, u16 count, | |||
2349 | atomic_set(&tpd_ring->next_to_use, next_to_use); | 2349 | atomic_set(&tpd_ring->next_to_use, next_to_use); |
2350 | } | 2350 | } |
2351 | 2351 | ||
2352 | static int atl1_xmit_frame(struct sk_buff *skb, struct net_device *netdev) | 2352 | static netdev_tx_t atl1_xmit_frame(struct sk_buff *skb, |
2353 | struct net_device *netdev) | ||
2353 | { | 2354 | { |
2354 | struct atl1_adapter *adapter = netdev_priv(netdev); | 2355 | struct atl1_adapter *adapter = netdev_priv(netdev); |
2355 | struct atl1_tpd_ring *tpd_ring = &adapter->tpd_ring; | 2356 | struct atl1_tpd_ring *tpd_ring = &adapter->tpd_ring; |
diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c index 204db961029e..d0bcb572d51e 100644 --- a/drivers/net/atlx/atl2.c +++ b/drivers/net/atlx/atl2.c | |||
@@ -821,7 +821,8 @@ static inline int TxdFreeBytes(struct atl2_adapter *adapter) | |||
821 | (int) (txd_read_ptr - adapter->txd_write_ptr - 1); | 821 | (int) (txd_read_ptr - adapter->txd_write_ptr - 1); |
822 | } | 822 | } |
823 | 823 | ||
824 | static int atl2_xmit_frame(struct sk_buff *skb, struct net_device *netdev) | 824 | static netdev_tx_t atl2_xmit_frame(struct sk_buff *skb, |
825 | struct net_device *netdev) | ||
825 | { | 826 | { |
826 | struct atl2_adapter *adapter = netdev_priv(netdev); | 827 | struct atl2_adapter *adapter = netdev_priv(netdev); |
827 | struct tx_pkt_header *txph; | 828 | struct tx_pkt_header *txph; |
diff --git a/drivers/net/atp.c b/drivers/net/atp.c index 4beacc9c909f..9043294fe617 100644 --- a/drivers/net/atp.c +++ b/drivers/net/atp.c | |||
@@ -199,7 +199,8 @@ static int net_open(struct net_device *dev); | |||
199 | static void hardware_init(struct net_device *dev); | 199 | static void hardware_init(struct net_device *dev); |
200 | static void write_packet(long ioaddr, int length, unsigned char *packet, int pad, int mode); | 200 | static void write_packet(long ioaddr, int length, unsigned char *packet, int pad, int mode); |
201 | static void trigger_send(long ioaddr, int length); | 201 | static void trigger_send(long ioaddr, int length); |
202 | static int atp_send_packet(struct sk_buff *skb, struct net_device *dev); | 202 | static netdev_tx_t atp_send_packet(struct sk_buff *skb, |
203 | struct net_device *dev); | ||
203 | static irqreturn_t atp_interrupt(int irq, void *dev_id); | 204 | static irqreturn_t atp_interrupt(int irq, void *dev_id); |
204 | static void net_rx(struct net_device *dev); | 205 | static void net_rx(struct net_device *dev); |
205 | static void read_block(long ioaddr, int length, unsigned char *buffer, int data_mode); | 206 | static void read_block(long ioaddr, int length, unsigned char *buffer, int data_mode); |
@@ -552,7 +553,8 @@ static void tx_timeout(struct net_device *dev) | |||
552 | dev->stats.tx_errors++; | 553 | dev->stats.tx_errors++; |
553 | } | 554 | } |
554 | 555 | ||
555 | static int atp_send_packet(struct sk_buff *skb, struct net_device *dev) | 556 | static netdev_tx_t atp_send_packet(struct sk_buff *skb, |
557 | struct net_device *dev) | ||
556 | { | 558 | { |
557 | struct net_local *lp = netdev_priv(dev); | 559 | struct net_local *lp = netdev_priv(dev); |
558 | long ioaddr = dev->base_addr; | 560 | long ioaddr = dev->base_addr; |
diff --git a/drivers/net/au1000_eth.c b/drivers/net/au1000_eth.c index 2aab1ebc6cd1..407fd45f56a1 100644 --- a/drivers/net/au1000_eth.c +++ b/drivers/net/au1000_eth.c | |||
@@ -937,7 +937,7 @@ static int au1000_close(struct net_device *dev) | |||
937 | /* | 937 | /* |
938 | * Au1000 transmit routine. | 938 | * Au1000 transmit routine. |
939 | */ | 939 | */ |
940 | static int au1000_tx(struct sk_buff *skb, struct net_device *dev) | 940 | static netdev_tx_t au1000_tx(struct sk_buff *skb, struct net_device *dev) |
941 | { | 941 | { |
942 | struct au1000_private *aup = netdev_priv(dev); | 942 | struct au1000_private *aup = netdev_priv(dev); |
943 | struct net_device_stats *ps = &dev->stats; | 943 | struct net_device_stats *ps = &dev->stats; |
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index 07c92f34d8d8..bee510177a3f 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
@@ -946,7 +946,7 @@ static void b44_tx_timeout(struct net_device *dev) | |||
946 | netif_wake_queue(dev); | 946 | netif_wake_queue(dev); |
947 | } | 947 | } |
948 | 948 | ||
949 | static int b44_start_xmit(struct sk_buff *skb, struct net_device *dev) | 949 | static netdev_tx_t b44_start_xmit(struct sk_buff *skb, struct net_device *dev) |
950 | { | 950 | { |
951 | struct b44 *bp = netdev_priv(dev); | 951 | struct b44 *bp = netdev_priv(dev); |
952 | int rc = NETDEV_TX_OK; | 952 | int rc = NETDEV_TX_OK; |
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 7b9efee890f8..e19fe1dcd144 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c | |||
@@ -427,7 +427,8 @@ static int make_tx_wrbs(struct be_adapter *adapter, | |||
427 | return copied; | 427 | return copied; |
428 | } | 428 | } |
429 | 429 | ||
430 | static int be_xmit(struct sk_buff *skb, struct net_device *netdev) | 430 | static netdev_tx_t be_xmit(struct sk_buff *skb, |
431 | struct net_device *netdev) | ||
431 | { | 432 | { |
432 | struct be_adapter *adapter = netdev_priv(netdev); | 433 | struct be_adapter *adapter = netdev_priv(netdev); |
433 | struct be_tx_obj *tx_obj = &adapter->tx_obj; | 434 | struct be_tx_obj *tx_obj = &adapter->tx_obj; |
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index c4e85f694272..fcaf3bc8277e 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -6283,7 +6283,7 @@ bnx2_vlan_rx_register(struct net_device *dev, struct vlan_group *vlgrp) | |||
6283 | * bnx2_tx_int() runs without netif_tx_lock unless it needs to call | 6283 | * bnx2_tx_int() runs without netif_tx_lock unless it needs to call |
6284 | * netif_wake_queue(). | 6284 | * netif_wake_queue(). |
6285 | */ | 6285 | */ |
6286 | static int | 6286 | static netdev_tx_t |
6287 | bnx2_start_xmit(struct sk_buff *skb, struct net_device *dev) | 6287 | bnx2_start_xmit(struct sk_buff *skb, struct net_device *dev) |
6288 | { | 6288 | { |
6289 | struct bnx2 *bp = netdev_priv(dev); | 6289 | struct bnx2 *bp = netdev_priv(dev); |
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index b318d16a4d91..e2e50267cc64 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -10936,7 +10936,7 @@ exit_lbl: | |||
10936 | * bnx2x_tx_int() runs without netif_tx_lock unless it needs to call | 10936 | * bnx2x_tx_int() runs without netif_tx_lock unless it needs to call |
10937 | * netif_wake_queue() | 10937 | * netif_wake_queue() |
10938 | */ | 10938 | */ |
10939 | static int bnx2x_start_xmit(struct sk_buff *skb, struct net_device *dev) | 10939 | static netdev_tx_t bnx2x_start_xmit(struct sk_buff *skb, struct net_device *dev) |
10940 | { | 10940 | { |
10941 | struct bnx2x *bp = netdev_priv(dev); | 10941 | struct bnx2x *bp = netdev_priv(dev); |
10942 | struct bnx2x_fastpath *fp, *fp_stat; | 10942 | struct bnx2x_fastpath *fp, *fp_stat; |
diff --git a/drivers/net/can/sja1000/sja1000.c b/drivers/net/can/sja1000/sja1000.c index b3004de1e5e4..9ce3ddac4e9b 100644 --- a/drivers/net/can/sja1000/sja1000.c +++ b/drivers/net/can/sja1000/sja1000.c | |||
@@ -238,7 +238,8 @@ static void chipset_init(struct net_device *dev) | |||
238 | * xx xx xx xx ff ll 00 11 22 33 44 55 66 77 | 238 | * xx xx xx xx ff ll 00 11 22 33 44 55 66 77 |
239 | * [ can-id ] [flags] [len] [can data (up to 8 bytes] | 239 | * [ can-id ] [flags] [len] [can data (up to 8 bytes] |
240 | */ | 240 | */ |
241 | static int sja1000_start_xmit(struct sk_buff *skb, struct net_device *dev) | 241 | static netdev_tx_t sja1000_start_xmit(struct sk_buff *skb, |
242 | struct net_device *dev) | ||
242 | { | 243 | { |
243 | struct sja1000_priv *priv = netdev_priv(dev); | 244 | struct sja1000_priv *priv = netdev_priv(dev); |
244 | struct net_device_stats *stats = &dev->stats; | 245 | struct net_device_stats *stats = &dev->stats; |
diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c index 299a33b914f8..7517dc1da650 100644 --- a/drivers/net/cassini.c +++ b/drivers/net/cassini.c | |||
@@ -2918,7 +2918,7 @@ static inline int cas_xmit_tx_ringN(struct cas *cp, int ring, | |||
2918 | return 0; | 2918 | return 0; |
2919 | } | 2919 | } |
2920 | 2920 | ||
2921 | static int cas_start_xmit(struct sk_buff *skb, struct net_device *dev) | 2921 | static netdev_tx_t cas_start_xmit(struct sk_buff *skb, struct net_device *dev) |
2922 | { | 2922 | { |
2923 | struct cas *cp = netdev_priv(dev); | 2923 | struct cas *cp = netdev_priv(dev); |
2924 | 2924 | ||
diff --git a/drivers/net/chelsio/sge.c b/drivers/net/chelsio/sge.c index 3711d64e45ef..8c658cf6f62f 100644 --- a/drivers/net/chelsio/sge.c +++ b/drivers/net/chelsio/sge.c | |||
@@ -1776,7 +1776,7 @@ static inline int eth_hdr_len(const void *data) | |||
1776 | /* | 1776 | /* |
1777 | * Adds the CPL header to the sk_buff and passes it to t1_sge_tx. | 1777 | * Adds the CPL header to the sk_buff and passes it to t1_sge_tx. |
1778 | */ | 1778 | */ |
1779 | int t1_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1779 | netdev_tx_t t1_start_xmit(struct sk_buff *skb, struct net_device *dev) |
1780 | { | 1780 | { |
1781 | struct adapter *adapter = dev->ml_priv; | 1781 | struct adapter *adapter = dev->ml_priv; |
1782 | struct sge *sge = adapter->sge; | 1782 | struct sge *sge = adapter->sge; |
diff --git a/drivers/net/chelsio/sge.h b/drivers/net/chelsio/sge.h index 8c9405123992..00cc37fc1f6f 100644 --- a/drivers/net/chelsio/sge.h +++ b/drivers/net/chelsio/sge.h | |||
@@ -78,7 +78,7 @@ void t1_sge_destroy(struct sge *); | |||
78 | irqreturn_t t1_interrupt(int irq, void *cookie); | 78 | irqreturn_t t1_interrupt(int irq, void *cookie); |
79 | int t1_poll(struct napi_struct *, int); | 79 | int t1_poll(struct napi_struct *, int); |
80 | 80 | ||
81 | int t1_start_xmit(struct sk_buff *skb, struct net_device *dev); | 81 | netdev_tx_t t1_start_xmit(struct sk_buff *skb, struct net_device *dev); |
82 | void t1_set_vlan_accel(struct adapter *adapter, int on_off); | 82 | void t1_set_vlan_accel(struct adapter *adapter, int on_off); |
83 | void t1_sge_start(struct sge *); | 83 | void t1_sge_start(struct sge *); |
84 | void t1_sge_stop(struct sge *); | 84 | void t1_sge_stop(struct sge *); |
diff --git a/drivers/net/cs89x0.c b/drivers/net/cs89x0.c index 839cac5fd8a5..0c54219960e2 100644 --- a/drivers/net/cs89x0.c +++ b/drivers/net/cs89x0.c | |||
@@ -246,7 +246,7 @@ struct net_local { | |||
246 | 246 | ||
247 | static int cs89x0_probe1(struct net_device *dev, int ioaddr, int modular); | 247 | static int cs89x0_probe1(struct net_device *dev, int ioaddr, int modular); |
248 | static int net_open(struct net_device *dev); | 248 | static int net_open(struct net_device *dev); |
249 | static int net_send_packet(struct sk_buff *skb, struct net_device *dev); | 249 | static netdev_tx_t net_send_packet(struct sk_buff *skb, struct net_device *dev); |
250 | static irqreturn_t net_interrupt(int irq, void *dev_id); | 250 | static irqreturn_t net_interrupt(int irq, void *dev_id); |
251 | static void set_multicast_list(struct net_device *dev); | 251 | static void set_multicast_list(struct net_device *dev); |
252 | static void net_timeout(struct net_device *dev); | 252 | static void net_timeout(struct net_device *dev); |
@@ -1518,7 +1518,7 @@ static void net_timeout(struct net_device *dev) | |||
1518 | netif_wake_queue(dev); | 1518 | netif_wake_queue(dev); |
1519 | } | 1519 | } |
1520 | 1520 | ||
1521 | static int net_send_packet(struct sk_buff *skb, struct net_device *dev) | 1521 | static netdev_tx_t net_send_packet(struct sk_buff *skb,struct net_device *dev) |
1522 | { | 1522 | { |
1523 | struct net_local *lp = netdev_priv(dev); | 1523 | struct net_local *lp = netdev_priv(dev); |
1524 | unsigned long flags; | 1524 | unsigned long flags; |
diff --git a/drivers/net/cxgb3/adapter.h b/drivers/net/cxgb3/adapter.h index 74723f2e7431..2b1aea6aa558 100644 --- a/drivers/net/cxgb3/adapter.h +++ b/drivers/net/cxgb3/adapter.h | |||
@@ -309,7 +309,7 @@ void t3_stop_sge_timers(struct adapter *adap); | |||
309 | void t3_free_sge_resources(struct adapter *adap); | 309 | void t3_free_sge_resources(struct adapter *adap); |
310 | void t3_sge_err_intr_handler(struct adapter *adapter); | 310 | void t3_sge_err_intr_handler(struct adapter *adapter); |
311 | irq_handler_t t3_intr_handler(struct adapter *adap, int polling); | 311 | irq_handler_t t3_intr_handler(struct adapter *adap, int polling); |
312 | int t3_eth_xmit(struct sk_buff *skb, struct net_device *dev); | 312 | netdev_tx_t t3_eth_xmit(struct sk_buff *skb, struct net_device *dev); |
313 | int t3_mgmt_tx(struct adapter *adap, struct sk_buff *skb); | 313 | int t3_mgmt_tx(struct adapter *adap, struct sk_buff *skb); |
314 | void t3_update_qset_coalesce(struct sge_qset *qs, const struct qset_params *p); | 314 | void t3_update_qset_coalesce(struct sge_qset *qs, const struct qset_params *p); |
315 | int t3_sge_alloc_qset(struct adapter *adapter, unsigned int id, int nports, | 315 | int t3_sge_alloc_qset(struct adapter *adapter, unsigned int id, int nports, |
diff --git a/drivers/net/cxgb3/sge.c b/drivers/net/cxgb3/sge.c index 29c79eb43beb..f86612857a73 100644 --- a/drivers/net/cxgb3/sge.c +++ b/drivers/net/cxgb3/sge.c | |||
@@ -1216,7 +1216,7 @@ static inline void t3_stop_tx_queue(struct netdev_queue *txq, | |||
1216 | * | 1216 | * |
1217 | * Add a packet to an SGE Tx queue. Runs with softirqs disabled. | 1217 | * Add a packet to an SGE Tx queue. Runs with softirqs disabled. |
1218 | */ | 1218 | */ |
1219 | int t3_eth_xmit(struct sk_buff *skb, struct net_device *dev) | 1219 | netdev_tx_t t3_eth_xmit(struct sk_buff *skb, struct net_device *dev) |
1220 | { | 1220 | { |
1221 | int qidx; | 1221 | int qidx; |
1222 | unsigned int ndesc, pidx, credits, gen, compl; | 1222 | unsigned int ndesc, pidx, credits, gen, compl; |
diff --git a/drivers/net/defxx.c b/drivers/net/defxx.c index b2e0a8fc21d7..6a6ea038d7a3 100644 --- a/drivers/net/defxx.c +++ b/drivers/net/defxx.c | |||
@@ -300,7 +300,8 @@ static int dfx_rcv_init(DFX_board_t *bp, int get_buffers); | |||
300 | static void dfx_rcv_queue_process(DFX_board_t *bp); | 300 | static void dfx_rcv_queue_process(DFX_board_t *bp); |
301 | static void dfx_rcv_flush(DFX_board_t *bp); | 301 | static void dfx_rcv_flush(DFX_board_t *bp); |
302 | 302 | ||
303 | static int dfx_xmt_queue_pkt(struct sk_buff *skb, struct net_device *dev); | 303 | static netdev_tx_t dfx_xmt_queue_pkt(struct sk_buff *skb, |
304 | struct net_device *dev); | ||
304 | static int dfx_xmt_done(DFX_board_t *bp); | 305 | static int dfx_xmt_done(DFX_board_t *bp); |
305 | static void dfx_xmt_flush(DFX_board_t *bp); | 306 | static void dfx_xmt_flush(DFX_board_t *bp); |
306 | 307 | ||
@@ -3188,11 +3189,8 @@ static void dfx_rcv_queue_process( | |||
3188 | * None | 3189 | * None |
3189 | */ | 3190 | */ |
3190 | 3191 | ||
3191 | static int dfx_xmt_queue_pkt( | 3192 | static netdev_tx_t dfx_xmt_queue_pkt(struct sk_buff *skb, |
3192 | struct sk_buff *skb, | 3193 | struct net_device *dev) |
3193 | struct net_device *dev | ||
3194 | ) | ||
3195 | |||
3196 | { | 3194 | { |
3197 | DFX_board_t *bp = netdev_priv(dev); | 3195 | DFX_board_t *bp = netdev_priv(dev); |
3198 | u8 prod; /* local transmit producer index */ | 3196 | u8 prod; /* local transmit producer index */ |
diff --git a/drivers/net/depca.c b/drivers/net/depca.c index adb997c5bb5d..9686c1fa28f1 100644 --- a/drivers/net/depca.c +++ b/drivers/net/depca.c | |||
@@ -516,7 +516,8 @@ struct depca_private { | |||
516 | ** Public Functions | 516 | ** Public Functions |
517 | */ | 517 | */ |
518 | static int depca_open(struct net_device *dev); | 518 | static int depca_open(struct net_device *dev); |
519 | static int depca_start_xmit(struct sk_buff *skb, struct net_device *dev); | 519 | static netdev_tx_t depca_start_xmit(struct sk_buff *skb, |
520 | struct net_device *dev); | ||
520 | static irqreturn_t depca_interrupt(int irq, void *dev_id); | 521 | static irqreturn_t depca_interrupt(int irq, void *dev_id); |
521 | static int depca_close(struct net_device *dev); | 522 | static int depca_close(struct net_device *dev); |
522 | static int depca_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 523 | static int depca_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
@@ -928,7 +929,8 @@ static void depca_tx_timeout(struct net_device *dev) | |||
928 | /* | 929 | /* |
929 | ** Writes a socket buffer to TX descriptor ring and starts transmission | 930 | ** Writes a socket buffer to TX descriptor ring and starts transmission |
930 | */ | 931 | */ |
931 | static int depca_start_xmit(struct sk_buff *skb, struct net_device *dev) | 932 | static netdev_tx_t depca_start_xmit(struct sk_buff *skb, |
933 | struct net_device *dev) | ||
932 | { | 934 | { |
933 | struct depca_private *lp = netdev_priv(dev); | 935 | struct depca_private *lp = netdev_priv(dev); |
934 | u_long ioaddr = dev->base_addr; | 936 | u_long ioaddr = dev->base_addr; |
diff --git a/drivers/net/dl2k.c b/drivers/net/dl2k.c index 4b6a219fecea..7fa7a907f134 100644 --- a/drivers/net/dl2k.c +++ b/drivers/net/dl2k.c | |||
@@ -59,7 +59,7 @@ static int rio_open (struct net_device *dev); | |||
59 | static void rio_timer (unsigned long data); | 59 | static void rio_timer (unsigned long data); |
60 | static void rio_tx_timeout (struct net_device *dev); | 60 | static void rio_tx_timeout (struct net_device *dev); |
61 | static void alloc_list (struct net_device *dev); | 61 | static void alloc_list (struct net_device *dev); |
62 | static int start_xmit (struct sk_buff *skb, struct net_device *dev); | 62 | static netdev_tx_t start_xmit (struct sk_buff *skb, struct net_device *dev); |
63 | static irqreturn_t rio_interrupt (int irq, void *dev_instance); | 63 | static irqreturn_t rio_interrupt (int irq, void *dev_instance); |
64 | static void rio_free_tx (struct net_device *dev, int irq); | 64 | static void rio_free_tx (struct net_device *dev, int irq); |
65 | static void tx_error (struct net_device *dev, int tx_status); | 65 | static void tx_error (struct net_device *dev, int tx_status); |
@@ -600,7 +600,7 @@ alloc_list (struct net_device *dev) | |||
600 | return; | 600 | return; |
601 | } | 601 | } |
602 | 602 | ||
603 | static int | 603 | static netdev_tx_t |
604 | start_xmit (struct sk_buff *skb, struct net_device *dev) | 604 | start_xmit (struct sk_buff *skb, struct net_device *dev) |
605 | { | 605 | { |
606 | struct netdev_private *np = netdev_priv(dev); | 606 | struct netdev_private *np = netdev_priv(dev); |
diff --git a/drivers/net/dnet.c b/drivers/net/dnet.c index 2818d5de3940..234685213f1a 100644 --- a/drivers/net/dnet.c +++ b/drivers/net/dnet.c | |||
@@ -541,7 +541,7 @@ static inline void dnet_print_skb(struct sk_buff *skb) | |||
541 | #define dnet_print_skb(skb) do {} while (0) | 541 | #define dnet_print_skb(skb) do {} while (0) |
542 | #endif | 542 | #endif |
543 | 543 | ||
544 | static int dnet_start_xmit(struct sk_buff *skb, struct net_device *dev) | 544 | static netdev_tx_t dnet_start_xmit(struct sk_buff *skb, struct net_device *dev) |
545 | { | 545 | { |
546 | 546 | ||
547 | struct dnet *bp = netdev_priv(dev); | 547 | struct dnet *bp = netdev_priv(dev); |
diff --git a/drivers/net/eepro.c b/drivers/net/eepro.c index 53317a83857a..1e934160062c 100644 --- a/drivers/net/eepro.c +++ b/drivers/net/eepro.c | |||
@@ -309,7 +309,8 @@ struct eepro_local { | |||
309 | 309 | ||
310 | static int eepro_probe1(struct net_device *dev, int autoprobe); | 310 | static int eepro_probe1(struct net_device *dev, int autoprobe); |
311 | static int eepro_open(struct net_device *dev); | 311 | static int eepro_open(struct net_device *dev); |
312 | static int eepro_send_packet(struct sk_buff *skb, struct net_device *dev); | 312 | static netdev_tx_t eepro_send_packet(struct sk_buff *skb, |
313 | struct net_device *dev); | ||
313 | static irqreturn_t eepro_interrupt(int irq, void *dev_id); | 314 | static irqreturn_t eepro_interrupt(int irq, void *dev_id); |
314 | static void eepro_rx(struct net_device *dev); | 315 | static void eepro_rx(struct net_device *dev); |
315 | static void eepro_transmit_interrupt(struct net_device *dev); | 316 | static void eepro_transmit_interrupt(struct net_device *dev); |
@@ -1133,7 +1134,8 @@ static void eepro_tx_timeout (struct net_device *dev) | |||
1133 | } | 1134 | } |
1134 | 1135 | ||
1135 | 1136 | ||
1136 | static int eepro_send_packet(struct sk_buff *skb, struct net_device *dev) | 1137 | static netdev_tx_t eepro_send_packet(struct sk_buff *skb, |
1138 | struct net_device *dev) | ||
1137 | { | 1139 | { |
1138 | struct eepro_local *lp = netdev_priv(dev); | 1140 | struct eepro_local *lp = netdev_priv(dev); |
1139 | unsigned long flags; | 1141 | unsigned long flags; |
diff --git a/drivers/net/eexpress.c b/drivers/net/eexpress.c index d1b6368faacd..592de8f1668a 100644 --- a/drivers/net/eexpress.c +++ b/drivers/net/eexpress.c | |||
@@ -246,7 +246,8 @@ static char mca_irqmap[] = { 12, 9, 3, 4, 5, 10, 11, 15 }; | |||
246 | static int eexp_open(struct net_device *dev); | 246 | static int eexp_open(struct net_device *dev); |
247 | static int eexp_close(struct net_device *dev); | 247 | static int eexp_close(struct net_device *dev); |
248 | static void eexp_timeout(struct net_device *dev); | 248 | static void eexp_timeout(struct net_device *dev); |
249 | static int eexp_xmit(struct sk_buff *buf, struct net_device *dev); | 249 | static netdev_tx_t eexp_xmit(struct sk_buff *buf, |
250 | struct net_device *dev); | ||
250 | 251 | ||
251 | static irqreturn_t eexp_irq(int irq, void *dev_addr); | 252 | static irqreturn_t eexp_irq(int irq, void *dev_addr); |
252 | static void eexp_set_multicast(struct net_device *dev); | 253 | static void eexp_set_multicast(struct net_device *dev); |
@@ -650,7 +651,7 @@ static void eexp_timeout(struct net_device *dev) | |||
650 | * Called to transmit a packet, or to allow us to right ourselves | 651 | * Called to transmit a packet, or to allow us to right ourselves |
651 | * if the kernel thinks we've died. | 652 | * if the kernel thinks we've died. |
652 | */ | 653 | */ |
653 | static int eexp_xmit(struct sk_buff *buf, struct net_device *dev) | 654 | static netdev_tx_t eexp_xmit(struct sk_buff *buf, struct net_device *dev) |
654 | { | 655 | { |
655 | short length = buf->len; | 656 | short length = buf->len; |
656 | #ifdef CONFIG_SMP | 657 | #ifdef CONFIG_SMP |
diff --git a/drivers/net/enc28j60.c b/drivers/net/enc28j60.c index 372d6c6a4e7f..117fc6c12e34 100644 --- a/drivers/net/enc28j60.c +++ b/drivers/net/enc28j60.c | |||
@@ -1276,7 +1276,8 @@ static void enc28j60_hw_tx(struct enc28j60_net *priv) | |||
1276 | locked_reg_bfset(priv, ECON1, ECON1_TXRTS); | 1276 | locked_reg_bfset(priv, ECON1, ECON1_TXRTS); |
1277 | } | 1277 | } |
1278 | 1278 | ||
1279 | static int enc28j60_send_packet(struct sk_buff *skb, struct net_device *dev) | 1279 | static netdev_tx_t enc28j60_send_packet(struct sk_buff *skb, |
1280 | struct net_device *dev) | ||
1280 | { | 1281 | { |
1281 | struct enc28j60_net *priv = netdev_priv(dev); | 1282 | struct enc28j60_net *priv = netdev_priv(dev); |
1282 | 1283 | ||
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index 8005b602f776..49912eb2a338 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c | |||
@@ -622,7 +622,8 @@ static inline void enic_queue_wq_skb(struct enic *enic, | |||
622 | } | 622 | } |
623 | 623 | ||
624 | /* netif_tx_lock held, process context with BHs disabled, or BH */ | 624 | /* netif_tx_lock held, process context with BHs disabled, or BH */ |
625 | static int enic_hard_start_xmit(struct sk_buff *skb, struct net_device *netdev) | 625 | static netdev_tx_t enic_hard_start_xmit(struct sk_buff *skb, |
626 | struct net_device *netdev) | ||
626 | { | 627 | { |
627 | struct enic *enic = netdev_priv(netdev); | 628 | struct enic *enic = netdev_priv(netdev); |
628 | struct vnic_wq *wq = &enic->wq[0]; | 629 | struct vnic_wq *wq = &enic->wq[0]; |
diff --git a/drivers/net/epic100.c b/drivers/net/epic100.c index d668ff2af6e3..641a10d2e843 100644 --- a/drivers/net/epic100.c +++ b/drivers/net/epic100.c | |||
@@ -298,7 +298,8 @@ static void epic_restart(struct net_device *dev); | |||
298 | static void epic_timer(unsigned long data); | 298 | static void epic_timer(unsigned long data); |
299 | static void epic_tx_timeout(struct net_device *dev); | 299 | static void epic_tx_timeout(struct net_device *dev); |
300 | static void epic_init_ring(struct net_device *dev); | 300 | static void epic_init_ring(struct net_device *dev); |
301 | static int epic_start_xmit(struct sk_buff *skb, struct net_device *dev); | 301 | static netdev_tx_t epic_start_xmit(struct sk_buff *skb, |
302 | struct net_device *dev); | ||
302 | static int epic_rx(struct net_device *dev, int budget); | 303 | static int epic_rx(struct net_device *dev, int budget); |
303 | static int epic_poll(struct napi_struct *napi, int budget); | 304 | static int epic_poll(struct napi_struct *napi, int budget); |
304 | static irqreturn_t epic_interrupt(int irq, void *dev_instance); | 305 | static irqreturn_t epic_interrupt(int irq, void *dev_instance); |
@@ -961,7 +962,7 @@ static void epic_init_ring(struct net_device *dev) | |||
961 | return; | 962 | return; |
962 | } | 963 | } |
963 | 964 | ||
964 | static int epic_start_xmit(struct sk_buff *skb, struct net_device *dev) | 965 | static netdev_tx_t epic_start_xmit(struct sk_buff *skb, struct net_device *dev) |
965 | { | 966 | { |
966 | struct epic_private *ep = netdev_priv(dev); | 967 | struct epic_private *ep = netdev_priv(dev); |
967 | int entry, free_count; | 968 | int entry, free_count; |
diff --git a/drivers/net/eth16i.c b/drivers/net/eth16i.c index 97d5205edc8f..71bfeec33a0b 100644 --- a/drivers/net/eth16i.c +++ b/drivers/net/eth16i.c | |||
@@ -405,7 +405,7 @@ static int eth16i_read_eeprom_word(int ioaddr); | |||
405 | static void eth16i_eeprom_cmd(int ioaddr, unsigned char command); | 405 | static void eth16i_eeprom_cmd(int ioaddr, unsigned char command); |
406 | static int eth16i_open(struct net_device *dev); | 406 | static int eth16i_open(struct net_device *dev); |
407 | static int eth16i_close(struct net_device *dev); | 407 | static int eth16i_close(struct net_device *dev); |
408 | static int eth16i_tx(struct sk_buff *skb, struct net_device *dev); | 408 | static netdev_tx_t eth16i_tx(struct sk_buff *skb, struct net_device *dev); |
409 | static void eth16i_rx(struct net_device *dev); | 409 | static void eth16i_rx(struct net_device *dev); |
410 | static void eth16i_timeout(struct net_device *dev); | 410 | static void eth16i_timeout(struct net_device *dev); |
411 | static irqreturn_t eth16i_interrupt(int irq, void *dev_id); | 411 | static irqreturn_t eth16i_interrupt(int irq, void *dev_id); |
@@ -1053,7 +1053,7 @@ static void eth16i_timeout(struct net_device *dev) | |||
1053 | netif_wake_queue(dev); | 1053 | netif_wake_queue(dev); |
1054 | } | 1054 | } |
1055 | 1055 | ||
1056 | static int eth16i_tx(struct sk_buff *skb, struct net_device *dev) | 1056 | static netdev_tx_t eth16i_tx(struct sk_buff *skb, struct net_device *dev) |
1057 | { | 1057 | { |
1058 | struct eth16i_local *lp = netdev_priv(dev); | 1058 | struct eth16i_local *lp = netdev_priv(dev); |
1059 | int ioaddr = dev->base_addr; | 1059 | int ioaddr = dev->base_addr; |
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index 4dbe5f173273..b871aefed9c6 100644 --- a/drivers/net/ethoc.c +++ b/drivers/net/ethoc.c | |||
@@ -802,7 +802,7 @@ static struct net_device_stats *ethoc_stats(struct net_device *dev) | |||
802 | return &priv->stats; | 802 | return &priv->stats; |
803 | } | 803 | } |
804 | 804 | ||
805 | static int ethoc_start_xmit(struct sk_buff *skb, struct net_device *dev) | 805 | static netdev_tx_t ethoc_start_xmit(struct sk_buff *skb, struct net_device *dev) |
806 | { | 806 | { |
807 | struct ethoc *priv = netdev_priv(dev); | 807 | struct ethoc *priv = netdev_priv(dev); |
808 | struct ethoc_bd bd; | 808 | struct ethoc_bd bd; |
diff --git a/drivers/net/ewrk3.c b/drivers/net/ewrk3.c index 9c51bc813ad3..b2a5ec8f3721 100644 --- a/drivers/net/ewrk3.c +++ b/drivers/net/ewrk3.c | |||
@@ -298,7 +298,7 @@ struct ewrk3_private { | |||
298 | ** Public Functions | 298 | ** Public Functions |
299 | */ | 299 | */ |
300 | static int ewrk3_open(struct net_device *dev); | 300 | static int ewrk3_open(struct net_device *dev); |
301 | static int ewrk3_queue_pkt(struct sk_buff *skb, struct net_device *dev); | 301 | static netdev_tx_t ewrk3_queue_pkt(struct sk_buff *skb, struct net_device *dev); |
302 | static irqreturn_t ewrk3_interrupt(int irq, void *dev_id); | 302 | static irqreturn_t ewrk3_interrupt(int irq, void *dev_id); |
303 | static int ewrk3_close(struct net_device *dev); | 303 | static int ewrk3_close(struct net_device *dev); |
304 | static void set_multicast_list(struct net_device *dev); | 304 | static void set_multicast_list(struct net_device *dev); |
@@ -764,7 +764,7 @@ static void ewrk3_timeout(struct net_device *dev) | |||
764 | /* | 764 | /* |
765 | ** Writes a socket buffer to the free page queue | 765 | ** Writes a socket buffer to the free page queue |
766 | */ | 766 | */ |
767 | static int ewrk3_queue_pkt (struct sk_buff *skb, struct net_device *dev) | 767 | static netdev_tx_t ewrk3_queue_pkt(struct sk_buff *skb, struct net_device *dev) |
768 | { | 768 | { |
769 | struct ewrk3_private *lp = netdev_priv(dev); | 769 | struct ewrk3_private *lp = netdev_priv(dev); |
770 | u_long iobase = dev->base_addr; | 770 | u_long iobase = dev->base_addr; |
diff --git a/drivers/net/fealnx.c b/drivers/net/fealnx.c index f66da84a9398..18d5fbb9673e 100644 --- a/drivers/net/fealnx.c +++ b/drivers/net/fealnx.c | |||
@@ -433,7 +433,7 @@ static void netdev_timer(unsigned long data); | |||
433 | static void reset_timer(unsigned long data); | 433 | static void reset_timer(unsigned long data); |
434 | static void fealnx_tx_timeout(struct net_device *dev); | 434 | static void fealnx_tx_timeout(struct net_device *dev); |
435 | static void init_ring(struct net_device *dev); | 435 | static void init_ring(struct net_device *dev); |
436 | static int start_tx(struct sk_buff *skb, struct net_device *dev); | 436 | static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev); |
437 | static irqreturn_t intr_handler(int irq, void *dev_instance); | 437 | static irqreturn_t intr_handler(int irq, void *dev_instance); |
438 | static int netdev_rx(struct net_device *dev); | 438 | static int netdev_rx(struct net_device *dev); |
439 | static void set_rx_mode(struct net_device *dev); | 439 | static void set_rx_mode(struct net_device *dev); |
@@ -1305,7 +1305,7 @@ static void init_ring(struct net_device *dev) | |||
1305 | } | 1305 | } |
1306 | 1306 | ||
1307 | 1307 | ||
1308 | static int start_tx(struct sk_buff *skb, struct net_device *dev) | 1308 | static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev) |
1309 | { | 1309 | { |
1310 | struct netdev_private *np = netdev_priv(dev); | 1310 | struct netdev_private *np = netdev_priv(dev); |
1311 | unsigned long flags; | 1311 | unsigned long flags; |
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c index 3b4e0766c7b2..0a1c2bb27d4d 100644 --- a/drivers/net/forcedeth.c +++ b/drivers/net/forcedeth.c | |||
@@ -2137,7 +2137,7 @@ static void nv_gear_backoff_reseed(struct net_device *dev) | |||
2137 | * nv_start_xmit: dev->hard_start_xmit function | 2137 | * nv_start_xmit: dev->hard_start_xmit function |
2138 | * Called with netif_tx_lock held. | 2138 | * Called with netif_tx_lock held. |
2139 | */ | 2139 | */ |
2140 | static int nv_start_xmit(struct sk_buff *skb, struct net_device *dev) | 2140 | static netdev_tx_t nv_start_xmit(struct sk_buff *skb, struct net_device *dev) |
2141 | { | 2141 | { |
2142 | struct fe_priv *np = netdev_priv(dev); | 2142 | struct fe_priv *np = netdev_priv(dev); |
2143 | u32 tx_flags = 0; | 2143 | u32 tx_flags = 0; |
@@ -2257,7 +2257,8 @@ static int nv_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
2257 | return NETDEV_TX_OK; | 2257 | return NETDEV_TX_OK; |
2258 | } | 2258 | } |
2259 | 2259 | ||
2260 | static int nv_start_xmit_optimized(struct sk_buff *skb, struct net_device *dev) | 2260 | static netdev_tx_t nv_start_xmit_optimized(struct sk_buff *skb, |
2261 | struct net_device *dev) | ||
2261 | { | 2262 | { |
2262 | struct fe_priv *np = netdev_priv(dev); | 2263 | struct fe_priv *np = netdev_priv(dev); |
2263 | u32 tx_flags = 0; | 2264 | u32 tx_flags = 0; |
diff --git a/drivers/net/hamachi.c b/drivers/net/hamachi.c index 635341d6a028..1d5064a09aca 100644 --- a/drivers/net/hamachi.c +++ b/drivers/net/hamachi.c | |||
@@ -557,7 +557,8 @@ static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | |||
557 | static void hamachi_timer(unsigned long data); | 557 | static void hamachi_timer(unsigned long data); |
558 | static void hamachi_tx_timeout(struct net_device *dev); | 558 | static void hamachi_tx_timeout(struct net_device *dev); |
559 | static void hamachi_init_ring(struct net_device *dev); | 559 | static void hamachi_init_ring(struct net_device *dev); |
560 | static int hamachi_start_xmit(struct sk_buff *skb, struct net_device *dev); | 560 | static netdev_tx_t hamachi_start_xmit(struct sk_buff *skb, |
561 | struct net_device *dev); | ||
561 | static irqreturn_t hamachi_interrupt(int irq, void *dev_instance); | 562 | static irqreturn_t hamachi_interrupt(int irq, void *dev_instance); |
562 | static int hamachi_rx(struct net_device *dev); | 563 | static int hamachi_rx(struct net_device *dev); |
563 | static inline int hamachi_tx(struct net_device *dev); | 564 | static inline int hamachi_tx(struct net_device *dev); |
@@ -1263,7 +1264,8 @@ do { \ | |||
1263 | } while (0) | 1264 | } while (0) |
1264 | #endif | 1265 | #endif |
1265 | 1266 | ||
1266 | static int hamachi_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1267 | static netdev_tx_t hamachi_start_xmit(struct sk_buff *skb, |
1268 | struct net_device *dev) | ||
1267 | { | 1269 | { |
1268 | struct hamachi_private *hmp = netdev_priv(dev); | 1270 | struct hamachi_private *hmp = netdev_priv(dev); |
1269 | unsigned entry; | 1271 | unsigned entry; |
diff --git a/drivers/net/hp100.c b/drivers/net/hp100.c index d1b63387e9bc..a9a1a99f02dd 100644 --- a/drivers/net/hp100.c +++ b/drivers/net/hp100.c | |||
@@ -240,9 +240,10 @@ static int hp100_probe1(struct net_device *dev, int ioaddr, u_char bus, | |||
240 | 240 | ||
241 | static int hp100_open(struct net_device *dev); | 241 | static int hp100_open(struct net_device *dev); |
242 | static int hp100_close(struct net_device *dev); | 242 | static int hp100_close(struct net_device *dev); |
243 | static int hp100_start_xmit(struct sk_buff *skb, struct net_device *dev); | 243 | static netdev_tx_t hp100_start_xmit(struct sk_buff *skb, |
244 | static int hp100_start_xmit_bm(struct sk_buff *skb, | 244 | struct net_device *dev); |
245 | struct net_device *dev); | 245 | static netdev_tx_t hp100_start_xmit_bm(struct sk_buff *skb, |
246 | struct net_device *dev); | ||
246 | static void hp100_rx(struct net_device *dev); | 247 | static void hp100_rx(struct net_device *dev); |
247 | static struct net_device_stats *hp100_get_stats(struct net_device *dev); | 248 | static struct net_device_stats *hp100_get_stats(struct net_device *dev); |
248 | static void hp100_misc_interrupt(struct net_device *dev); | 249 | static void hp100_misc_interrupt(struct net_device *dev); |
@@ -1483,7 +1484,8 @@ static int hp100_check_lan(struct net_device *dev) | |||
1483 | */ | 1484 | */ |
1484 | 1485 | ||
1485 | /* tx function for busmaster mode */ | 1486 | /* tx function for busmaster mode */ |
1486 | static int hp100_start_xmit_bm(struct sk_buff *skb, struct net_device *dev) | 1487 | static netdev_tx_t hp100_start_xmit_bm(struct sk_buff *skb, |
1488 | struct net_device *dev) | ||
1487 | { | 1489 | { |
1488 | unsigned long flags; | 1490 | unsigned long flags; |
1489 | int i, ok_flag; | 1491 | int i, ok_flag; |
@@ -1635,7 +1637,8 @@ static void hp100_clean_txring(struct net_device *dev) | |||
1635 | } | 1637 | } |
1636 | 1638 | ||
1637 | /* tx function for slave modes */ | 1639 | /* tx function for slave modes */ |
1638 | static int hp100_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1640 | static netdev_tx_t hp100_start_xmit(struct sk_buff *skb, |
1641 | struct net_device *dev) | ||
1639 | { | 1642 | { |
1640 | unsigned long flags; | 1643 | unsigned long flags; |
1641 | int i, ok_flag; | 1644 | int i, ok_flag; |
diff --git a/drivers/net/ibmlana.c b/drivers/net/ibmlana.c index 448098d3b39b..090a6d3af112 100644 --- a/drivers/net/ibmlana.c +++ b/drivers/net/ibmlana.c | |||
@@ -812,7 +812,7 @@ static int ibmlana_close(struct net_device *dev) | |||
812 | 812 | ||
813 | /* transmit a block. */ | 813 | /* transmit a block. */ |
814 | 814 | ||
815 | static int ibmlana_tx(struct sk_buff *skb, struct net_device *dev) | 815 | static netdev_tx_t ibmlana_tx(struct sk_buff *skb, struct net_device *dev) |
816 | { | 816 | { |
817 | ibmlana_priv *priv = netdev_priv(dev); | 817 | ibmlana_priv *priv = netdev_priv(dev); |
818 | int tmplen, addr; | 818 | int tmplen, addr; |
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c index 76b295a18185..5862282ab2fe 100644 --- a/drivers/net/ibmveth.c +++ b/drivers/net/ibmveth.c | |||
@@ -887,7 +887,8 @@ static int ibmveth_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | |||
887 | 887 | ||
888 | #define page_offset(v) ((unsigned long)(v) & ((1 << 12) - 1)) | 888 | #define page_offset(v) ((unsigned long)(v) & ((1 << 12) - 1)) |
889 | 889 | ||
890 | static int ibmveth_start_xmit(struct sk_buff *skb, struct net_device *netdev) | 890 | static netdev_tx_t ibmveth_start_xmit(struct sk_buff *skb, |
891 | struct net_device *netdev) | ||
891 | { | 892 | { |
892 | struct ibmveth_adapter *adapter = netdev_priv(netdev); | 893 | struct ibmveth_adapter *adapter = netdev_priv(netdev); |
893 | union ibmveth_buf_desc desc; | 894 | union ibmveth_buf_desc desc; |
diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c index 43019461b776..382c5532e6c5 100644 --- a/drivers/net/ipg.c +++ b/drivers/net/ipg.c | |||
@@ -1858,7 +1858,8 @@ static int ipg_nic_stop(struct net_device *dev) | |||
1858 | return 0; | 1858 | return 0; |
1859 | } | 1859 | } |
1860 | 1860 | ||
1861 | static int ipg_nic_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1861 | static netdev_tx_t ipg_nic_hard_start_xmit(struct sk_buff *skb, |
1862 | struct net_device *dev) | ||
1862 | { | 1863 | { |
1863 | struct ipg_nic_private *sp = netdev_priv(dev); | 1864 | struct ipg_nic_private *sp = netdev_priv(dev); |
1864 | void __iomem *ioaddr = sp->ioaddr; | 1865 | void __iomem *ioaddr = sp->ioaddr; |
diff --git a/drivers/net/jme.c b/drivers/net/jme.c index e7068c7cd627..1d2a32544ed2 100644 --- a/drivers/net/jme.c +++ b/drivers/net/jme.c | |||
@@ -1931,7 +1931,7 @@ jme_stop_queue_if_full(struct jme_adapter *jme) | |||
1931 | * This function is already protected by netif_tx_lock() | 1931 | * This function is already protected by netif_tx_lock() |
1932 | */ | 1932 | */ |
1933 | 1933 | ||
1934 | static int | 1934 | static netdev_tx_t |
1935 | jme_start_xmit(struct sk_buff *skb, struct net_device *netdev) | 1935 | jme_start_xmit(struct sk_buff *skb, struct net_device *netdev) |
1936 | { | 1936 | { |
1937 | struct jme_adapter *jme = netdev_priv(netdev); | 1937 | struct jme_adapter *jme = netdev_priv(netdev); |
diff --git a/drivers/net/ks8842.c b/drivers/net/ks8842.c index 39b0aea2aab3..6e74aa9eea44 100644 --- a/drivers/net/ks8842.c +++ b/drivers/net/ks8842.c | |||
@@ -551,7 +551,8 @@ static int ks8842_close(struct net_device *netdev) | |||
551 | return 0; | 551 | return 0; |
552 | } | 552 | } |
553 | 553 | ||
554 | static int ks8842_xmit_frame(struct sk_buff *skb, struct net_device *netdev) | 554 | static netdev_tx_t ks8842_xmit_frame(struct sk_buff *skb, |
555 | struct net_device *netdev) | ||
555 | { | 556 | { |
556 | int ret; | 557 | int ret; |
557 | struct ks8842_adapter *adapter = netdev_priv(netdev); | 558 | struct ks8842_adapter *adapter = netdev_priv(netdev); |
diff --git a/drivers/net/ks8851.c b/drivers/net/ks8851.c index 9a1dea60c1c4..547ac7c7479c 100644 --- a/drivers/net/ks8851.c +++ b/drivers/net/ks8851.c | |||
@@ -868,11 +868,12 @@ static int ks8851_net_stop(struct net_device *dev) | |||
868 | * and secondly so we can round up more than one packet to transmit which | 868 | * and secondly so we can round up more than one packet to transmit which |
869 | * means we can try and avoid generating too many transmit done interrupts. | 869 | * means we can try and avoid generating too many transmit done interrupts. |
870 | */ | 870 | */ |
871 | static int ks8851_start_xmit(struct sk_buff *skb, struct net_device *dev) | 871 | static netdev_tx_t ks8851_start_xmit(struct sk_buff *skb, |
872 | struct net_device *dev) | ||
872 | { | 873 | { |
873 | struct ks8851_net *ks = netdev_priv(dev); | 874 | struct ks8851_net *ks = netdev_priv(dev); |
874 | unsigned needed = calc_txlen(skb->len); | 875 | unsigned needed = calc_txlen(skb->len); |
875 | int ret = NETDEV_TX_OK; | 876 | netdev_tx_t ret = NETDEV_TX_OK; |
876 | 877 | ||
877 | if (netif_msg_tx_queued(ks)) | 878 | if (netif_msg_tx_queued(ks)) |
878 | ks_dbg(ks, "%s: skb %p, %d@%p\n", __func__, | 879 | ks_dbg(ks, "%s: skb %p, %d@%p\n", __func__, |
diff --git a/drivers/net/lance.c b/drivers/net/lance.c index 30fd4f5f1d5a..dcda30338b65 100644 --- a/drivers/net/lance.c +++ b/drivers/net/lance.c | |||
@@ -300,7 +300,8 @@ static unsigned char lance_need_isa_bounce_buffers = 1; | |||
300 | 300 | ||
301 | static int lance_open(struct net_device *dev); | 301 | static int lance_open(struct net_device *dev); |
302 | static void lance_init_ring(struct net_device *dev, gfp_t mode); | 302 | static void lance_init_ring(struct net_device *dev, gfp_t mode); |
303 | static int lance_start_xmit(struct sk_buff *skb, struct net_device *dev); | 303 | static netdev_tx_t lance_start_xmit(struct sk_buff *skb, |
304 | struct net_device *dev); | ||
304 | static int lance_rx(struct net_device *dev); | 305 | static int lance_rx(struct net_device *dev); |
305 | static irqreturn_t lance_interrupt(int irq, void *dev_id); | 306 | static irqreturn_t lance_interrupt(int irq, void *dev_id); |
306 | static int lance_close(struct net_device *dev); | 307 | static int lance_close(struct net_device *dev); |
@@ -949,7 +950,8 @@ static void lance_tx_timeout (struct net_device *dev) | |||
949 | } | 950 | } |
950 | 951 | ||
951 | 952 | ||
952 | static int lance_start_xmit(struct sk_buff *skb, struct net_device *dev) | 953 | static netdev_tx_t lance_start_xmit(struct sk_buff *skb, |
954 | struct net_device *dev) | ||
953 | { | 955 | { |
954 | struct lance_private *lp = dev->ml_priv; | 956 | struct lance_private *lp = dev->ml_priv; |
955 | int ioaddr = dev->base_addr; | 957 | int ioaddr = dev->base_addr; |
diff --git a/drivers/net/lib8390.c b/drivers/net/lib8390.c index d6be36000c5c..256119882b1e 100644 --- a/drivers/net/lib8390.c +++ b/drivers/net/lib8390.c | |||
@@ -299,7 +299,8 @@ static void __ei_tx_timeout(struct net_device *dev) | |||
299 | * Sends a packet to an 8390 network device. | 299 | * Sends a packet to an 8390 network device. |
300 | */ | 300 | */ |
301 | 301 | ||
302 | static int __ei_start_xmit(struct sk_buff *skb, struct net_device *dev) | 302 | static netdev_tx_t __ei_start_xmit(struct sk_buff *skb, |
303 | struct net_device *dev) | ||
303 | { | 304 | { |
304 | unsigned long e8390_base = dev->base_addr; | 305 | unsigned long e8390_base = dev->base_addr; |
305 | struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev); | 306 | struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev); |
diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index 51bbce72bede..1bc654a73c47 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c | |||
@@ -69,7 +69,8 @@ struct pcpu_lstats { | |||
69 | * The higher levels take care of making this non-reentrant (it's | 69 | * The higher levels take care of making this non-reentrant (it's |
70 | * called with bh's disabled). | 70 | * called with bh's disabled). |
71 | */ | 71 | */ |
72 | static int loopback_xmit(struct sk_buff *skb, struct net_device *dev) | 72 | static netdev_tx_t loopback_xmit(struct sk_buff *skb, |
73 | struct net_device *dev) | ||
73 | { | 74 | { |
74 | struct pcpu_lstats *pcpu_lstats, *lb_stats; | 75 | struct pcpu_lstats *pcpu_lstats, *lb_stats; |
75 | int len; | 76 | int len; |
diff --git a/drivers/net/lp486e.c b/drivers/net/lp486e.c index c292bad411ee..cc3ed9cf28be 100644 --- a/drivers/net/lp486e.c +++ b/drivers/net/lp486e.c | |||
@@ -377,7 +377,7 @@ static char init_setup[14] = { | |||
377 | }; | 377 | }; |
378 | 378 | ||
379 | static int i596_open(struct net_device *dev); | 379 | static int i596_open(struct net_device *dev); |
380 | static int i596_start_xmit(struct sk_buff *skb, struct net_device *dev); | 380 | static netdev_tx_t i596_start_xmit(struct sk_buff *skb, struct net_device *dev); |
381 | static irqreturn_t i596_interrupt(int irq, void *dev_id); | 381 | static irqreturn_t i596_interrupt(int irq, void *dev_id); |
382 | static int i596_close(struct net_device *dev); | 382 | static int i596_close(struct net_device *dev); |
383 | static void i596_add_cmd(struct net_device *dev, struct i596_cmd *cmd); | 383 | static void i596_add_cmd(struct net_device *dev, struct i596_cmd *cmd); |
@@ -863,7 +863,7 @@ static int i596_open(struct net_device *dev) | |||
863 | return 0; /* Always succeed */ | 863 | return 0; /* Always succeed */ |
864 | } | 864 | } |
865 | 865 | ||
866 | static int i596_start_xmit (struct sk_buff *skb, struct net_device *dev) { | 866 | static netdev_tx_t i596_start_xmit (struct sk_buff *skb, struct net_device *dev) { |
867 | struct tx_cmd *tx_cmd; | 867 | struct tx_cmd *tx_cmd; |
868 | short length; | 868 | short length; |
869 | 869 | ||
diff --git a/drivers/net/mlx4/en_tx.c b/drivers/net/mlx4/en_tx.c index 0ecc1e1b013e..d3d6e991065b 100644 --- a/drivers/net/mlx4/en_tx.c +++ b/drivers/net/mlx4/en_tx.c | |||
@@ -588,7 +588,7 @@ u16 mlx4_en_select_queue(struct net_device *dev, struct sk_buff *skb) | |||
588 | return skb_tx_hash(dev, skb); | 588 | return skb_tx_hash(dev, skb); |
589 | } | 589 | } |
590 | 590 | ||
591 | int mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev) | 591 | netdev_tx_t mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev) |
592 | { | 592 | { |
593 | struct mlx4_en_priv *priv = netdev_priv(dev); | 593 | struct mlx4_en_priv *priv = netdev_priv(dev); |
594 | struct mlx4_en_dev *mdev = priv->mdev; | 594 | struct mlx4_en_dev *mdev = priv->mdev; |
diff --git a/drivers/net/mlx4/mlx4_en.h b/drivers/net/mlx4/mlx4_en.h index 4513fb4960dc..4376147b0ea0 100644 --- a/drivers/net/mlx4/mlx4_en.h +++ b/drivers/net/mlx4/mlx4_en.h | |||
@@ -518,7 +518,7 @@ int mlx4_en_arm_cq(struct mlx4_en_priv *priv, struct mlx4_en_cq *cq); | |||
518 | void mlx4_en_poll_tx_cq(unsigned long data); | 518 | void mlx4_en_poll_tx_cq(unsigned long data); |
519 | void mlx4_en_tx_irq(struct mlx4_cq *mcq); | 519 | void mlx4_en_tx_irq(struct mlx4_cq *mcq); |
520 | u16 mlx4_en_select_queue(struct net_device *dev, struct sk_buff *skb); | 520 | u16 mlx4_en_select_queue(struct net_device *dev, struct sk_buff *skb); |
521 | int mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev); | 521 | netdev_tx_t mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev); |
522 | 522 | ||
523 | int mlx4_en_create_tx_ring(struct mlx4_en_priv *priv, struct mlx4_en_tx_ring *ring, | 523 | int mlx4_en_create_tx_ring(struct mlx4_en_priv *priv, struct mlx4_en_tx_ring *ring, |
524 | u32 size, u16 stride); | 524 | u32 size, u16 stride); |
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index 75deef35b1e0..6930c87f362e 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/drivers/net/myri10ge/myri10ge.c | |||
@@ -360,7 +360,8 @@ MODULE_PARM_DESC(myri10ge_dca, "Enable DCA if possible"); | |||
360 | #define myri10ge_pio_copy(to,from,size) __iowrite64_copy(to,from,size/8) | 360 | #define myri10ge_pio_copy(to,from,size) __iowrite64_copy(to,from,size/8) |
361 | 361 | ||
362 | static void myri10ge_set_multicast_list(struct net_device *dev); | 362 | static void myri10ge_set_multicast_list(struct net_device *dev); |
363 | static int myri10ge_sw_tso(struct sk_buff *skb, struct net_device *dev); | 363 | static netdev_tx_t myri10ge_sw_tso(struct sk_buff *skb, |
364 | struct net_device *dev); | ||
364 | 365 | ||
365 | static inline void put_be32(__be32 val, __be32 __iomem * p) | 366 | static inline void put_be32(__be32 val, __be32 __iomem * p) |
366 | { | 367 | { |
@@ -2656,7 +2657,8 @@ myri10ge_submit_req(struct myri10ge_tx_buf *tx, struct mcp_kreq_ether_send *src, | |||
2656 | * it and try again. | 2657 | * it and try again. |
2657 | */ | 2658 | */ |
2658 | 2659 | ||
2659 | static int myri10ge_xmit(struct sk_buff *skb, struct net_device *dev) | 2660 | static netdev_tx_t myri10ge_xmit(struct sk_buff *skb, |
2661 | struct net_device *dev) | ||
2660 | { | 2662 | { |
2661 | struct myri10ge_priv *mgp = netdev_priv(dev); | 2663 | struct myri10ge_priv *mgp = netdev_priv(dev); |
2662 | struct myri10ge_slice_state *ss; | 2664 | struct myri10ge_slice_state *ss; |
@@ -2947,12 +2949,13 @@ drop: | |||
2947 | 2949 | ||
2948 | } | 2950 | } |
2949 | 2951 | ||
2950 | static int myri10ge_sw_tso(struct sk_buff *skb, struct net_device *dev) | 2952 | static netdev_tx_t myri10ge_sw_tso(struct sk_buff *skb, |
2953 | struct net_device *dev) | ||
2951 | { | 2954 | { |
2952 | struct sk_buff *segs, *curr; | 2955 | struct sk_buff *segs, *curr; |
2953 | struct myri10ge_priv *mgp = netdev_priv(dev); | 2956 | struct myri10ge_priv *mgp = netdev_priv(dev); |
2954 | struct myri10ge_slice_state *ss; | 2957 | struct myri10ge_slice_state *ss; |
2955 | int status; | 2958 | netdev_tx_t status; |
2956 | 2959 | ||
2957 | segs = skb_gso_segment(skb, dev->features & ~NETIF_F_TSO6); | 2960 | segs = skb_gso_segment(skb, dev->features & ~NETIF_F_TSO6); |
2958 | if (IS_ERR(segs)) | 2961 | if (IS_ERR(segs)) |
diff --git a/drivers/net/natsemi.c b/drivers/net/natsemi.c index 32db12a27342..bd41351e4e26 100644 --- a/drivers/net/natsemi.c +++ b/drivers/net/natsemi.c | |||
@@ -621,7 +621,7 @@ static void drain_ring(struct net_device *dev); | |||
621 | static void free_ring(struct net_device *dev); | 621 | static void free_ring(struct net_device *dev); |
622 | static void reinit_ring(struct net_device *dev); | 622 | static void reinit_ring(struct net_device *dev); |
623 | static void init_registers(struct net_device *dev); | 623 | static void init_registers(struct net_device *dev); |
624 | static int start_tx(struct sk_buff *skb, struct net_device *dev); | 624 | static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev); |
625 | static irqreturn_t intr_handler(int irq, void *dev_instance); | 625 | static irqreturn_t intr_handler(int irq, void *dev_instance); |
626 | static void netdev_error(struct net_device *dev, int intr_status); | 626 | static void netdev_error(struct net_device *dev, int intr_status); |
627 | static int natsemi_poll(struct napi_struct *napi, int budget); | 627 | static int natsemi_poll(struct napi_struct *napi, int budget); |
@@ -2079,7 +2079,7 @@ static void reinit_ring(struct net_device *dev) | |||
2079 | reinit_rx(dev); | 2079 | reinit_rx(dev); |
2080 | } | 2080 | } |
2081 | 2081 | ||
2082 | static int start_tx(struct sk_buff *skb, struct net_device *dev) | 2082 | static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev) |
2083 | { | 2083 | { |
2084 | struct netdev_private *np = netdev_priv(dev); | 2084 | struct netdev_private *np = netdev_priv(dev); |
2085 | void __iomem * ioaddr = ns_ioaddr(dev); | 2085 | void __iomem * ioaddr = ns_ioaddr(dev); |
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index fab51d16f5fb..f824a392bf56 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -63,7 +63,8 @@ static int __devinit netxen_nic_probe(struct pci_dev *pdev, | |||
63 | static void __devexit netxen_nic_remove(struct pci_dev *pdev); | 63 | static void __devexit netxen_nic_remove(struct pci_dev *pdev); |
64 | static int netxen_nic_open(struct net_device *netdev); | 64 | static int netxen_nic_open(struct net_device *netdev); |
65 | static int netxen_nic_close(struct net_device *netdev); | 65 | static int netxen_nic_close(struct net_device *netdev); |
66 | static int netxen_nic_xmit_frame(struct sk_buff *, struct net_device *); | 66 | static netdev_tx_t netxen_nic_xmit_frame(struct sk_buff *, |
67 | struct net_device *); | ||
67 | static void netxen_tx_timeout(struct net_device *netdev); | 68 | static void netxen_tx_timeout(struct net_device *netdev); |
68 | static void netxen_reset_task(struct work_struct *work); | 69 | static void netxen_reset_task(struct work_struct *work); |
69 | static void netxen_watchdog(unsigned long); | 70 | static void netxen_watchdog(unsigned long); |
@@ -1599,7 +1600,7 @@ netxen_clear_cmddesc(u64 *desc) | |||
1599 | desc[2] = 0ULL; | 1600 | desc[2] = 0ULL; |
1600 | } | 1601 | } |
1601 | 1602 | ||
1602 | static int | 1603 | static netdev_tx_t |
1603 | netxen_nic_xmit_frame(struct sk_buff *skb, struct net_device *netdev) | 1604 | netxen_nic_xmit_frame(struct sk_buff *skb, struct net_device *netdev) |
1604 | { | 1605 | { |
1605 | struct netxen_adapter *adapter = netdev_priv(netdev); | 1606 | struct netxen_adapter *adapter = netdev_priv(netdev); |
diff --git a/drivers/net/ni52.c b/drivers/net/ni52.c index a0ac5d4f27d3..bd0ac690d12c 100644 --- a/drivers/net/ni52.c +++ b/drivers/net/ni52.c | |||
@@ -170,7 +170,7 @@ static int ni52_probe1(struct net_device *dev, int ioaddr); | |||
170 | static irqreturn_t ni52_interrupt(int irq, void *dev_id); | 170 | static irqreturn_t ni52_interrupt(int irq, void *dev_id); |
171 | static int ni52_open(struct net_device *dev); | 171 | static int ni52_open(struct net_device *dev); |
172 | static int ni52_close(struct net_device *dev); | 172 | static int ni52_close(struct net_device *dev); |
173 | static int ni52_send_packet(struct sk_buff *, struct net_device *); | 173 | static netdev_tx_t ni52_send_packet(struct sk_buff *, struct net_device *); |
174 | static struct net_device_stats *ni52_get_stats(struct net_device *dev); | 174 | static struct net_device_stats *ni52_get_stats(struct net_device *dev); |
175 | static void set_multicast_list(struct net_device *dev); | 175 | static void set_multicast_list(struct net_device *dev); |
176 | static void ni52_timeout(struct net_device *dev); | 176 | static void ni52_timeout(struct net_device *dev); |
@@ -1173,7 +1173,8 @@ static void ni52_timeout(struct net_device *dev) | |||
1173 | * send frame | 1173 | * send frame |
1174 | */ | 1174 | */ |
1175 | 1175 | ||
1176 | static int ni52_send_packet(struct sk_buff *skb, struct net_device *dev) | 1176 | static netdev_tx_t ni52_send_packet(struct sk_buff *skb, |
1177 | struct net_device *dev) | ||
1177 | { | 1178 | { |
1178 | int len, i; | 1179 | int len, i; |
1179 | #ifndef NO_NOPCOMMANDS | 1180 | #ifndef NO_NOPCOMMANDS |
diff --git a/drivers/net/ni65.c b/drivers/net/ni65.c index 81a061785898..752c2e4d9cf4 100644 --- a/drivers/net/ni65.c +++ b/drivers/net/ni65.c | |||
@@ -252,7 +252,8 @@ static void ni65_xmit_intr(struct net_device *dev,int); | |||
252 | static int ni65_open(struct net_device *dev); | 252 | static int ni65_open(struct net_device *dev); |
253 | static int ni65_lance_reinit(struct net_device *dev); | 253 | static int ni65_lance_reinit(struct net_device *dev); |
254 | static void ni65_init_lance(struct priv *p,unsigned char*,int,int); | 254 | static void ni65_init_lance(struct priv *p,unsigned char*,int,int); |
255 | static int ni65_send_packet(struct sk_buff *skb, struct net_device *dev); | 255 | static netdev_tx_t ni65_send_packet(struct sk_buff *skb, |
256 | struct net_device *dev); | ||
256 | static void ni65_timeout(struct net_device *dev); | 257 | static void ni65_timeout(struct net_device *dev); |
257 | static int ni65_close(struct net_device *dev); | 258 | static int ni65_close(struct net_device *dev); |
258 | static int ni65_alloc_buffer(struct net_device *dev); | 259 | static int ni65_alloc_buffer(struct net_device *dev); |
@@ -1157,7 +1158,8 @@ static void ni65_timeout(struct net_device *dev) | |||
1157 | * Send a packet | 1158 | * Send a packet |
1158 | */ | 1159 | */ |
1159 | 1160 | ||
1160 | static int ni65_send_packet(struct sk_buff *skb, struct net_device *dev) | 1161 | static netdev_tx_t ni65_send_packet(struct sk_buff *skb, |
1162 | struct net_device *dev) | ||
1161 | { | 1163 | { |
1162 | struct priv *p = dev->ml_priv; | 1164 | struct priv *p = dev->ml_priv; |
1163 | 1165 | ||
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 3ada7ea2abca..119fd4e04141 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -6657,7 +6657,8 @@ static u64 niu_compute_tx_flags(struct sk_buff *skb, struct ethhdr *ehdr, | |||
6657 | return ret; | 6657 | return ret; |
6658 | } | 6658 | } |
6659 | 6659 | ||
6660 | static int niu_start_xmit(struct sk_buff *skb, struct net_device *dev) | 6660 | static netdev_tx_t niu_start_xmit(struct sk_buff *skb, |
6661 | struct net_device *dev) | ||
6661 | { | 6662 | { |
6662 | struct niu *np = netdev_priv(dev); | 6663 | struct niu *np = netdev_priv(dev); |
6663 | unsigned long align, headroom; | 6664 | unsigned long align, headroom; |
diff --git a/drivers/net/ns83820.c b/drivers/net/ns83820.c index 1576ac07216e..c594e1946476 100644 --- a/drivers/net/ns83820.c +++ b/drivers/net/ns83820.c | |||
@@ -1077,7 +1077,8 @@ static void ns83820_cleanup_tx(struct ns83820 *dev) | |||
1077 | * while trying to track down a bug in either the zero copy code or | 1077 | * while trying to track down a bug in either the zero copy code or |
1078 | * the tx fifo (hence the MAX_FRAG_LEN). | 1078 | * the tx fifo (hence the MAX_FRAG_LEN). |
1079 | */ | 1079 | */ |
1080 | static int ns83820_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev) | 1080 | static netdev_tx_t ns83820_hard_start_xmit(struct sk_buff *skb, |
1081 | struct net_device *ndev) | ||
1081 | { | 1082 | { |
1082 | struct ns83820 *dev = PRIV(ndev); | 1083 | struct ns83820 *dev = PRIV(ndev); |
1083 | u32 free_idx, cmdsts, extsts; | 1084 | u32 free_idx, cmdsts, extsts; |
diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c index 6859442f1862..6d28b18e7e28 100644 --- a/drivers/net/pcnet32.c +++ b/drivers/net/pcnet32.c | |||
@@ -303,7 +303,8 @@ static int pcnet32_probe_pci(struct pci_dev *, const struct pci_device_id *); | |||
303 | static int pcnet32_probe1(unsigned long, int, struct pci_dev *); | 303 | static int pcnet32_probe1(unsigned long, int, struct pci_dev *); |
304 | static int pcnet32_open(struct net_device *); | 304 | static int pcnet32_open(struct net_device *); |
305 | static int pcnet32_init_ring(struct net_device *); | 305 | static int pcnet32_init_ring(struct net_device *); |
306 | static int pcnet32_start_xmit(struct sk_buff *, struct net_device *); | 306 | static netdev_tx_t pcnet32_start_xmit(struct sk_buff *, |
307 | struct net_device *); | ||
307 | static void pcnet32_tx_timeout(struct net_device *dev); | 308 | static void pcnet32_tx_timeout(struct net_device *dev); |
308 | static irqreturn_t pcnet32_interrupt(int, void *); | 309 | static irqreturn_t pcnet32_interrupt(int, void *); |
309 | static int pcnet32_close(struct net_device *); | 310 | static int pcnet32_close(struct net_device *); |
@@ -2481,7 +2482,8 @@ static void pcnet32_tx_timeout(struct net_device *dev) | |||
2481 | spin_unlock_irqrestore(&lp->lock, flags); | 2482 | spin_unlock_irqrestore(&lp->lock, flags); |
2482 | } | 2483 | } |
2483 | 2484 | ||
2484 | static int pcnet32_start_xmit(struct sk_buff *skb, struct net_device *dev) | 2485 | static netdev_tx_t pcnet32_start_xmit(struct sk_buff *skb, |
2486 | struct net_device *dev) | ||
2485 | { | 2487 | { |
2486 | struct pcnet32_private *lp = netdev_priv(dev); | 2488 | struct pcnet32_private *lp = netdev_priv(dev); |
2487 | unsigned long ioaddr = dev->base_addr; | 2489 | unsigned long ioaddr = dev->base_addr; |
diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c index 3e4b67aaa6ea..4c610511eb40 100644 --- a/drivers/net/qla3xxx.c +++ b/drivers/net/qla3xxx.c | |||
@@ -2572,7 +2572,8 @@ map_error: | |||
2572 | * The IOCB is always the top of the chain followed by one or more | 2572 | * The IOCB is always the top of the chain followed by one or more |
2573 | * OALs (when necessary). | 2573 | * OALs (when necessary). |
2574 | */ | 2574 | */ |
2575 | static int ql3xxx_send(struct sk_buff *skb, struct net_device *ndev) | 2575 | static netdev_tx_t ql3xxx_send(struct sk_buff *skb, |
2576 | struct net_device *ndev) | ||
2576 | { | 2577 | { |
2577 | struct ql3_adapter *qdev = (struct ql3_adapter *)netdev_priv(ndev); | 2578 | struct ql3_adapter *qdev = (struct ql3_adapter *)netdev_priv(ndev); |
2578 | struct ql3xxx_port_registers __iomem *port_regs = qdev->mem_map_registers; | 2579 | struct ql3xxx_port_registers __iomem *port_regs = qdev->mem_map_registers; |
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index 8dd266befdc7..220529257828 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c | |||
@@ -2103,7 +2103,7 @@ static void ql_hw_csum_setup(struct sk_buff *skb, | |||
2103 | iph->daddr, len, iph->protocol, 0); | 2103 | iph->daddr, len, iph->protocol, 0); |
2104 | } | 2104 | } |
2105 | 2105 | ||
2106 | static int qlge_send(struct sk_buff *skb, struct net_device *ndev) | 2106 | static netdev_tx_t qlge_send(struct sk_buff *skb, struct net_device *ndev) |
2107 | { | 2107 | { |
2108 | struct tx_ring_desc *tx_ring_desc; | 2108 | struct tx_ring_desc *tx_ring_desc; |
2109 | struct ob_mac_iocb_req *mac_iocb_ptr; | 2109 | struct ob_mac_iocb_req *mac_iocb_ptr; |
diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c index 8068a07eb2b3..7dfcb58b0eb4 100644 --- a/drivers/net/r6040.c +++ b/drivers/net/r6040.c | |||
@@ -883,13 +883,13 @@ static int r6040_open(struct net_device *dev) | |||
883 | return 0; | 883 | return 0; |
884 | } | 884 | } |
885 | 885 | ||
886 | static int r6040_start_xmit(struct sk_buff *skb, struct net_device *dev) | 886 | static netdev_tx_t r6040_start_xmit(struct sk_buff *skb, |
887 | struct net_device *dev) | ||
887 | { | 888 | { |
888 | struct r6040_private *lp = netdev_priv(dev); | 889 | struct r6040_private *lp = netdev_priv(dev); |
889 | struct r6040_descriptor *descptr; | 890 | struct r6040_descriptor *descptr; |
890 | void __iomem *ioaddr = lp->base; | 891 | void __iomem *ioaddr = lp->base; |
891 | unsigned long flags; | 892 | unsigned long flags; |
892 | int ret = NETDEV_TX_OK; | ||
893 | 893 | ||
894 | /* Critical Section */ | 894 | /* Critical Section */ |
895 | spin_lock_irqsave(&lp->lock, flags); | 895 | spin_lock_irqsave(&lp->lock, flags); |
@@ -899,8 +899,7 @@ static int r6040_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
899 | spin_unlock_irqrestore(&lp->lock, flags); | 899 | spin_unlock_irqrestore(&lp->lock, flags); |
900 | netif_stop_queue(dev); | 900 | netif_stop_queue(dev); |
901 | printk(KERN_ERR DRV_NAME ": no tx descriptor\n"); | 901 | printk(KERN_ERR DRV_NAME ": no tx descriptor\n"); |
902 | ret = NETDEV_TX_BUSY; | 902 | return NETDEV_TX_BUSY; |
903 | return ret; | ||
904 | } | 903 | } |
905 | 904 | ||
906 | /* Statistic Counter */ | 905 | /* Statistic Counter */ |
@@ -928,7 +927,8 @@ static int r6040_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
928 | 927 | ||
929 | dev->trans_start = jiffies; | 928 | dev->trans_start = jiffies; |
930 | spin_unlock_irqrestore(&lp->lock, flags); | 929 | spin_unlock_irqrestore(&lp->lock, flags); |
931 | return ret; | 930 | |
931 | return NETDEV_TX_OK; | ||
932 | } | 932 | } |
933 | 933 | ||
934 | static void r6040_multicast_list(struct net_device *dev) | 934 | static void r6040_multicast_list(struct net_device *dev) |
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 8cd85309c675..ec0092affd5d 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c | |||
@@ -507,7 +507,8 @@ MODULE_LICENSE("GPL"); | |||
507 | MODULE_VERSION(RTL8169_VERSION); | 507 | MODULE_VERSION(RTL8169_VERSION); |
508 | 508 | ||
509 | static int rtl8169_open(struct net_device *dev); | 509 | static int rtl8169_open(struct net_device *dev); |
510 | static int rtl8169_start_xmit(struct sk_buff *skb, struct net_device *dev); | 510 | static netdev_tx_t rtl8169_start_xmit(struct sk_buff *skb, |
511 | struct net_device *dev); | ||
511 | static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance); | 512 | static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance); |
512 | static int rtl8169_init_ring(struct net_device *dev); | 513 | static int rtl8169_init_ring(struct net_device *dev); |
513 | static void rtl_hw_start(struct net_device *dev); | 514 | static void rtl_hw_start(struct net_device *dev); |
@@ -3357,7 +3358,8 @@ static inline u32 rtl8169_tso_csum(struct sk_buff *skb, struct net_device *dev) | |||
3357 | return 0; | 3358 | return 0; |
3358 | } | 3359 | } |
3359 | 3360 | ||
3360 | static int rtl8169_start_xmit(struct sk_buff *skb, struct net_device *dev) | 3361 | static netdev_tx_t rtl8169_start_xmit(struct sk_buff *skb, |
3362 | struct net_device *dev) | ||
3361 | { | 3363 | { |
3362 | struct rtl8169_private *tp = netdev_priv(dev); | 3364 | struct rtl8169_private *tp = netdev_priv(dev); |
3363 | unsigned int frags, entry = tp->cur_tx % NUM_TX_DESC; | 3365 | unsigned int frags, entry = tp->cur_tx % NUM_TX_DESC; |
@@ -3366,7 +3368,6 @@ static int rtl8169_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
3366 | dma_addr_t mapping; | 3368 | dma_addr_t mapping; |
3367 | u32 status, len; | 3369 | u32 status, len; |
3368 | u32 opts1; | 3370 | u32 opts1; |
3369 | int ret = NETDEV_TX_OK; | ||
3370 | 3371 | ||
3371 | if (unlikely(TX_BUFFS_AVAIL(tp) < skb_shinfo(skb)->nr_frags)) { | 3372 | if (unlikely(TX_BUFFS_AVAIL(tp) < skb_shinfo(skb)->nr_frags)) { |
3372 | if (netif_msg_drv(tp)) { | 3373 | if (netif_msg_drv(tp)) { |
@@ -3418,13 +3419,12 @@ static int rtl8169_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
3418 | } | 3419 | } |
3419 | 3420 | ||
3420 | out: | 3421 | out: |
3421 | return ret; | 3422 | return NETDEV_TX_OK; |
3422 | 3423 | ||
3423 | err_stop: | 3424 | err_stop: |
3424 | netif_stop_queue(dev); | 3425 | netif_stop_queue(dev); |
3425 | ret = NETDEV_TX_BUSY; | ||
3426 | dev->stats.tx_dropped++; | 3426 | dev->stats.tx_dropped++; |
3427 | goto out; | 3427 | return NETDEV_TX_BUSY; |
3428 | } | 3428 | } |
3429 | 3429 | ||
3430 | static void rtl8169_pcierr_interrupt(struct net_device *dev) | 3430 | static void rtl8169_pcierr_interrupt(struct net_device *dev) |
diff --git a/drivers/net/rrunner.c b/drivers/net/rrunner.c index d95534655911..20a71749154a 100644 --- a/drivers/net/rrunner.c +++ b/drivers/net/rrunner.c | |||
@@ -1401,7 +1401,8 @@ static int rr_close(struct net_device *dev) | |||
1401 | } | 1401 | } |
1402 | 1402 | ||
1403 | 1403 | ||
1404 | static int rr_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1404 | static netdev_tx_t rr_start_xmit(struct sk_buff *skb, |
1405 | struct net_device *dev) | ||
1405 | { | 1406 | { |
1406 | struct rr_private *rrpriv = netdev_priv(dev); | 1407 | struct rr_private *rrpriv = netdev_priv(dev); |
1407 | struct rr_regs __iomem *regs = rrpriv->regs; | 1408 | struct rr_regs __iomem *regs = rrpriv->regs; |
diff --git a/drivers/net/rrunner.h b/drivers/net/rrunner.h index 6173f11218df..28169043ae49 100644 --- a/drivers/net/rrunner.h +++ b/drivers/net/rrunner.h | |||
@@ -831,7 +831,8 @@ static int rr_init1(struct net_device *dev); | |||
831 | static irqreturn_t rr_interrupt(int irq, void *dev_id); | 831 | static irqreturn_t rr_interrupt(int irq, void *dev_id); |
832 | 832 | ||
833 | static int rr_open(struct net_device *dev); | 833 | static int rr_open(struct net_device *dev); |
834 | static int rr_start_xmit(struct sk_buff *skb, struct net_device *dev); | 834 | static netdev_tx_t rr_start_xmit(struct sk_buff *skb, |
835 | struct net_device *dev); | ||
835 | static int rr_close(struct net_device *dev); | 836 | static int rr_close(struct net_device *dev); |
836 | static int rr_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 837 | static int rr_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
837 | static unsigned int rr_read_eeprom(struct rr_private *rrpriv, | 838 | static unsigned int rr_read_eeprom(struct rr_private *rrpriv, |
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index 3138df5773ee..ddccf5fa56b6 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c | |||
@@ -4072,7 +4072,7 @@ static int s2io_close(struct net_device *dev) | |||
4072 | * 0 on success & 1 on failure. | 4072 | * 0 on success & 1 on failure. |
4073 | */ | 4073 | */ |
4074 | 4074 | ||
4075 | static int s2io_xmit(struct sk_buff *skb, struct net_device *dev) | 4075 | static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev) |
4076 | { | 4076 | { |
4077 | struct s2io_nic *sp = netdev_priv(dev); | 4077 | struct s2io_nic *sp = netdev_priv(dev); |
4078 | u16 frg_cnt, frg_len, i, queue, queue_len, put_off, get_off; | 4078 | u16 frg_cnt, frg_len, i, queue, queue_len, put_off, get_off; |
diff --git a/drivers/net/sb1000.c b/drivers/net/sb1000.c index 6a81aec645d9..ee366c5a8fa3 100644 --- a/drivers/net/sb1000.c +++ b/drivers/net/sb1000.c | |||
@@ -82,7 +82,8 @@ struct sb1000_private { | |||
82 | extern int sb1000_probe(struct net_device *dev); | 82 | extern int sb1000_probe(struct net_device *dev); |
83 | static int sb1000_open(struct net_device *dev); | 83 | static int sb1000_open(struct net_device *dev); |
84 | static int sb1000_dev_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd); | 84 | static int sb1000_dev_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd); |
85 | static int sb1000_start_xmit(struct sk_buff *skb, struct net_device *dev); | 85 | static netdev_tx_t sb1000_start_xmit(struct sk_buff *skb, |
86 | struct net_device *dev); | ||
86 | static irqreturn_t sb1000_interrupt(int irq, void *dev_id); | 87 | static irqreturn_t sb1000_interrupt(int irq, void *dev_id); |
87 | static int sb1000_close(struct net_device *dev); | 88 | static int sb1000_close(struct net_device *dev); |
88 | 89 | ||
@@ -1080,7 +1081,7 @@ static int sb1000_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | |||
1080 | } | 1081 | } |
1081 | 1082 | ||
1082 | /* transmit function: do nothing since SB1000 can't send anything out */ | 1083 | /* transmit function: do nothing since SB1000 can't send anything out */ |
1083 | static int | 1084 | static netdev_tx_t |
1084 | sb1000_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1085 | sb1000_start_xmit(struct sk_buff *skb, struct net_device *dev) |
1085 | { | 1086 | { |
1086 | printk(KERN_WARNING "%s: trying to transmit!!!\n", dev->name); | 1087 | printk(KERN_WARNING "%s: trying to transmit!!!\n", dev->name); |
diff --git a/drivers/net/sc92031.c b/drivers/net/sc92031.c index e3156c97bb58..8d6030022d14 100644 --- a/drivers/net/sc92031.c +++ b/drivers/net/sc92031.c | |||
@@ -941,7 +941,8 @@ static struct net_device_stats *sc92031_get_stats(struct net_device *dev) | |||
941 | return &dev->stats; | 941 | return &dev->stats; |
942 | } | 942 | } |
943 | 943 | ||
944 | static int sc92031_start_xmit(struct sk_buff *skb, struct net_device *dev) | 944 | static netdev_tx_t sc92031_start_xmit(struct sk_buff *skb, |
945 | struct net_device *dev) | ||
945 | { | 946 | { |
946 | struct sc92031_priv *priv = netdev_priv(dev); | 947 | struct sc92031_priv *priv = netdev_priv(dev); |
947 | void __iomem *port_base = priv->port_base; | 948 | void __iomem *port_base = priv->port_base; |
diff --git a/drivers/net/seeq8005.c b/drivers/net/seeq8005.c index 7cc8bb814137..39246d457ac2 100644 --- a/drivers/net/seeq8005.c +++ b/drivers/net/seeq8005.c | |||
@@ -81,7 +81,8 @@ struct net_local { | |||
81 | static int seeq8005_probe1(struct net_device *dev, int ioaddr); | 81 | static int seeq8005_probe1(struct net_device *dev, int ioaddr); |
82 | static int seeq8005_open(struct net_device *dev); | 82 | static int seeq8005_open(struct net_device *dev); |
83 | static void seeq8005_timeout(struct net_device *dev); | 83 | static void seeq8005_timeout(struct net_device *dev); |
84 | static int seeq8005_send_packet(struct sk_buff *skb, struct net_device *dev); | 84 | static netdev_tx_t seeq8005_send_packet(struct sk_buff *skb, |
85 | struct net_device *dev); | ||
85 | static irqreturn_t seeq8005_interrupt(int irq, void *dev_id); | 86 | static irqreturn_t seeq8005_interrupt(int irq, void *dev_id); |
86 | static void seeq8005_rx(struct net_device *dev); | 87 | static void seeq8005_rx(struct net_device *dev); |
87 | static int seeq8005_close(struct net_device *dev); | 88 | static int seeq8005_close(struct net_device *dev); |
@@ -394,7 +395,8 @@ static void seeq8005_timeout(struct net_device *dev) | |||
394 | netif_wake_queue(dev); | 395 | netif_wake_queue(dev); |
395 | } | 396 | } |
396 | 397 | ||
397 | static int seeq8005_send_packet(struct sk_buff *skb, struct net_device *dev) | 398 | static netdev_tx_t seeq8005_send_packet(struct sk_buff *skb, |
399 | struct net_device *dev) | ||
398 | { | 400 | { |
399 | short length = skb->len; | 401 | short length = skb->len; |
400 | unsigned char *buf; | 402 | unsigned char *buf; |
diff --git a/drivers/net/sfc/efx.h b/drivers/net/sfc/efx.h index da157aa74b83..aecaf62f4929 100644 --- a/drivers/net/sfc/efx.h +++ b/drivers/net/sfc/efx.h | |||
@@ -20,8 +20,9 @@ | |||
20 | #define FALCON_B_P_DEVID 0x0710 | 20 | #define FALCON_B_P_DEVID 0x0710 |
21 | 21 | ||
22 | /* TX */ | 22 | /* TX */ |
23 | extern int efx_xmit(struct efx_nic *efx, | 23 | extern netdev_tx_t efx_xmit(struct efx_nic *efx, |
24 | struct efx_tx_queue *tx_queue, struct sk_buff *skb); | 24 | struct efx_tx_queue *tx_queue, |
25 | struct sk_buff *skb); | ||
25 | extern void efx_stop_queue(struct efx_nic *efx); | 26 | extern void efx_stop_queue(struct efx_nic *efx); |
26 | extern void efx_wake_queue(struct efx_nic *efx); | 27 | extern void efx_wake_queue(struct efx_nic *efx); |
27 | 28 | ||
diff --git a/drivers/net/sfc/selftest.c b/drivers/net/sfc/selftest.c index b67ccca3fc1a..817c7efc11e0 100644 --- a/drivers/net/sfc/selftest.c +++ b/drivers/net/sfc/selftest.c | |||
@@ -400,7 +400,8 @@ static int efx_begin_loopback(struct efx_tx_queue *tx_queue) | |||
400 | struct efx_loopback_state *state = efx->loopback_selftest; | 400 | struct efx_loopback_state *state = efx->loopback_selftest; |
401 | struct efx_loopback_payload *payload; | 401 | struct efx_loopback_payload *payload; |
402 | struct sk_buff *skb; | 402 | struct sk_buff *skb; |
403 | int i, rc; | 403 | int i; |
404 | netdev_tx_t rc; | ||
404 | 405 | ||
405 | /* Transmit N copies of buffer */ | 406 | /* Transmit N copies of buffer */ |
406 | for (i = 0; i < state->packet_count; i++) { | 407 | for (i = 0; i < state->packet_count; i++) { |
diff --git a/drivers/net/sfc/tx.c b/drivers/net/sfc/tx.c index 14a14788566c..489c4de31447 100644 --- a/drivers/net/sfc/tx.c +++ b/drivers/net/sfc/tx.c | |||
@@ -138,8 +138,8 @@ static void efx_tsoh_free(struct efx_tx_queue *tx_queue, | |||
138 | * Returns NETDEV_TX_OK or NETDEV_TX_BUSY | 138 | * Returns NETDEV_TX_OK or NETDEV_TX_BUSY |
139 | * You must hold netif_tx_lock() to call this function. | 139 | * You must hold netif_tx_lock() to call this function. |
140 | */ | 140 | */ |
141 | static int efx_enqueue_skb(struct efx_tx_queue *tx_queue, | 141 | static netdev_tx_t efx_enqueue_skb(struct efx_tx_queue *tx_queue, |
142 | struct sk_buff *skb) | 142 | struct sk_buff *skb) |
143 | { | 143 | { |
144 | struct efx_nic *efx = tx_queue->efx; | 144 | struct efx_nic *efx = tx_queue->efx; |
145 | struct pci_dev *pci_dev = efx->pci_dev; | 145 | struct pci_dev *pci_dev = efx->pci_dev; |
@@ -152,7 +152,7 @@ static int efx_enqueue_skb(struct efx_tx_queue *tx_queue, | |||
152 | unsigned int dma_len; | 152 | unsigned int dma_len; |
153 | bool unmap_single; | 153 | bool unmap_single; |
154 | int q_space, i = 0; | 154 | int q_space, i = 0; |
155 | int rc = NETDEV_TX_OK; | 155 | netdev_tx_t rc = NETDEV_TX_OK; |
156 | 156 | ||
157 | EFX_BUG_ON_PARANOID(tx_queue->write_count != tx_queue->insert_count); | 157 | EFX_BUG_ON_PARANOID(tx_queue->write_count != tx_queue->insert_count); |
158 | 158 | ||
@@ -353,14 +353,11 @@ static void efx_dequeue_buffers(struct efx_tx_queue *tx_queue, | |||
353 | * | 353 | * |
354 | * Context: netif_tx_lock held | 354 | * Context: netif_tx_lock held |
355 | */ | 355 | */ |
356 | inline int efx_xmit(struct efx_nic *efx, | 356 | inline netdev_tx_t efx_xmit(struct efx_nic *efx, |
357 | struct efx_tx_queue *tx_queue, struct sk_buff *skb) | 357 | struct efx_tx_queue *tx_queue, struct sk_buff *skb) |
358 | { | 358 | { |
359 | int rc; | ||
360 | |||
361 | /* Map fragments for DMA and add to TX queue */ | 359 | /* Map fragments for DMA and add to TX queue */ |
362 | rc = efx_enqueue_skb(tx_queue, skb); | 360 | return efx_enqueue_skb(tx_queue, skb); |
363 | return rc; | ||
364 | } | 361 | } |
365 | 362 | ||
366 | /* Initiate a packet transmission. We use one channel per CPU | 363 | /* Initiate a packet transmission. We use one channel per CPU |
@@ -372,7 +369,8 @@ inline int efx_xmit(struct efx_nic *efx, | |||
372 | * Note that returning anything other than NETDEV_TX_OK will cause the | 369 | * Note that returning anything other than NETDEV_TX_OK will cause the |
373 | * OS to free the skb. | 370 | * OS to free the skb. |
374 | */ | 371 | */ |
375 | int efx_hard_start_xmit(struct sk_buff *skb, struct net_device *net_dev) | 372 | netdev_tx_t efx_hard_start_xmit(struct sk_buff *skb, |
373 | struct net_device *net_dev) | ||
376 | { | 374 | { |
377 | struct efx_nic *efx = netdev_priv(net_dev); | 375 | struct efx_nic *efx = netdev_priv(net_dev); |
378 | struct efx_tx_queue *tx_queue; | 376 | struct efx_tx_queue *tx_queue; |
diff --git a/drivers/net/sfc/tx.h b/drivers/net/sfc/tx.h index 5e1cc234e42f..e3678962a5b4 100644 --- a/drivers/net/sfc/tx.h +++ b/drivers/net/sfc/tx.h | |||
@@ -18,7 +18,8 @@ void efx_remove_tx_queue(struct efx_tx_queue *tx_queue); | |||
18 | void efx_init_tx_queue(struct efx_tx_queue *tx_queue); | 18 | void efx_init_tx_queue(struct efx_tx_queue *tx_queue); |
19 | void efx_fini_tx_queue(struct efx_tx_queue *tx_queue); | 19 | void efx_fini_tx_queue(struct efx_tx_queue *tx_queue); |
20 | 20 | ||
21 | int efx_hard_start_xmit(struct sk_buff *skb, struct net_device *net_dev); | 21 | netdev_tx_t efx_hard_start_xmit(struct sk_buff *skb, |
22 | struct net_device *net_dev); | ||
22 | void efx_release_tx_buffers(struct efx_tx_queue *tx_queue); | 23 | void efx_release_tx_buffers(struct efx_tx_queue *tx_queue); |
23 | 24 | ||
24 | #endif /* EFX_TX_H */ | 25 | #endif /* EFX_TX_H */ |
diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c index 1f040e8a000b..7cc9898f4e00 100644 --- a/drivers/net/sis190.c +++ b/drivers/net/sis190.c | |||
@@ -1168,7 +1168,8 @@ static int sis190_close(struct net_device *dev) | |||
1168 | return 0; | 1168 | return 0; |
1169 | } | 1169 | } |
1170 | 1170 | ||
1171 | static int sis190_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1171 | static netdev_tx_t sis190_start_xmit(struct sk_buff *skb, |
1172 | struct net_device *dev) | ||
1172 | { | 1173 | { |
1173 | struct sis190_private *tp = netdev_priv(dev); | 1174 | struct sis190_private *tp = netdev_priv(dev); |
1174 | void __iomem *ioaddr = tp->mmio_addr; | 1175 | void __iomem *ioaddr = tp->mmio_addr; |
diff --git a/drivers/net/sis900.c b/drivers/net/sis900.c index 61ceeaaf104d..d8827323507a 100644 --- a/drivers/net/sis900.c +++ b/drivers/net/sis900.c | |||
@@ -214,7 +214,8 @@ static void sis900_check_mode (struct net_device *net_dev, struct mii_phy *mii_p | |||
214 | static void sis900_tx_timeout(struct net_device *net_dev); | 214 | static void sis900_tx_timeout(struct net_device *net_dev); |
215 | static void sis900_init_tx_ring(struct net_device *net_dev); | 215 | static void sis900_init_tx_ring(struct net_device *net_dev); |
216 | static void sis900_init_rx_ring(struct net_device *net_dev); | 216 | static void sis900_init_rx_ring(struct net_device *net_dev); |
217 | static int sis900_start_xmit(struct sk_buff *skb, struct net_device *net_dev); | 217 | static netdev_tx_t sis900_start_xmit(struct sk_buff *skb, |
218 | struct net_device *net_dev); | ||
218 | static int sis900_rx(struct net_device *net_dev); | 219 | static int sis900_rx(struct net_device *net_dev); |
219 | static void sis900_finish_xmit (struct net_device *net_dev); | 220 | static void sis900_finish_xmit (struct net_device *net_dev); |
220 | static irqreturn_t sis900_interrupt(int irq, void *dev_instance); | 221 | static irqreturn_t sis900_interrupt(int irq, void *dev_instance); |
@@ -1571,7 +1572,7 @@ static void sis900_tx_timeout(struct net_device *net_dev) | |||
1571 | * tell upper layer if the buffer is full | 1572 | * tell upper layer if the buffer is full |
1572 | */ | 1573 | */ |
1573 | 1574 | ||
1574 | static int | 1575 | static netdev_tx_t |
1575 | sis900_start_xmit(struct sk_buff *skb, struct net_device *net_dev) | 1576 | sis900_start_xmit(struct sk_buff *skb, struct net_device *net_dev) |
1576 | { | 1577 | { |
1577 | struct sis900_private *sis_priv = netdev_priv(net_dev); | 1578 | struct sis900_private *sis_priv = netdev_priv(net_dev); |
diff --git a/drivers/net/skfp/skfddi.c b/drivers/net/skfp/skfddi.c index 888a14a045ef..38a508b4aad9 100644 --- a/drivers/net/skfp/skfddi.c +++ b/drivers/net/skfp/skfddi.c | |||
@@ -107,7 +107,8 @@ static void skfp_ctl_set_multicast_list(struct net_device *dev); | |||
107 | static void skfp_ctl_set_multicast_list_wo_lock(struct net_device *dev); | 107 | static void skfp_ctl_set_multicast_list_wo_lock(struct net_device *dev); |
108 | static int skfp_ctl_set_mac_address(struct net_device *dev, void *addr); | 108 | static int skfp_ctl_set_mac_address(struct net_device *dev, void *addr); |
109 | static int skfp_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 109 | static int skfp_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
110 | static int skfp_send_pkt(struct sk_buff *skb, struct net_device *dev); | 110 | static netdev_tx_t skfp_send_pkt(struct sk_buff *skb, |
111 | struct net_device *dev); | ||
111 | static void send_queued_packets(struct s_smc *smc); | 112 | static void send_queued_packets(struct s_smc *smc); |
112 | static void CheckSourceAddress(unsigned char *frame, unsigned char *hw_addr); | 113 | static void CheckSourceAddress(unsigned char *frame, unsigned char *hw_addr); |
113 | static void ResetAdapter(struct s_smc *smc); | 114 | static void ResetAdapter(struct s_smc *smc); |
@@ -1056,7 +1057,8 @@ static int skfp_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | |||
1056 | * Side Effects: | 1057 | * Side Effects: |
1057 | * None | 1058 | * None |
1058 | */ | 1059 | */ |
1059 | static int skfp_send_pkt(struct sk_buff *skb, struct net_device *dev) | 1060 | static netdev_tx_t skfp_send_pkt(struct sk_buff *skb, |
1061 | struct net_device *dev) | ||
1060 | { | 1062 | { |
1061 | struct s_smc *smc = netdev_priv(dev); | 1063 | struct s_smc *smc = netdev_priv(dev); |
1062 | skfddi_priv *bp = &smc->os; | 1064 | skfddi_priv *bp = &smc->os; |
diff --git a/drivers/net/skge.c b/drivers/net/skge.c index 543af2044f40..1a1e68549f5c 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c | |||
@@ -2746,7 +2746,8 @@ static inline int skge_avail(const struct skge_ring *ring) | |||
2746 | + (ring->to_clean - ring->to_use) - 1; | 2746 | + (ring->to_clean - ring->to_use) - 1; |
2747 | } | 2747 | } |
2748 | 2748 | ||
2749 | static int skge_xmit_frame(struct sk_buff *skb, struct net_device *dev) | 2749 | static netdev_tx_t skge_xmit_frame(struct sk_buff *skb, |
2750 | struct net_device *dev) | ||
2750 | { | 2751 | { |
2751 | struct skge_port *skge = netdev_priv(dev); | 2752 | struct skge_port *skge = netdev_priv(dev); |
2752 | struct skge_hw *hw = skge->hw; | 2753 | struct skge_hw *hw = skge->hw; |
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index dd630cf18b4d..c7c0a5b7b53a 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -1574,7 +1574,8 @@ static void sky2_tx_unmap(struct pci_dev *pdev, | |||
1574 | * the number of ring elements will probably be less than the number | 1574 | * the number of ring elements will probably be less than the number |
1575 | * of list elements used. | 1575 | * of list elements used. |
1576 | */ | 1576 | */ |
1577 | static int sky2_xmit_frame(struct sk_buff *skb, struct net_device *dev) | 1577 | static netdev_tx_t sky2_xmit_frame(struct sk_buff *skb, |
1578 | struct net_device *dev) | ||
1578 | { | 1579 | { |
1579 | struct sky2_port *sky2 = netdev_priv(dev); | 1580 | struct sky2_port *sky2 = netdev_priv(dev); |
1580 | struct sky2_hw *hw = sky2->hw; | 1581 | struct sky2_hw *hw = sky2->hw; |
diff --git a/drivers/net/smc9194.c b/drivers/net/smc9194.c index 0a1b6f401087..934a12012829 100644 --- a/drivers/net/smc9194.c +++ b/drivers/net/smc9194.c | |||
@@ -299,7 +299,8 @@ static void smc_hardware_send_packet( struct net_device * dev ); | |||
299 | . to store the packet, I call this routine, which either sends it | 299 | . to store the packet, I call this routine, which either sends it |
300 | . now, or generates an interrupt when the card is ready for the | 300 | . now, or generates an interrupt when the card is ready for the |
301 | . packet */ | 301 | . packet */ |
302 | static int smc_wait_to_send_packet( struct sk_buff * skb, struct net_device *dev ); | 302 | static netdev_tx_t smc_wait_to_send_packet( struct sk_buff * skb, |
303 | struct net_device *dev ); | ||
303 | 304 | ||
304 | /* this does a soft reset on the device */ | 305 | /* this does a soft reset on the device */ |
305 | static void smc_reset( int ioaddr ); | 306 | static void smc_reset( int ioaddr ); |
@@ -487,7 +488,8 @@ static void smc_setmulticast( int ioaddr, int count, struct dev_mc_list * addrs | |||
487 | . o (NO): Enable interrupts and let the interrupt handler deal with it. | 488 | . o (NO): Enable interrupts and let the interrupt handler deal with it. |
488 | . o (YES):Send it now. | 489 | . o (YES):Send it now. |
489 | */ | 490 | */ |
490 | static int smc_wait_to_send_packet( struct sk_buff * skb, struct net_device * dev ) | 491 | static netdev_tx_t smc_wait_to_send_packet(struct sk_buff *skb, |
492 | struct net_device *dev) | ||
491 | { | 493 | { |
492 | struct smc_local *lp = netdev_priv(dev); | 494 | struct smc_local *lp = netdev_priv(dev); |
493 | unsigned int ioaddr = dev->base_addr; | 495 | unsigned int ioaddr = dev->base_addr; |
diff --git a/drivers/net/smsc9420.c b/drivers/net/smsc9420.c index 60abdb1081ad..514311d67b36 100644 --- a/drivers/net/smsc9420.c +++ b/drivers/net/smsc9420.c | |||
@@ -968,7 +968,8 @@ static void smsc9420_complete_tx(struct net_device *dev) | |||
968 | } | 968 | } |
969 | } | 969 | } |
970 | 970 | ||
971 | static int smsc9420_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | 971 | static netdev_tx_t smsc9420_hard_start_xmit(struct sk_buff *skb, |
972 | struct net_device *dev) | ||
972 | { | 973 | { |
973 | struct smsc9420_pdata *pd = netdev_priv(dev); | 974 | struct smsc9420_pdata *pd = netdev_priv(dev); |
974 | dma_addr_t mapping; | 975 | dma_addr_t mapping; |
diff --git a/drivers/net/starfire.c b/drivers/net/starfire.c index 5e7645ee8ab0..a36e2b51e88c 100644 --- a/drivers/net/starfire.c +++ b/drivers/net/starfire.c | |||
@@ -595,7 +595,7 @@ static int netdev_open(struct net_device *dev); | |||
595 | static void check_duplex(struct net_device *dev); | 595 | static void check_duplex(struct net_device *dev); |
596 | static void tx_timeout(struct net_device *dev); | 596 | static void tx_timeout(struct net_device *dev); |
597 | static void init_ring(struct net_device *dev); | 597 | static void init_ring(struct net_device *dev); |
598 | static int start_tx(struct sk_buff *skb, struct net_device *dev); | 598 | static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev); |
599 | static irqreturn_t intr_handler(int irq, void *dev_instance); | 599 | static irqreturn_t intr_handler(int irq, void *dev_instance); |
600 | static void netdev_error(struct net_device *dev, int intr_status); | 600 | static void netdev_error(struct net_device *dev, int intr_status); |
601 | static int __netdev_rx(struct net_device *dev, int *quota); | 601 | static int __netdev_rx(struct net_device *dev, int *quota); |
@@ -1223,7 +1223,7 @@ static void init_ring(struct net_device *dev) | |||
1223 | } | 1223 | } |
1224 | 1224 | ||
1225 | 1225 | ||
1226 | static int start_tx(struct sk_buff *skb, struct net_device *dev) | 1226 | static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev) |
1227 | { | 1227 | { |
1228 | struct netdev_private *np = netdev_priv(dev); | 1228 | struct netdev_private *np = netdev_priv(dev); |
1229 | unsigned int entry; | 1229 | unsigned int entry; |
diff --git a/drivers/net/sundance.c b/drivers/net/sundance.c index d09be481bcc4..e13685a570f4 100644 --- a/drivers/net/sundance.c +++ b/drivers/net/sundance.c | |||
@@ -415,7 +415,7 @@ static void check_duplex(struct net_device *dev); | |||
415 | static void netdev_timer(unsigned long data); | 415 | static void netdev_timer(unsigned long data); |
416 | static void tx_timeout(struct net_device *dev); | 416 | static void tx_timeout(struct net_device *dev); |
417 | static void init_ring(struct net_device *dev); | 417 | static void init_ring(struct net_device *dev); |
418 | static int start_tx(struct sk_buff *skb, struct net_device *dev); | 418 | static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev); |
419 | static int reset_tx (struct net_device *dev); | 419 | static int reset_tx (struct net_device *dev); |
420 | static irqreturn_t intr_handler(int irq, void *dev_instance); | 420 | static irqreturn_t intr_handler(int irq, void *dev_instance); |
421 | static void rx_poll(unsigned long data); | 421 | static void rx_poll(unsigned long data); |
@@ -1053,7 +1053,7 @@ static void tx_poll (unsigned long data) | |||
1053 | return; | 1053 | return; |
1054 | } | 1054 | } |
1055 | 1055 | ||
1056 | static int | 1056 | static netdev_tx_t |
1057 | start_tx (struct sk_buff *skb, struct net_device *dev) | 1057 | start_tx (struct sk_buff *skb, struct net_device *dev) |
1058 | { | 1058 | { |
1059 | struct netdev_private *np = netdev_priv(dev); | 1059 | struct netdev_private *np = netdev_priv(dev); |
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c index d2dfe0ab5106..e0dfdd246470 100644 --- a/drivers/net/sungem.c +++ b/drivers/net/sungem.c | |||
@@ -1015,7 +1015,8 @@ static __inline__ int gem_intme(int entry) | |||
1015 | return 0; | 1015 | return 0; |
1016 | } | 1016 | } |
1017 | 1017 | ||
1018 | static int gem_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1018 | static netdev_tx_t gem_start_xmit(struct sk_buff *skb, |
1019 | struct net_device *dev) | ||
1019 | { | 1020 | { |
1020 | struct gem *gp = netdev_priv(dev); | 1021 | struct gem *gp = netdev_priv(dev); |
1021 | int entry; | 1022 | int entry; |
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c index 008bd59fc64b..37d721bbdb35 100644 --- a/drivers/net/sunhme.c +++ b/drivers/net/sunhme.c | |||
@@ -2252,7 +2252,8 @@ static void happy_meal_tx_timeout(struct net_device *dev) | |||
2252 | netif_wake_queue(dev); | 2252 | netif_wake_queue(dev); |
2253 | } | 2253 | } |
2254 | 2254 | ||
2255 | static int happy_meal_start_xmit(struct sk_buff *skb, struct net_device *dev) | 2255 | static netdev_tx_t happy_meal_start_xmit(struct sk_buff *skb, |
2256 | struct net_device *dev) | ||
2256 | { | 2257 | { |
2257 | struct happy_meal *hp = netdev_priv(dev); | 2258 | struct happy_meal *hp = netdev_priv(dev); |
2258 | int entry; | 2259 | int entry; |
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c index 3c2679cd196b..918d4c9e49b3 100644 --- a/drivers/net/tehuti.c +++ b/drivers/net/tehuti.c | |||
@@ -1622,7 +1622,8 @@ static inline int bdx_tx_space(struct bdx_priv *priv) | |||
1622 | * the driver. Note: the driver must NOT put the skb in its DMA ring. | 1622 | * the driver. Note: the driver must NOT put the skb in its DMA ring. |
1623 | * o NETDEV_TX_LOCKED Locking failed, please retry quickly. | 1623 | * o NETDEV_TX_LOCKED Locking failed, please retry quickly. |
1624 | */ | 1624 | */ |
1625 | static int bdx_tx_transmit(struct sk_buff *skb, struct net_device *ndev) | 1625 | static netdev_tx_t bdx_tx_transmit(struct sk_buff *skb, |
1626 | struct net_device *ndev) | ||
1626 | { | 1627 | { |
1627 | struct bdx_priv *priv = netdev_priv(ndev); | 1628 | struct bdx_priv *priv = netdev_priv(ndev); |
1628 | struct txd_fifo *f = &priv->txd_fifo0; | 1629 | struct txd_fifo *f = &priv->txd_fifo0; |
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index a7d14aae258a..9d5c1786c664 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -5135,7 +5135,8 @@ static void tg3_set_txd(struct tg3_napi *tnapi, int entry, | |||
5135 | /* hard_start_xmit for devices that don't have any bugs and | 5135 | /* hard_start_xmit for devices that don't have any bugs and |
5136 | * support TG3_FLG2_HW_TSO_2 only. | 5136 | * support TG3_FLG2_HW_TSO_2 only. |
5137 | */ | 5137 | */ |
5138 | static int tg3_start_xmit(struct sk_buff *skb, struct net_device *dev) | 5138 | static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, |
5139 | struct net_device *dev) | ||
5139 | { | 5140 | { |
5140 | struct tg3 *tp = netdev_priv(dev); | 5141 | struct tg3 *tp = netdev_priv(dev); |
5141 | u32 len, entry, base_flags, mss; | 5142 | u32 len, entry, base_flags, mss; |
@@ -5251,7 +5252,8 @@ out_unlock: | |||
5251 | return NETDEV_TX_OK; | 5252 | return NETDEV_TX_OK; |
5252 | } | 5253 | } |
5253 | 5254 | ||
5254 | static int tg3_start_xmit_dma_bug(struct sk_buff *, struct net_device *); | 5255 | static netdev_tx_t tg3_start_xmit_dma_bug(struct sk_buff *, |
5256 | struct net_device *); | ||
5255 | 5257 | ||
5256 | /* Use GSO to workaround a rare TSO bug that may be triggered when the | 5258 | /* Use GSO to workaround a rare TSO bug that may be triggered when the |
5257 | * TSO header is greater than 80 bytes. | 5259 | * TSO header is greater than 80 bytes. |
@@ -5290,7 +5292,8 @@ tg3_tso_bug_end: | |||
5290 | /* hard_start_xmit for devices that have the 4G bug and/or 40-bit bug and | 5292 | /* hard_start_xmit for devices that have the 4G bug and/or 40-bit bug and |
5291 | * support TG3_FLG2_HW_TSO_1 or firmware TSO only. | 5293 | * support TG3_FLG2_HW_TSO_1 or firmware TSO only. |
5292 | */ | 5294 | */ |
5293 | static int tg3_start_xmit_dma_bug(struct sk_buff *skb, struct net_device *dev) | 5295 | static netdev_tx_t tg3_start_xmit_dma_bug(struct sk_buff *skb, |
5296 | struct net_device *dev) | ||
5294 | { | 5297 | { |
5295 | struct tg3 *tp = netdev_priv(dev); | 5298 | struct tg3 *tp = netdev_priv(dev); |
5296 | u32 len, entry, base_flags, mss; | 5299 | u32 len, entry, base_flags, mss; |
diff --git a/drivers/net/tlan.c b/drivers/net/tlan.c index 70c9ec45d8fb..49e273bceed6 100644 --- a/drivers/net/tlan.c +++ b/drivers/net/tlan.c | |||
@@ -289,7 +289,7 @@ static void TLan_EisaProbe( void ); | |||
289 | static void TLan_Eisa_Cleanup( void ); | 289 | static void TLan_Eisa_Cleanup( void ); |
290 | static int TLan_Init( struct net_device * ); | 290 | static int TLan_Init( struct net_device * ); |
291 | static int TLan_Open( struct net_device *dev ); | 291 | static int TLan_Open( struct net_device *dev ); |
292 | static int TLan_StartTx( struct sk_buff *, struct net_device *); | 292 | static netdev_tx_t TLan_StartTx( struct sk_buff *, struct net_device *); |
293 | static irqreturn_t TLan_HandleInterrupt( int, void *); | 293 | static irqreturn_t TLan_HandleInterrupt( int, void *); |
294 | static int TLan_Close( struct net_device *); | 294 | static int TLan_Close( struct net_device *); |
295 | static struct net_device_stats *TLan_GetStats( struct net_device *); | 295 | static struct net_device_stats *TLan_GetStats( struct net_device *); |
@@ -1083,7 +1083,7 @@ static void TLan_tx_timeout_work(struct work_struct *work) | |||
1083 | * | 1083 | * |
1084 | **************************************************************/ | 1084 | **************************************************************/ |
1085 | 1085 | ||
1086 | static int TLan_StartTx( struct sk_buff *skb, struct net_device *dev ) | 1086 | static netdev_tx_t TLan_StartTx( struct sk_buff *skb, struct net_device *dev ) |
1087 | { | 1087 | { |
1088 | TLanPrivateInfo *priv = netdev_priv(dev); | 1088 | TLanPrivateInfo *priv = netdev_priv(dev); |
1089 | dma_addr_t tail_list_phys; | 1089 | dma_addr_t tail_list_phys; |
diff --git a/drivers/net/typhoon.c b/drivers/net/typhoon.c index 2c26b4577e8a..d6d345229fe9 100644 --- a/drivers/net/typhoon.c +++ b/drivers/net/typhoon.c | |||
@@ -762,7 +762,7 @@ typhoon_tso_fill(struct sk_buff *skb, struct transmit_ring *txRing, | |||
762 | tcpd->status = 0; | 762 | tcpd->status = 0; |
763 | } | 763 | } |
764 | 764 | ||
765 | static int | 765 | static netdev_tx_t |
766 | typhoon_start_tx(struct sk_buff *skb, struct net_device *dev) | 766 | typhoon_start_tx(struct sk_buff *skb, struct net_device *dev) |
767 | { | 767 | { |
768 | struct typhoon *tp = netdev_priv(dev); | 768 | struct typhoon *tp = netdev_priv(dev); |
diff --git a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c index 46eb618bbc90..081402cb05fd 100644 --- a/drivers/net/via-rhine.c +++ b/drivers/net/via-rhine.c | |||
@@ -408,7 +408,8 @@ static int mdio_read(struct net_device *dev, int phy_id, int location); | |||
408 | static void mdio_write(struct net_device *dev, int phy_id, int location, int value); | 408 | static void mdio_write(struct net_device *dev, int phy_id, int location, int value); |
409 | static int rhine_open(struct net_device *dev); | 409 | static int rhine_open(struct net_device *dev); |
410 | static void rhine_tx_timeout(struct net_device *dev); | 410 | static void rhine_tx_timeout(struct net_device *dev); |
411 | static int rhine_start_tx(struct sk_buff *skb, struct net_device *dev); | 411 | static netdev_tx_t rhine_start_tx(struct sk_buff *skb, |
412 | struct net_device *dev); | ||
412 | static irqreturn_t rhine_interrupt(int irq, void *dev_instance); | 413 | static irqreturn_t rhine_interrupt(int irq, void *dev_instance); |
413 | static void rhine_tx(struct net_device *dev); | 414 | static void rhine_tx(struct net_device *dev); |
414 | static int rhine_rx(struct net_device *dev, int limit); | 415 | static int rhine_rx(struct net_device *dev, int limit); |
@@ -1213,7 +1214,8 @@ static void rhine_tx_timeout(struct net_device *dev) | |||
1213 | netif_wake_queue(dev); | 1214 | netif_wake_queue(dev); |
1214 | } | 1215 | } |
1215 | 1216 | ||
1216 | static int rhine_start_tx(struct sk_buff *skb, struct net_device *dev) | 1217 | static netdev_tx_t rhine_start_tx(struct sk_buff *skb, |
1218 | struct net_device *dev) | ||
1217 | { | 1219 | { |
1218 | struct rhine_private *rp = netdev_priv(dev); | 1220 | struct rhine_private *rp = netdev_priv(dev); |
1219 | void __iomem *ioaddr = rp->base; | 1221 | void __iomem *ioaddr = rp->base; |
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c index 47be41a39d35..e56cf6b548d6 100644 --- a/drivers/net/via-velocity.c +++ b/drivers/net/via-velocity.c | |||
@@ -2465,7 +2465,8 @@ static int velocity_close(struct net_device *dev) | |||
2465 | * Called by the networ layer to request a packet is queued to | 2465 | * Called by the networ layer to request a packet is queued to |
2466 | * the velocity. Returns zero on success. | 2466 | * the velocity. Returns zero on success. |
2467 | */ | 2467 | */ |
2468 | static int velocity_xmit(struct sk_buff *skb, struct net_device *dev) | 2468 | static netdev_tx_t velocity_xmit(struct sk_buff *skb, |
2469 | struct net_device *dev) | ||
2469 | { | 2470 | { |
2470 | struct velocity_info *vptr = netdev_priv(dev); | 2471 | struct velocity_info *vptr = netdev_priv(dev); |
2471 | int qnum = 0; | 2472 | int qnum = 0; |
diff --git a/drivers/net/vxge/vxge-main.c b/drivers/net/vxge/vxge-main.c index 094d15548a2b..41dccba50c46 100644 --- a/drivers/net/vxge/vxge-main.c +++ b/drivers/net/vxge/vxge-main.c | |||
@@ -812,7 +812,7 @@ static int vxge_learn_mac(struct vxgedev *vdev, u8 *mac_header) | |||
812 | * NOTE: when device cant queue the pkt, just the trans_start variable will | 812 | * NOTE: when device cant queue the pkt, just the trans_start variable will |
813 | * not be upadted. | 813 | * not be upadted. |
814 | */ | 814 | */ |
815 | static int | 815 | static netdev_tx_t |
816 | vxge_xmit(struct sk_buff *skb, struct net_device *dev) | 816 | vxge_xmit(struct sk_buff *skb, struct net_device *dev) |
817 | { | 817 | { |
818 | struct vxge_fifo *fifo = NULL; | 818 | struct vxge_fifo *fifo = NULL; |
diff --git a/drivers/net/yellowfin.c b/drivers/net/yellowfin.c index 76764237cde6..9509477f61f4 100644 --- a/drivers/net/yellowfin.c +++ b/drivers/net/yellowfin.c | |||
@@ -347,7 +347,8 @@ static int yellowfin_open(struct net_device *dev); | |||
347 | static void yellowfin_timer(unsigned long data); | 347 | static void yellowfin_timer(unsigned long data); |
348 | static void yellowfin_tx_timeout(struct net_device *dev); | 348 | static void yellowfin_tx_timeout(struct net_device *dev); |
349 | static void yellowfin_init_ring(struct net_device *dev); | 349 | static void yellowfin_init_ring(struct net_device *dev); |
350 | static int yellowfin_start_xmit(struct sk_buff *skb, struct net_device *dev); | 350 | static netdev_tx_t yellowfin_start_xmit(struct sk_buff *skb, |
351 | struct net_device *dev); | ||
351 | static irqreturn_t yellowfin_interrupt(int irq, void *dev_instance); | 352 | static irqreturn_t yellowfin_interrupt(int irq, void *dev_instance); |
352 | static int yellowfin_rx(struct net_device *dev); | 353 | static int yellowfin_rx(struct net_device *dev); |
353 | static void yellowfin_error(struct net_device *dev, int intr_status); | 354 | static void yellowfin_error(struct net_device *dev, int intr_status); |
@@ -808,7 +809,8 @@ static void yellowfin_init_ring(struct net_device *dev) | |||
808 | return; | 809 | return; |
809 | } | 810 | } |
810 | 811 | ||
811 | static int yellowfin_start_xmit(struct sk_buff *skb, struct net_device *dev) | 812 | static netdev_tx_t yellowfin_start_xmit(struct sk_buff *skb, |
813 | struct net_device *dev) | ||
812 | { | 814 | { |
813 | struct yellowfin_private *yp = netdev_priv(dev); | 815 | struct yellowfin_private *yp = netdev_priv(dev); |
814 | unsigned entry; | 816 | unsigned entry; |
diff --git a/drivers/net/znet.c b/drivers/net/znet.c index 7f9e14131a5c..a0384b6f09b6 100644 --- a/drivers/net/znet.c +++ b/drivers/net/znet.c | |||
@@ -156,7 +156,8 @@ struct netidblk { | |||
156 | }; | 156 | }; |
157 | 157 | ||
158 | static int znet_open(struct net_device *dev); | 158 | static int znet_open(struct net_device *dev); |
159 | static int znet_send_packet(struct sk_buff *skb, struct net_device *dev); | 159 | static netdev_tx_t znet_send_packet(struct sk_buff *skb, |
160 | struct net_device *dev); | ||
160 | static irqreturn_t znet_interrupt(int irq, void *dev_id); | 161 | static irqreturn_t znet_interrupt(int irq, void *dev_id); |
161 | static void znet_rx(struct net_device *dev); | 162 | static void znet_rx(struct net_device *dev); |
162 | static int znet_close(struct net_device *dev); | 163 | static int znet_close(struct net_device *dev); |
@@ -534,7 +535,7 @@ static void znet_tx_timeout (struct net_device *dev) | |||
534 | netif_wake_queue (dev); | 535 | netif_wake_queue (dev); |
535 | } | 536 | } |
536 | 537 | ||
537 | static int znet_send_packet(struct sk_buff *skb, struct net_device *dev) | 538 | static netdev_tx_t znet_send_packet(struct sk_buff *skb, struct net_device *dev) |
538 | { | 539 | { |
539 | int ioaddr = dev->base_addr; | 540 | int ioaddr = dev->base_addr; |
540 | struct znet_private *znet = netdev_priv(dev); | 541 | struct znet_private *znet = netdev_priv(dev); |