···279279static int cosa_net_open(struct net_device *d);280280static int cosa_net_close(struct net_device *d);281281static void cosa_net_timeout(struct net_device *d);282282-static int cosa_net_tx(struct sk_buff *skb, struct net_device *d);282282+static netdev_tx_t cosa_net_tx(struct sk_buff *skb, struct net_device *d);283283static char *cosa_net_setup_rx(struct channel_data *channel, int size);284284static int cosa_net_rx_done(struct channel_data *channel);285285static int cosa_net_tx_done(struct channel_data *channel, int size);···672672 return 0;673673}674674675675-static int cosa_net_tx(struct sk_buff *skb, struct net_device *dev)675675+static netdev_tx_t cosa_net_tx(struct sk_buff *skb,676676+ struct net_device *dev)676677{677678 struct channel_data *chan = dev_to_chan(dev);678679···681680682681 chan->tx_skb = skb;683682 cosa_start_tx(chan, skb->data, skb->len);684684- return 0;683683+ return NETDEV_TX_OK;685684}686685687686static void cosa_net_timeout(struct net_device *dev)
+4-4
drivers/net/wan/cycx_x25.c
···139139 const void *daddr, const void *saddr,140140 unsigned len);141141static int cycx_netdevice_rebuild_header(struct sk_buff *skb);142142-static int cycx_netdevice_hard_start_xmit(struct sk_buff *skb,143143- struct net_device *dev);142142+static netdev_tx_t cycx_netdevice_hard_start_xmit(struct sk_buff *skb,143143+ struct net_device *dev);144144145145static struct net_device_stats *146146 cycx_netdevice_get_stats(struct net_device *dev);···593593 * bottom half" (with interrupts enabled).594594 * 2. Setting tbusy flag will inhibit further transmit requests from the595595 * protocol stack and can be used for flow control with protocol layer. */596596-static int cycx_netdevice_hard_start_xmit(struct sk_buff *skb,597597- struct net_device *dev)596596+static netdev_tx_t cycx_netdevice_hard_start_xmit(struct sk_buff *skb,597597+ struct net_device *dev)598598{599599 struct cycx_x25_channel *chan = netdev_priv(dev);600600 struct cycx_device *card = chan->card;
+7-6
drivers/net/wan/dlci.c
···186186 dev_kfree_skb(skb);187187}188188189189-static int dlci_transmit(struct sk_buff *skb, struct net_device *dev)189189+static netdev_tx_t dlci_transmit(struct sk_buff *skb,190190+ struct net_device *dev)190191{191192 struct dlci_local *dlp;192192- int ret;193193-194194- ret = 0;193193+ netdev_tx_t ret;195194196195 if (!skb || !dev)197196 return NETDEV_TX_OK;···199200200201 netif_stop_queue(dev);201202203203+ /* This is hackish, overloads driver specific return values204204+ on top of normal transmit return! */202205 ret = dlp->slave->netdev_ops->ndo_start_xmit(skb, dlp->slave);203206 switch (ret)204207 {···208207 dev->stats.tx_packets++;209208 ret = NETDEV_TX_OK;210209 break;211211- case DLCI_RET_ERR:210210+ case DLCI_RET_ERR:212211 dev->stats.tx_errors++;213212 ret = NETDEV_TX_OK;214213 break;215215- case DLCI_RET_DROP:214214+ case DLCI_RET_DROP:216215 dev->stats.tx_dropped++;217216 ret = NETDEV_TX_BUSY;218217 break;
+4-2
drivers/net/wan/dscc4.c
···359359static int dscc4_found1(struct pci_dev *, void __iomem *ioaddr);360360static int dscc4_init_one(struct pci_dev *, const struct pci_device_id *ent);361361static int dscc4_open(struct net_device *);362362-static int dscc4_start_xmit(struct sk_buff *, struct net_device *);362362+static netdev_tx_t dscc4_start_xmit(struct sk_buff *,363363+ struct net_device *);363364static int dscc4_close(struct net_device *);364365static int dscc4_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);365366static int dscc4_init_ring(struct net_device *);···11491148}11501149#endif /* DSCC4_POLLING */1151115011521152-static int dscc4_start_xmit(struct sk_buff *skb, struct net_device *dev)11511151+static netdev_tx_t dscc4_start_xmit(struct sk_buff *skb,11521152+ struct net_device *dev)11531153{11541154 struct dscc4_dev_priv *dpriv = dscc4_priv(dev);11551155 struct dscc4_pci_priv *ppriv = dpriv->pci_priv;
···25252626static int raw_eth_ioctl(struct net_device *dev, struct ifreq *ifr);27272828-static int eth_tx(struct sk_buff *skb, struct net_device *dev)2828+static netdev_tx_t eth_tx(struct sk_buff *skb, struct net_device *dev)2929{3030 int pad = ETH_ZLEN - skb->len;3131 if (pad > 0) { /* Pad the frame with zeros */
+3-3
drivers/net/wan/hdlc_x25.c
···8787888889899090-static int x25_xmit(struct sk_buff *skb, struct net_device *dev)9090+static netdev_tx_t x25_xmit(struct sk_buff *skb, struct net_device *dev)9191{9292 int result;9393···9898 skb_pull(skb, 1);9999 if ((result = lapb_data_request(dev, skb)) != LAPB_OK)100100 dev_kfree_skb(skb);101101- return 0;101101+ return NETDEV_TX_OK;102102103103 case 1:104104 if ((result = lapb_connect_request(dev))!= LAPB_OK) {···129129 }130130131131 dev_kfree_skb(skb);132132- return 0;132132+ return NETDEV_TX_OK;133133}134134135135
+2-1
drivers/net/wan/hostess_sv11.c
···156156 * Passed network frames, fire them downwind.157157 */158158159159-static int hostess_queue_xmit(struct sk_buff *skb, struct net_device *d)159159+static netdev_tx_t hostess_queue_xmit(struct sk_buff *skb,160160+ struct net_device *d)160161{161162 return z8530_queue_xmit(&dev_to_sv(d)->chanA, skb);162163}
+2-1
drivers/net/wan/lapbether.c
···147147/*148148 * Send a LAPB frame via an ethernet interface149149 */150150-static int lapbeth_xmit(struct sk_buff *skb, struct net_device *dev)150150+static netdev_tx_t lapbeth_xmit(struct sk_buff *skb,151151+ struct net_device *dev)151152{152153 int err;153154
+5-4
drivers/net/wan/lmc/lmc_main.c
···8989MODULE_LICENSE("GPL v2");909091919292-static int lmc_start_xmit(struct sk_buff *skb, struct net_device *dev);9292+static netdev_tx_t lmc_start_xmit(struct sk_buff *skb,9393+ struct net_device *dev);9394static int lmc_rx (struct net_device *dev);9495static int lmc_open(struct net_device *dev);9596static int lmc_close(struct net_device *dev);···14241423 return IRQ_RETVAL(handled);14251424}1426142514271427-static int lmc_start_xmit(struct sk_buff *skb, struct net_device *dev)14261426+static netdev_tx_t lmc_start_xmit(struct sk_buff *skb,14271427+ struct net_device *dev)14281428{14291429 lmc_softc_t *sc = dev_to_sc(dev);14301430 u32 flag;14311431 int entry;14321432- int ret = NETDEV_TX_OK;14331432 unsigned long flags;1434143314351434 lmc_trace(dev, "lmc_start_xmit in");···15111510 spin_unlock_irqrestore(&sc->lmc_lock, flags);1512151115131512 lmc_trace(dev, "lmc_start_xmit_out");15141514- return ret;15131513+ return NETDEV_TX_OK;15151514}1516151515171516
···299299300300/* Encapsulate an IP datagram and kick it into a TTY queue. */301301302302-static int x25_asy_xmit(struct sk_buff *skb, struct net_device *dev)302302+static netdev_tx_t x25_asy_xmit(struct sk_buff *skb,303303+ struct net_device *dev)303304{304305 struct x25_asy *sl = netdev_priv(dev);305306 int err;