Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tulip: convert drivers to netdev_tx_t

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Stephen Hemminger and committed by
David S. Miller
ad096463 3a27c149

+23 -17
+2 -1
drivers/net/tulip/de2104x.c
··· 599 599 netif_wake_queue(de->dev); 600 600 } 601 601 602 - static int de_start_xmit (struct sk_buff *skb, struct net_device *dev) 602 + static netdev_tx_t de_start_xmit (struct sk_buff *skb, 603 + struct net_device *dev) 603 604 { 604 605 struct de_private *de = netdev_priv(dev); 605 606 unsigned int entry, tx_free;
+5 -6
drivers/net/tulip/de4x5.c
··· 895 895 ** Public Functions 896 896 */ 897 897 static int de4x5_open(struct net_device *dev); 898 - static int de4x5_queue_pkt(struct sk_buff *skb, struct net_device *dev); 898 + static netdev_tx_t de4x5_queue_pkt(struct sk_buff *skb, 899 + struct net_device *dev); 899 900 static irqreturn_t de4x5_interrupt(int irq, void *dev_id); 900 901 static int de4x5_close(struct net_device *dev); 901 902 static struct net_device_stats *de4x5_get_stats(struct net_device *dev); ··· 1457 1456 /* 1458 1457 ** Writes a socket buffer address to the next available transmit descriptor. 1459 1458 */ 1460 - static int 1459 + static netdev_tx_t 1461 1460 de4x5_queue_pkt(struct sk_buff *skb, struct net_device *dev) 1462 1461 { 1463 1462 struct de4x5_private *lp = netdev_priv(dev); 1464 1463 u_long iobase = dev->base_addr; 1465 - int status = NETDEV_TX_OK; 1466 1464 u_long flags = 0; 1467 1465 1468 1466 netif_stop_queue(dev); 1469 - if (!lp->tx_enable) { /* Cannot send for now */ 1467 + if (!lp->tx_enable) /* Cannot send for now */ 1470 1468 return NETDEV_TX_LOCKED; 1471 - } 1472 1469 1473 1470 /* 1474 1471 ** Clean out the TX ring asynchronously to interrupts - sometimes the ··· 1520 1521 1521 1522 lp->cache.lock = 0; 1522 1523 1523 - return status; 1524 + return NETDEV_TX_OK; 1524 1525 } 1525 1526 1526 1527 /*
+3 -2
drivers/net/tulip/dmfe.c
··· 311 311 312 312 /* function declaration ------------------------------------- */ 313 313 static int dmfe_open(struct DEVICE *); 314 - static int dmfe_start_xmit(struct sk_buff *, struct DEVICE *); 314 + static netdev_tx_t dmfe_start_xmit(struct sk_buff *, struct DEVICE *); 315 315 static int dmfe_stop(struct DEVICE *); 316 316 static void dmfe_set_filter_mode(struct DEVICE *); 317 317 static const struct ethtool_ops netdev_ethtool_ops; ··· 661 661 * Send a packet to media from the upper layer. 662 662 */ 663 663 664 - static int dmfe_start_xmit(struct sk_buff *skb, struct DEVICE *dev) 664 + static netdev_tx_t dmfe_start_xmit(struct sk_buff *skb, 665 + struct DEVICE *dev) 665 666 { 666 667 struct dmfe_board_info *db = netdev_priv(dev); 667 668 struct tx_desc *txptr;
+3 -2
drivers/net/tulip/tulip_core.c
··· 256 256 static void tulip_tx_timeout(struct net_device *dev); 257 257 static void tulip_init_ring(struct net_device *dev); 258 258 static void tulip_free_ring(struct net_device *dev); 259 - static int tulip_start_xmit(struct sk_buff *skb, struct net_device *dev); 259 + static netdev_tx_t tulip_start_xmit(struct sk_buff *skb, 260 + struct net_device *dev); 260 261 static int tulip_open(struct net_device *dev); 261 262 static int tulip_close(struct net_device *dev); 262 263 static void tulip_up(struct net_device *dev); ··· 646 645 tp->tx_ring[i-1].buffer2 = cpu_to_le32(tp->tx_ring_dma); 647 646 } 648 647 649 - static int 648 + static netdev_tx_t 650 649 tulip_start_xmit(struct sk_buff *skb, struct net_device *dev) 651 650 { 652 651 struct tulip_private *tp = netdev_priv(dev);
+4 -2
drivers/net/tulip/uli526x.c
··· 215 215 216 216 /* function declaration ------------------------------------- */ 217 217 static int uli526x_open(struct net_device *); 218 - static int uli526x_start_xmit(struct sk_buff *, struct net_device *); 218 + static netdev_tx_t uli526x_start_xmit(struct sk_buff *, 219 + struct net_device *); 219 220 static int uli526x_stop(struct net_device *); 220 221 static void uli526x_set_filter_mode(struct net_device *); 221 222 static const struct ethtool_ops netdev_ethtool_ops; ··· 568 567 * Send a packet to media from the upper layer. 569 568 */ 570 569 571 - static int uli526x_start_xmit(struct sk_buff *skb, struct net_device *dev) 570 + static netdev_tx_t uli526x_start_xmit(struct sk_buff *skb, 571 + struct net_device *dev) 572 572 { 573 573 struct uli526x_board_info *db = netdev_priv(dev); 574 574 struct tx_desc *txptr;
+2 -2
drivers/net/tulip/winbond-840.c
··· 333 333 static void tx_timeout(struct net_device *dev); 334 334 static int alloc_ringdesc(struct net_device *dev); 335 335 static void free_ringdesc(struct netdev_private *np); 336 - static int start_tx(struct sk_buff *skb, struct net_device *dev); 336 + static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev); 337 337 static irqreturn_t intr_handler(int irq, void *dev_instance); 338 338 static void netdev_error(struct net_device *dev, int intr_status); 339 339 static int netdev_rx(struct net_device *dev); ··· 997 997 998 998 } 999 999 1000 - static int start_tx(struct sk_buff *skb, struct net_device *dev) 1000 + static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev) 1001 1001 { 1002 1002 struct netdev_private *np = netdev_priv(dev); 1003 1003 unsigned entry;
+4 -2
drivers/net/tulip/xircom_cb.c
··· 113 113 static int xircom_probe(struct pci_dev *pdev, const struct pci_device_id *id); 114 114 static void xircom_remove(struct pci_dev *pdev); 115 115 static irqreturn_t xircom_interrupt(int irq, void *dev_instance); 116 - static int xircom_start_xmit(struct sk_buff *skb, struct net_device *dev); 116 + static netdev_tx_t xircom_start_xmit(struct sk_buff *skb, 117 + struct net_device *dev); 117 118 static int xircom_open(struct net_device *dev); 118 119 static int xircom_close(struct net_device *dev); 119 120 static void xircom_up(struct xircom_private *card); ··· 385 384 return IRQ_HANDLED; 386 385 } 387 386 388 - static int xircom_start_xmit(struct sk_buff *skb, struct net_device *dev) 387 + static netdev_tx_t xircom_start_xmit(struct sk_buff *skb, 388 + struct net_device *dev) 389 389 { 390 390 struct xircom_private *card; 391 391 unsigned long flags;