diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wan/cosa.c | 7 | ||||
-rw-r--r-- | drivers/net/wan/cycx_x25.c | 8 | ||||
-rw-r--r-- | drivers/net/wan/dlci.c | 13 | ||||
-rw-r--r-- | drivers/net/wan/dscc4.c | 6 | ||||
-rw-r--r-- | drivers/net/wan/farsync.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/hd64570.c | 4 | ||||
-rw-r--r-- | drivers/net/wan/hd64572.c | 4 | ||||
-rw-r--r-- | drivers/net/wan/hdlc.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/hdlc_fr.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/hdlc_raw_eth.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/hdlc_x25.c | 6 | ||||
-rw-r--r-- | drivers/net/wan/hostess_sv11.c | 3 | ||||
-rw-r--r-- | drivers/net/wan/lapbether.c | 3 | ||||
-rw-r--r-- | drivers/net/wan/lmc/lmc_main.c | 9 | ||||
-rw-r--r-- | drivers/net/wan/sbni.c | 7 | ||||
-rw-r--r-- | drivers/net/wan/sdla.c | 5 | ||||
-rw-r--r-- | drivers/net/wan/sealevel.c | 3 | ||||
-rw-r--r-- | drivers/net/wan/wanxl.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/x25_asy.c | 3 | ||||
-rw-r--r-- | drivers/net/wan/z85230.c | 9 | ||||
-rw-r--r-- | drivers/net/wan/z85230.h | 3 |
21 files changed, 57 insertions, 46 deletions
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index 61581ee5f08c..66360a2a14c2 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c | |||
@@ -279,7 +279,7 @@ static int cosa_net_attach(struct net_device *dev, unsigned short encoding, | |||
279 | static int cosa_net_open(struct net_device *d); | 279 | static int cosa_net_open(struct net_device *d); |
280 | static int cosa_net_close(struct net_device *d); | 280 | static int cosa_net_close(struct net_device *d); |
281 | static void cosa_net_timeout(struct net_device *d); | 281 | static void cosa_net_timeout(struct net_device *d); |
282 | static int cosa_net_tx(struct sk_buff *skb, struct net_device *d); | 282 | static netdev_tx_t cosa_net_tx(struct sk_buff *skb, struct net_device *d); |
283 | static char *cosa_net_setup_rx(struct channel_data *channel, int size); | 283 | static char *cosa_net_setup_rx(struct channel_data *channel, int size); |
284 | static int cosa_net_rx_done(struct channel_data *channel); | 284 | static int cosa_net_rx_done(struct channel_data *channel); |
285 | static int cosa_net_tx_done(struct channel_data *channel, int size); | 285 | static int cosa_net_tx_done(struct channel_data *channel, int size); |
@@ -672,7 +672,8 @@ static int cosa_net_open(struct net_device *dev) | |||
672 | return 0; | 672 | return 0; |
673 | } | 673 | } |
674 | 674 | ||
675 | static int cosa_net_tx(struct sk_buff *skb, struct net_device *dev) | 675 | static netdev_tx_t cosa_net_tx(struct sk_buff *skb, |
676 | struct net_device *dev) | ||
676 | { | 677 | { |
677 | struct channel_data *chan = dev_to_chan(dev); | 678 | struct channel_data *chan = dev_to_chan(dev); |
678 | 679 | ||
@@ -680,7 +681,7 @@ static int cosa_net_tx(struct sk_buff *skb, struct net_device *dev) | |||
680 | 681 | ||
681 | chan->tx_skb = skb; | 682 | chan->tx_skb = skb; |
682 | cosa_start_tx(chan, skb->data, skb->len); | 683 | cosa_start_tx(chan, skb->data, skb->len); |
683 | return 0; | 684 | return NETDEV_TX_OK; |
684 | } | 685 | } |
685 | 686 | ||
686 | static void cosa_net_timeout(struct net_device *dev) | 687 | static void cosa_net_timeout(struct net_device *dev) |
diff --git a/drivers/net/wan/cycx_x25.c b/drivers/net/wan/cycx_x25.c index 4ae9bd297cc2..2573c18b6aa5 100644 --- a/drivers/net/wan/cycx_x25.c +++ b/drivers/net/wan/cycx_x25.c | |||
@@ -139,8 +139,8 @@ static int cycx_netdevice_hard_header(struct sk_buff *skb, | |||
139 | const void *daddr, const void *saddr, | 139 | const void *daddr, const void *saddr, |
140 | unsigned len); | 140 | unsigned len); |
141 | static int cycx_netdevice_rebuild_header(struct sk_buff *skb); | 141 | static int cycx_netdevice_rebuild_header(struct sk_buff *skb); |
142 | static int cycx_netdevice_hard_start_xmit(struct sk_buff *skb, | 142 | static netdev_tx_t cycx_netdevice_hard_start_xmit(struct sk_buff *skb, |
143 | struct net_device *dev); | 143 | struct net_device *dev); |
144 | 144 | ||
145 | static struct net_device_stats * | 145 | static struct net_device_stats * |
146 | cycx_netdevice_get_stats(struct net_device *dev); | 146 | cycx_netdevice_get_stats(struct net_device *dev); |
@@ -593,8 +593,8 @@ static int cycx_netdevice_rebuild_header(struct sk_buff *skb) | |||
593 | * bottom half" (with interrupts enabled). | 593 | * bottom half" (with interrupts enabled). |
594 | * 2. Setting tbusy flag will inhibit further transmit requests from the | 594 | * 2. Setting tbusy flag will inhibit further transmit requests from the |
595 | * protocol stack and can be used for flow control with protocol layer. */ | 595 | * protocol stack and can be used for flow control with protocol layer. */ |
596 | static int cycx_netdevice_hard_start_xmit(struct sk_buff *skb, | 596 | static netdev_tx_t cycx_netdevice_hard_start_xmit(struct sk_buff *skb, |
597 | struct net_device *dev) | 597 | struct net_device *dev) |
598 | { | 598 | { |
599 | struct cycx_x25_channel *chan = netdev_priv(dev); | 599 | struct cycx_x25_channel *chan = netdev_priv(dev); |
600 | struct cycx_device *card = chan->card; | 600 | struct cycx_device *card = chan->card; |
diff --git a/drivers/net/wan/dlci.c b/drivers/net/wan/dlci.c index 8526b6d1ee4d..69d269d32b5b 100644 --- a/drivers/net/wan/dlci.c +++ b/drivers/net/wan/dlci.c | |||
@@ -186,12 +186,11 @@ static void dlci_receive(struct sk_buff *skb, struct net_device *dev) | |||
186 | dev_kfree_skb(skb); | 186 | dev_kfree_skb(skb); |
187 | } | 187 | } |
188 | 188 | ||
189 | static int dlci_transmit(struct sk_buff *skb, struct net_device *dev) | 189 | static netdev_tx_t dlci_transmit(struct sk_buff *skb, |
190 | struct net_device *dev) | ||
190 | { | 191 | { |
191 | struct dlci_local *dlp; | 192 | struct dlci_local *dlp; |
192 | int ret; | 193 | netdev_tx_t ret; |
193 | |||
194 | ret = 0; | ||
195 | 194 | ||
196 | if (!skb || !dev) | 195 | if (!skb || !dev) |
197 | return NETDEV_TX_OK; | 196 | return NETDEV_TX_OK; |
@@ -200,6 +199,8 @@ static int dlci_transmit(struct sk_buff *skb, struct net_device *dev) | |||
200 | 199 | ||
201 | netif_stop_queue(dev); | 200 | netif_stop_queue(dev); |
202 | 201 | ||
202 | /* This is hackish, overloads driver specific return values | ||
203 | on top of normal transmit return! */ | ||
203 | ret = dlp->slave->netdev_ops->ndo_start_xmit(skb, dlp->slave); | 204 | ret = dlp->slave->netdev_ops->ndo_start_xmit(skb, dlp->slave); |
204 | switch (ret) | 205 | switch (ret) |
205 | { | 206 | { |
@@ -207,11 +208,11 @@ static int dlci_transmit(struct sk_buff *skb, struct net_device *dev) | |||
207 | dev->stats.tx_packets++; | 208 | dev->stats.tx_packets++; |
208 | ret = NETDEV_TX_OK; | 209 | ret = NETDEV_TX_OK; |
209 | break; | 210 | break; |
210 | case DLCI_RET_ERR: | 211 | case DLCI_RET_ERR: |
211 | dev->stats.tx_errors++; | 212 | dev->stats.tx_errors++; |
212 | ret = NETDEV_TX_OK; | 213 | ret = NETDEV_TX_OK; |
213 | break; | 214 | break; |
214 | case DLCI_RET_DROP: | 215 | case DLCI_RET_DROP: |
215 | dev->stats.tx_dropped++; | 216 | dev->stats.tx_dropped++; |
216 | ret = NETDEV_TX_BUSY; | 217 | ret = NETDEV_TX_BUSY; |
217 | break; | 218 | break; |
diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c index cc00e0f89ecb..b2247bd0d492 100644 --- a/drivers/net/wan/dscc4.c +++ b/drivers/net/wan/dscc4.c | |||
@@ -359,7 +359,8 @@ static void dscc4_tx_irq(struct dscc4_pci_priv *, struct dscc4_dev_priv *); | |||
359 | static int dscc4_found1(struct pci_dev *, void __iomem *ioaddr); | 359 | static int dscc4_found1(struct pci_dev *, void __iomem *ioaddr); |
360 | static int dscc4_init_one(struct pci_dev *, const struct pci_device_id *ent); | 360 | static int dscc4_init_one(struct pci_dev *, const struct pci_device_id *ent); |
361 | static int dscc4_open(struct net_device *); | 361 | static int dscc4_open(struct net_device *); |
362 | static int dscc4_start_xmit(struct sk_buff *, struct net_device *); | 362 | static netdev_tx_t dscc4_start_xmit(struct sk_buff *, |
363 | struct net_device *); | ||
363 | static int dscc4_close(struct net_device *); | 364 | static int dscc4_close(struct net_device *); |
364 | static int dscc4_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 365 | static int dscc4_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
365 | static int dscc4_init_ring(struct net_device *); | 366 | static int dscc4_init_ring(struct net_device *); |
@@ -1148,7 +1149,8 @@ static int dscc4_tx_poll(struct dscc4_dev_priv *dpriv, struct net_device *dev) | |||
1148 | } | 1149 | } |
1149 | #endif /* DSCC4_POLLING */ | 1150 | #endif /* DSCC4_POLLING */ |
1150 | 1151 | ||
1151 | static int dscc4_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1152 | static netdev_tx_t dscc4_start_xmit(struct sk_buff *skb, |
1153 | struct net_device *dev) | ||
1152 | { | 1154 | { |
1153 | struct dscc4_dev_priv *dpriv = dscc4_priv(dev); | 1155 | struct dscc4_dev_priv *dpriv = dscc4_priv(dev); |
1154 | struct dscc4_pci_priv *ppriv = dpriv->pci_priv; | 1156 | struct dscc4_pci_priv *ppriv = dpriv->pci_priv; |
diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c index 20a1237a3d74..3e90eb816181 100644 --- a/drivers/net/wan/farsync.c +++ b/drivers/net/wan/farsync.c | |||
@@ -2274,7 +2274,7 @@ fst_tx_timeout(struct net_device *dev) | |||
2274 | port->start = 0; | 2274 | port->start = 0; |
2275 | } | 2275 | } |
2276 | 2276 | ||
2277 | static int | 2277 | static netdev_tx_t |
2278 | fst_start_xmit(struct sk_buff *skb, struct net_device *dev) | 2278 | fst_start_xmit(struct sk_buff *skb, struct net_device *dev) |
2279 | { | 2279 | { |
2280 | struct fst_card_info *card; | 2280 | struct fst_card_info *card; |
diff --git a/drivers/net/wan/hd64570.c b/drivers/net/wan/hd64570.c index 1ea1ef6c3b96..80114c93bae7 100644 --- a/drivers/net/wan/hd64570.c +++ b/drivers/net/wan/hd64570.c | |||
@@ -620,7 +620,7 @@ static void sca_dump_rings(struct net_device *dev) | |||
620 | #endif /* DEBUG_RINGS */ | 620 | #endif /* DEBUG_RINGS */ |
621 | 621 | ||
622 | 622 | ||
623 | static int sca_xmit(struct sk_buff *skb, struct net_device *dev) | 623 | static netdev_tx_t sca_xmit(struct sk_buff *skb, struct net_device *dev) |
624 | { | 624 | { |
625 | port_t *port = dev_to_port(dev); | 625 | port_t *port = dev_to_port(dev); |
626 | card_t *card = port_to_card(port); | 626 | card_t *card = port_to_card(port); |
@@ -674,7 +674,7 @@ static int sca_xmit(struct sk_buff *skb, struct net_device *dev) | |||
674 | spin_unlock_irq(&port->lock); | 674 | spin_unlock_irq(&port->lock); |
675 | 675 | ||
676 | dev_kfree_skb(skb); | 676 | dev_kfree_skb(skb); |
677 | return 0; | 677 | return NETDEV_TX_OK; |
678 | } | 678 | } |
679 | 679 | ||
680 | 680 | ||
diff --git a/drivers/net/wan/hd64572.c b/drivers/net/wan/hd64572.c index f099c34a3ae2..84f01373e11f 100644 --- a/drivers/net/wan/hd64572.c +++ b/drivers/net/wan/hd64572.c | |||
@@ -562,7 +562,7 @@ static void sca_dump_rings(struct net_device *dev) | |||
562 | #endif /* DEBUG_RINGS */ | 562 | #endif /* DEBUG_RINGS */ |
563 | 563 | ||
564 | 564 | ||
565 | static int sca_xmit(struct sk_buff *skb, struct net_device *dev) | 565 | static netdev_tx_t sca_xmit(struct sk_buff *skb, struct net_device *dev) |
566 | { | 566 | { |
567 | port_t *port = dev_to_port(dev); | 567 | port_t *port = dev_to_port(dev); |
568 | card_t *card = port->card; | 568 | card_t *card = port->card; |
@@ -601,7 +601,7 @@ static int sca_xmit(struct sk_buff *skb, struct net_device *dev) | |||
601 | spin_unlock_irq(&port->lock); | 601 | spin_unlock_irq(&port->lock); |
602 | 602 | ||
603 | dev_kfree_skb(skb); | 603 | dev_kfree_skb(skb); |
604 | return 0; | 604 | return NETDEV_TX_OK; |
605 | } | 605 | } |
606 | 606 | ||
607 | 607 | ||
diff --git a/drivers/net/wan/hdlc.c b/drivers/net/wan/hdlc.c index 7596eae1b35c..cc07236ea734 100644 --- a/drivers/net/wan/hdlc.c +++ b/drivers/net/wan/hdlc.c | |||
@@ -66,7 +66,7 @@ static int hdlc_rcv(struct sk_buff *skb, struct net_device *dev, | |||
66 | return hdlc->proto->netif_rx(skb); | 66 | return hdlc->proto->netif_rx(skb); |
67 | } | 67 | } |
68 | 68 | ||
69 | int hdlc_start_xmit(struct sk_buff *skb, struct net_device *dev) | 69 | netdev_tx_t hdlc_start_xmit(struct sk_buff *skb, struct net_device *dev) |
70 | { | 70 | { |
71 | hdlc_device *hdlc = dev_to_hdlc(dev); | 71 | hdlc_device *hdlc = dev_to_hdlc(dev); |
72 | 72 | ||
diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c index 52438c76bf8a..840cff72a0f1 100644 --- a/drivers/net/wan/hdlc_fr.c +++ b/drivers/net/wan/hdlc_fr.c | |||
@@ -407,7 +407,7 @@ static int pvc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | |||
407 | return -EINVAL; | 407 | return -EINVAL; |
408 | } | 408 | } |
409 | 409 | ||
410 | static int pvc_xmit(struct sk_buff *skb, struct net_device *dev) | 410 | static netdev_tx_t pvc_xmit(struct sk_buff *skb, struct net_device *dev) |
411 | { | 411 | { |
412 | pvc_device *pvc = dev->ml_priv; | 412 | pvc_device *pvc = dev->ml_priv; |
413 | 413 | ||
diff --git a/drivers/net/wan/hdlc_raw_eth.c b/drivers/net/wan/hdlc_raw_eth.c index 49e68f5ca5f2..1b30fcc24145 100644 --- a/drivers/net/wan/hdlc_raw_eth.c +++ b/drivers/net/wan/hdlc_raw_eth.c | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | static int raw_eth_ioctl(struct net_device *dev, struct ifreq *ifr); | 26 | static int raw_eth_ioctl(struct net_device *dev, struct ifreq *ifr); |
27 | 27 | ||
28 | static int eth_tx(struct sk_buff *skb, struct net_device *dev) | 28 | static netdev_tx_t eth_tx(struct sk_buff *skb, struct net_device *dev) |
29 | { | 29 | { |
30 | int pad = ETH_ZLEN - skb->len; | 30 | int pad = ETH_ZLEN - skb->len; |
31 | if (pad > 0) { /* Pad the frame with zeros */ | 31 | if (pad > 0) { /* Pad the frame with zeros */ |
diff --git a/drivers/net/wan/hdlc_x25.c b/drivers/net/wan/hdlc_x25.c index b1dc29ed1583..aa9248f8eb1a 100644 --- a/drivers/net/wan/hdlc_x25.c +++ b/drivers/net/wan/hdlc_x25.c | |||
@@ -87,7 +87,7 @@ static void x25_data_transmit(struct net_device *dev, struct sk_buff *skb) | |||
87 | 87 | ||
88 | 88 | ||
89 | 89 | ||
90 | static int x25_xmit(struct sk_buff *skb, struct net_device *dev) | 90 | static netdev_tx_t x25_xmit(struct sk_buff *skb, struct net_device *dev) |
91 | { | 91 | { |
92 | int result; | 92 | int result; |
93 | 93 | ||
@@ -98,7 +98,7 @@ static int x25_xmit(struct sk_buff *skb, struct net_device *dev) | |||
98 | skb_pull(skb, 1); | 98 | skb_pull(skb, 1); |
99 | if ((result = lapb_data_request(dev, skb)) != LAPB_OK) | 99 | if ((result = lapb_data_request(dev, skb)) != LAPB_OK) |
100 | dev_kfree_skb(skb); | 100 | dev_kfree_skb(skb); |
101 | return 0; | 101 | return NETDEV_TX_OK; |
102 | 102 | ||
103 | case 1: | 103 | case 1: |
104 | if ((result = lapb_connect_request(dev))!= LAPB_OK) { | 104 | if ((result = lapb_connect_request(dev))!= LAPB_OK) { |
@@ -129,7 +129,7 @@ static int x25_xmit(struct sk_buff *skb, struct net_device *dev) | |||
129 | } | 129 | } |
130 | 130 | ||
131 | dev_kfree_skb(skb); | 131 | dev_kfree_skb(skb); |
132 | return 0; | 132 | return NETDEV_TX_OK; |
133 | } | 133 | } |
134 | 134 | ||
135 | 135 | ||
diff --git a/drivers/net/wan/hostess_sv11.c b/drivers/net/wan/hostess_sv11.c index 567d4f5062d6..15002c3d0d95 100644 --- a/drivers/net/wan/hostess_sv11.c +++ b/drivers/net/wan/hostess_sv11.c | |||
@@ -156,7 +156,8 @@ static int hostess_ioctl(struct net_device *d, struct ifreq *ifr, int cmd) | |||
156 | * Passed network frames, fire them downwind. | 156 | * Passed network frames, fire them downwind. |
157 | */ | 157 | */ |
158 | 158 | ||
159 | static int hostess_queue_xmit(struct sk_buff *skb, struct net_device *d) | 159 | static netdev_tx_t hostess_queue_xmit(struct sk_buff *skb, |
160 | struct net_device *d) | ||
160 | { | 161 | { |
161 | return z8530_queue_xmit(&dev_to_sv(d)->chanA, skb); | 162 | return z8530_queue_xmit(&dev_to_sv(d)->chanA, skb); |
162 | } | 163 | } |
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c index aff4f6bdf3d5..d1e3c673e9b2 100644 --- a/drivers/net/wan/lapbether.c +++ b/drivers/net/wan/lapbether.c | |||
@@ -147,7 +147,8 @@ static int lapbeth_data_indication(struct net_device *dev, struct sk_buff *skb) | |||
147 | /* | 147 | /* |
148 | * Send a LAPB frame via an ethernet interface | 148 | * Send a LAPB frame via an ethernet interface |
149 | */ | 149 | */ |
150 | static int lapbeth_xmit(struct sk_buff *skb, struct net_device *dev) | 150 | static netdev_tx_t lapbeth_xmit(struct sk_buff *skb, |
151 | struct net_device *dev) | ||
151 | { | 152 | { |
152 | int err; | 153 | int err; |
153 | 154 | ||
diff --git a/drivers/net/wan/lmc/lmc_main.c b/drivers/net/wan/lmc/lmc_main.c index 4b83d8872857..7ea71b33d2e9 100644 --- a/drivers/net/wan/lmc/lmc_main.c +++ b/drivers/net/wan/lmc/lmc_main.c | |||
@@ -89,7 +89,8 @@ MODULE_DEVICE_TABLE(pci, lmc_pci_tbl); | |||
89 | MODULE_LICENSE("GPL v2"); | 89 | MODULE_LICENSE("GPL v2"); |
90 | 90 | ||
91 | 91 | ||
92 | static int lmc_start_xmit(struct sk_buff *skb, struct net_device *dev); | 92 | static netdev_tx_t lmc_start_xmit(struct sk_buff *skb, |
93 | struct net_device *dev); | ||
93 | static int lmc_rx (struct net_device *dev); | 94 | static int lmc_rx (struct net_device *dev); |
94 | static int lmc_open(struct net_device *dev); | 95 | static int lmc_open(struct net_device *dev); |
95 | static int lmc_close(struct net_device *dev); | 96 | static int lmc_close(struct net_device *dev); |
@@ -1423,12 +1424,12 @@ lmc_int_fail_out: | |||
1423 | return IRQ_RETVAL(handled); | 1424 | return IRQ_RETVAL(handled); |
1424 | } | 1425 | } |
1425 | 1426 | ||
1426 | static int lmc_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1427 | static netdev_tx_t lmc_start_xmit(struct sk_buff *skb, |
1428 | struct net_device *dev) | ||
1427 | { | 1429 | { |
1428 | lmc_softc_t *sc = dev_to_sc(dev); | 1430 | lmc_softc_t *sc = dev_to_sc(dev); |
1429 | u32 flag; | 1431 | u32 flag; |
1430 | int entry; | 1432 | int entry; |
1431 | int ret = NETDEV_TX_OK; | ||
1432 | unsigned long flags; | 1433 | unsigned long flags; |
1433 | 1434 | ||
1434 | lmc_trace(dev, "lmc_start_xmit in"); | 1435 | lmc_trace(dev, "lmc_start_xmit in"); |
@@ -1510,7 +1511,7 @@ static int lmc_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1510 | spin_unlock_irqrestore(&sc->lmc_lock, flags); | 1511 | spin_unlock_irqrestore(&sc->lmc_lock, flags); |
1511 | 1512 | ||
1512 | lmc_trace(dev, "lmc_start_xmit_out"); | 1513 | lmc_trace(dev, "lmc_start_xmit_out"); |
1513 | return ret; | 1514 | return NETDEV_TX_OK; |
1514 | } | 1515 | } |
1515 | 1516 | ||
1516 | 1517 | ||
diff --git a/drivers/net/wan/sbni.c b/drivers/net/wan/sbni.c index 85c02a2ec2e7..1cc24a45f003 100644 --- a/drivers/net/wan/sbni.c +++ b/drivers/net/wan/sbni.c | |||
@@ -114,7 +114,8 @@ static int sbni_pci_probe( struct net_device * ); | |||
114 | static struct net_device *sbni_probe1(struct net_device *, unsigned long, int); | 114 | static struct net_device *sbni_probe1(struct net_device *, unsigned long, int); |
115 | static int sbni_open( struct net_device * ); | 115 | static int sbni_open( struct net_device * ); |
116 | static int sbni_close( struct net_device * ); | 116 | static int sbni_close( struct net_device * ); |
117 | static int sbni_start_xmit( struct sk_buff *, struct net_device * ); | 117 | static netdev_tx_t sbni_start_xmit(struct sk_buff *, |
118 | struct net_device * ); | ||
118 | static int sbni_ioctl( struct net_device *, struct ifreq *, int ); | 119 | static int sbni_ioctl( struct net_device *, struct ifreq *, int ); |
119 | static void set_multicast_list( struct net_device * ); | 120 | static void set_multicast_list( struct net_device * ); |
120 | 121 | ||
@@ -444,7 +445,7 @@ sbni_probe1( struct net_device *dev, unsigned long ioaddr, int irq ) | |||
444 | 445 | ||
445 | #ifdef CONFIG_SBNI_MULTILINE | 446 | #ifdef CONFIG_SBNI_MULTILINE |
446 | 447 | ||
447 | static int | 448 | static netdev_tx_t |
448 | sbni_start_xmit( struct sk_buff *skb, struct net_device *dev ) | 449 | sbni_start_xmit( struct sk_buff *skb, struct net_device *dev ) |
449 | { | 450 | { |
450 | struct net_device *p; | 451 | struct net_device *p; |
@@ -472,7 +473,7 @@ sbni_start_xmit( struct sk_buff *skb, struct net_device *dev ) | |||
472 | 473 | ||
473 | #else /* CONFIG_SBNI_MULTILINE */ | 474 | #else /* CONFIG_SBNI_MULTILINE */ |
474 | 475 | ||
475 | static int | 476 | static netdev_tx_t |
476 | sbni_start_xmit( struct sk_buff *skb, struct net_device *dev ) | 477 | sbni_start_xmit( struct sk_buff *skb, struct net_device *dev ) |
477 | { | 478 | { |
478 | struct net_local *nl = netdev_priv(dev); | 479 | struct net_local *nl = netdev_priv(dev); |
diff --git a/drivers/net/wan/sdla.c b/drivers/net/wan/sdla.c index 1d637f407a0c..63c76458431c 100644 --- a/drivers/net/wan/sdla.c +++ b/drivers/net/wan/sdla.c | |||
@@ -651,7 +651,8 @@ static int sdla_dlci_conf(struct net_device *slave, struct net_device *master, i | |||
651 | **************************/ | 651 | **************************/ |
652 | 652 | ||
653 | /* NOTE: the DLCI driver deals with freeing the SKB!! */ | 653 | /* NOTE: the DLCI driver deals with freeing the SKB!! */ |
654 | static int sdla_transmit(struct sk_buff *skb, struct net_device *dev) | 654 | static netdev_tx_t sdla_transmit(struct sk_buff *skb, |
655 | struct net_device *dev) | ||
655 | { | 656 | { |
656 | struct frad_local *flp; | 657 | struct frad_local *flp; |
657 | int ret, addr, accept, i; | 658 | int ret, addr, accept, i; |
@@ -737,7 +738,7 @@ static int sdla_transmit(struct sk_buff *skb, struct net_device *dev) | |||
737 | if(flp->master[i]!=NULL) | 738 | if(flp->master[i]!=NULL) |
738 | netif_wake_queue(flp->master[i]); | 739 | netif_wake_queue(flp->master[i]); |
739 | } | 740 | } |
740 | return(ret); | 741 | return NETDEV_TX_OK; |
741 | } | 742 | } |
742 | 743 | ||
743 | static void sdla_receive(struct net_device *dev) | 744 | static void sdla_receive(struct net_device *dev) |
diff --git a/drivers/net/wan/sealevel.c b/drivers/net/wan/sealevel.c index 23b269027453..0c525e24b247 100644 --- a/drivers/net/wan/sealevel.c +++ b/drivers/net/wan/sealevel.c | |||
@@ -156,7 +156,8 @@ static int sealevel_ioctl(struct net_device *d, struct ifreq *ifr, int cmd) | |||
156 | * Passed network frames, fire them downwind. | 156 | * Passed network frames, fire them downwind. |
157 | */ | 157 | */ |
158 | 158 | ||
159 | static int sealevel_queue_xmit(struct sk_buff *skb, struct net_device *d) | 159 | static netdev_tx_t sealevel_queue_xmit(struct sk_buff *skb, |
160 | struct net_device *d) | ||
160 | { | 161 | { |
161 | return z8530_queue_xmit(dev_to_chan(d)->chan, skb); | 162 | return z8530_queue_xmit(dev_to_chan(d)->chan, skb); |
162 | } | 163 | } |
diff --git a/drivers/net/wan/wanxl.c b/drivers/net/wan/wanxl.c index 03b76adbe5f0..daee8a0624ee 100644 --- a/drivers/net/wan/wanxl.c +++ b/drivers/net/wan/wanxl.c | |||
@@ -268,7 +268,7 @@ static irqreturn_t wanxl_intr(int irq, void* dev_id) | |||
268 | 268 | ||
269 | 269 | ||
270 | 270 | ||
271 | static int wanxl_xmit(struct sk_buff *skb, struct net_device *dev) | 271 | static netdev_tx_t wanxl_xmit(struct sk_buff *skb, struct net_device *dev) |
272 | { | 272 | { |
273 | port_t *port = dev_to_port(dev); | 273 | port_t *port = dev_to_port(dev); |
274 | desc_t *desc; | 274 | desc_t *desc; |
diff --git a/drivers/net/wan/x25_asy.c b/drivers/net/wan/x25_asy.c index 1047920e742c..27945049c9e1 100644 --- a/drivers/net/wan/x25_asy.c +++ b/drivers/net/wan/x25_asy.c | |||
@@ -299,7 +299,8 @@ static void x25_asy_timeout(struct net_device *dev) | |||
299 | 299 | ||
300 | /* Encapsulate an IP datagram and kick it into a TTY queue. */ | 300 | /* Encapsulate an IP datagram and kick it into a TTY queue. */ |
301 | 301 | ||
302 | static int x25_asy_xmit(struct sk_buff *skb, struct net_device *dev) | 302 | static netdev_tx_t x25_asy_xmit(struct sk_buff *skb, |
303 | struct net_device *dev) | ||
303 | { | 304 | { |
304 | struct x25_asy *sl = netdev_priv(dev); | 305 | struct x25_asy *sl = netdev_priv(dev); |
305 | int err; | 306 | int err; |
diff --git a/drivers/net/wan/z85230.c b/drivers/net/wan/z85230.c index ad4e79c4c5c3..0be7ec7299db 100644 --- a/drivers/net/wan/z85230.c +++ b/drivers/net/wan/z85230.c | |||
@@ -1727,15 +1727,14 @@ static inline int spans_boundary(struct sk_buff *skb) | |||
1727 | * point. | 1727 | * point. |
1728 | */ | 1728 | */ |
1729 | 1729 | ||
1730 | int z8530_queue_xmit(struct z8530_channel *c, struct sk_buff *skb) | 1730 | netdev_tx_t z8530_queue_xmit(struct z8530_channel *c, struct sk_buff *skb) |
1731 | { | 1731 | { |
1732 | unsigned long flags; | 1732 | unsigned long flags; |
1733 | 1733 | ||
1734 | netif_stop_queue(c->netdevice); | 1734 | netif_stop_queue(c->netdevice); |
1735 | if(c->tx_next_skb) | 1735 | if(c->tx_next_skb) |
1736 | { | 1736 | return NETDEV_TX_BUSY; |
1737 | return 1; | 1737 | |
1738 | } | ||
1739 | 1738 | ||
1740 | /* PC SPECIFIC - DMA limits */ | 1739 | /* PC SPECIFIC - DMA limits */ |
1741 | 1740 | ||
@@ -1767,7 +1766,7 @@ int z8530_queue_xmit(struct z8530_channel *c, struct sk_buff *skb) | |||
1767 | z8530_tx_begin(c); | 1766 | z8530_tx_begin(c); |
1768 | spin_unlock_irqrestore(c->lock, flags); | 1767 | spin_unlock_irqrestore(c->lock, flags); |
1769 | 1768 | ||
1770 | return 0; | 1769 | return NETDEV_TX_OK; |
1771 | } | 1770 | } |
1772 | 1771 | ||
1773 | EXPORT_SYMBOL(z8530_queue_xmit); | 1772 | EXPORT_SYMBOL(z8530_queue_xmit); |
diff --git a/drivers/net/wan/z85230.h b/drivers/net/wan/z85230.h index 85b3e785d484..f29d554fc07d 100644 --- a/drivers/net/wan/z85230.h +++ b/drivers/net/wan/z85230.h | |||
@@ -406,7 +406,8 @@ extern int z8530_sync_dma_close(struct net_device *, struct z8530_channel *); | |||
406 | extern int z8530_sync_txdma_open(struct net_device *, struct z8530_channel *); | 406 | extern int z8530_sync_txdma_open(struct net_device *, struct z8530_channel *); |
407 | extern int z8530_sync_txdma_close(struct net_device *, struct z8530_channel *); | 407 | extern int z8530_sync_txdma_close(struct net_device *, struct z8530_channel *); |
408 | extern int z8530_channel_load(struct z8530_channel *, u8 *); | 408 | extern int z8530_channel_load(struct z8530_channel *, u8 *); |
409 | extern int z8530_queue_xmit(struct z8530_channel *c, struct sk_buff *skb); | 409 | extern netdev_tx_t z8530_queue_xmit(struct z8530_channel *c, |
410 | struct sk_buff *skb); | ||
410 | extern void z8530_null_rx(struct z8530_channel *c, struct sk_buff *skb); | 411 | extern void z8530_null_rx(struct z8530_channel *c, struct sk_buff *skb); |
411 | 412 | ||
412 | 413 | ||