diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-08-31 15:50:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-01 04:13:46 -0400 |
commit | ad096463f7ff809389454ea4219058a36564d55e (patch) | |
tree | 2155a3dc61332d6fd78958e72411e93454a81287 | |
parent | 3a27c149ab0e31a7b86e5ee6a27bb3b8b5687f32 (diff) |
tulip: convert drivers to netdev_tx_t
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/tulip/de2104x.c | 3 | ||||
-rw-r--r-- | drivers/net/tulip/de4x5.c | 11 | ||||
-rw-r--r-- | drivers/net/tulip/dmfe.c | 5 | ||||
-rw-r--r-- | drivers/net/tulip/tulip_core.c | 5 | ||||
-rw-r--r-- | drivers/net/tulip/uli526x.c | 6 | ||||
-rw-r--r-- | drivers/net/tulip/winbond-840.c | 4 | ||||
-rw-r--r-- | drivers/net/tulip/xircom_cb.c | 6 |
7 files changed, 23 insertions, 17 deletions
diff --git a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c index bc8a6b263b40..74e5ba42d38d 100644 --- a/drivers/net/tulip/de2104x.c +++ b/drivers/net/tulip/de2104x.c | |||
@@ -599,7 +599,8 @@ next: | |||
599 | netif_wake_queue(de->dev); | 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 | struct de_private *de = netdev_priv(dev); | 605 | struct de_private *de = netdev_priv(dev); |
605 | unsigned int entry, tx_free; | 606 | unsigned int entry, tx_free; |
diff --git a/drivers/net/tulip/de4x5.c b/drivers/net/tulip/de4x5.c index acfdccd44567..a8349b7200b5 100644 --- a/drivers/net/tulip/de4x5.c +++ b/drivers/net/tulip/de4x5.c | |||
@@ -895,7 +895,8 @@ static struct { | |||
895 | ** Public Functions | 895 | ** Public Functions |
896 | */ | 896 | */ |
897 | static int de4x5_open(struct net_device *dev); | 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 | static irqreturn_t de4x5_interrupt(int irq, void *dev_id); | 900 | static irqreturn_t de4x5_interrupt(int irq, void *dev_id); |
900 | static int de4x5_close(struct net_device *dev); | 901 | static int de4x5_close(struct net_device *dev); |
901 | static struct net_device_stats *de4x5_get_stats(struct net_device *dev); | 902 | static struct net_device_stats *de4x5_get_stats(struct net_device *dev); |
@@ -1456,18 +1457,16 @@ de4x5_sw_reset(struct net_device *dev) | |||
1456 | /* | 1457 | /* |
1457 | ** Writes a socket buffer address to the next available transmit descriptor. | 1458 | ** Writes a socket buffer address to the next available transmit descriptor. |
1458 | */ | 1459 | */ |
1459 | static int | 1460 | static netdev_tx_t |
1460 | de4x5_queue_pkt(struct sk_buff *skb, struct net_device *dev) | 1461 | de4x5_queue_pkt(struct sk_buff *skb, struct net_device *dev) |
1461 | { | 1462 | { |
1462 | struct de4x5_private *lp = netdev_priv(dev); | 1463 | struct de4x5_private *lp = netdev_priv(dev); |
1463 | u_long iobase = dev->base_addr; | 1464 | u_long iobase = dev->base_addr; |
1464 | int status = NETDEV_TX_OK; | ||
1465 | u_long flags = 0; | 1465 | u_long flags = 0; |
1466 | 1466 | ||
1467 | netif_stop_queue(dev); | 1467 | netif_stop_queue(dev); |
1468 | if (!lp->tx_enable) { /* Cannot send for now */ | 1468 | if (!lp->tx_enable) /* Cannot send for now */ |
1469 | return NETDEV_TX_LOCKED; | 1469 | return NETDEV_TX_LOCKED; |
1470 | } | ||
1471 | 1470 | ||
1472 | /* | 1471 | /* |
1473 | ** Clean out the TX ring asynchronously to interrupts - sometimes the | 1472 | ** Clean out the TX ring asynchronously to interrupts - sometimes the |
@@ -1521,7 +1520,7 @@ de4x5_queue_pkt(struct sk_buff *skb, struct net_device *dev) | |||
1521 | 1520 | ||
1522 | lp->cache.lock = 0; | 1521 | lp->cache.lock = 0; |
1523 | 1522 | ||
1524 | return status; | 1523 | return NETDEV_TX_OK; |
1525 | } | 1524 | } |
1526 | 1525 | ||
1527 | /* | 1526 | /* |
diff --git a/drivers/net/tulip/dmfe.c b/drivers/net/tulip/dmfe.c index 5e15fab58c17..a45ded0538b8 100644 --- a/drivers/net/tulip/dmfe.c +++ b/drivers/net/tulip/dmfe.c | |||
@@ -311,7 +311,7 @@ static u8 SF_mode; /* Special Function: 1:VLAN, 2:RX Flow Control | |||
311 | 311 | ||
312 | /* function declaration ------------------------------------- */ | 312 | /* function declaration ------------------------------------- */ |
313 | static int dmfe_open(struct DEVICE *); | 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 | static int dmfe_stop(struct DEVICE *); | 315 | static int dmfe_stop(struct DEVICE *); |
316 | static void dmfe_set_filter_mode(struct DEVICE *); | 316 | static void dmfe_set_filter_mode(struct DEVICE *); |
317 | static const struct ethtool_ops netdev_ethtool_ops; | 317 | static const struct ethtool_ops netdev_ethtool_ops; |
@@ -661,7 +661,8 @@ static void dmfe_init_dm910x(struct DEVICE *dev) | |||
661 | * Send a packet to media from the upper layer. | 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 | struct dmfe_board_info *db = netdev_priv(dev); | 667 | struct dmfe_board_info *db = netdev_priv(dev); |
667 | struct tx_desc *txptr; | 668 | struct tx_desc *txptr; |
diff --git a/drivers/net/tulip/tulip_core.c b/drivers/net/tulip/tulip_core.c index 019050f273a2..2a01f0e421ab 100644 --- a/drivers/net/tulip/tulip_core.c +++ b/drivers/net/tulip/tulip_core.c | |||
@@ -256,7 +256,8 @@ const char tulip_media_cap[32] = | |||
256 | static void tulip_tx_timeout(struct net_device *dev); | 256 | static void tulip_tx_timeout(struct net_device *dev); |
257 | static void tulip_init_ring(struct net_device *dev); | 257 | static void tulip_init_ring(struct net_device *dev); |
258 | static void tulip_free_ring(struct net_device *dev); | 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 | static int tulip_open(struct net_device *dev); | 261 | static int tulip_open(struct net_device *dev); |
261 | static int tulip_close(struct net_device *dev); | 262 | static int tulip_close(struct net_device *dev); |
262 | static void tulip_up(struct net_device *dev); | 263 | static void tulip_up(struct net_device *dev); |
@@ -645,7 +646,7 @@ static void tulip_init_ring(struct net_device *dev) | |||
645 | tp->tx_ring[i-1].buffer2 = cpu_to_le32(tp->tx_ring_dma); | 646 | tp->tx_ring[i-1].buffer2 = cpu_to_le32(tp->tx_ring_dma); |
646 | } | 647 | } |
647 | 648 | ||
648 | static int | 649 | static netdev_tx_t |
649 | tulip_start_xmit(struct sk_buff *skb, struct net_device *dev) | 650 | tulip_start_xmit(struct sk_buff *skb, struct net_device *dev) |
650 | { | 651 | { |
651 | struct tulip_private *tp = netdev_priv(dev); | 652 | struct tulip_private *tp = netdev_priv(dev); |
diff --git a/drivers/net/tulip/uli526x.c b/drivers/net/tulip/uli526x.c index 9074a34eb814..c457a0ca55ad 100644 --- a/drivers/net/tulip/uli526x.c +++ b/drivers/net/tulip/uli526x.c | |||
@@ -215,7 +215,8 @@ static int mode = 8; | |||
215 | 215 | ||
216 | /* function declaration ------------------------------------- */ | 216 | /* function declaration ------------------------------------- */ |
217 | static int uli526x_open(struct net_device *); | 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 | static int uli526x_stop(struct net_device *); | 220 | static int uli526x_stop(struct net_device *); |
220 | static void uli526x_set_filter_mode(struct net_device *); | 221 | static void uli526x_set_filter_mode(struct net_device *); |
221 | static const struct ethtool_ops netdev_ethtool_ops; | 222 | static const struct ethtool_ops netdev_ethtool_ops; |
@@ -567,7 +568,8 @@ static void uli526x_init(struct net_device *dev) | |||
567 | * Send a packet to media from the upper layer. | 568 | * Send a packet to media from the upper layer. |
568 | */ | 569 | */ |
569 | 570 | ||
570 | static int uli526x_start_xmit(struct sk_buff *skb, struct net_device *dev) | 571 | static netdev_tx_t uli526x_start_xmit(struct sk_buff *skb, |
572 | struct net_device *dev) | ||
571 | { | 573 | { |
572 | struct uli526x_board_info *db = netdev_priv(dev); | 574 | struct uli526x_board_info *db = netdev_priv(dev); |
573 | struct tx_desc *txptr; | 575 | struct tx_desc *txptr; |
diff --git a/drivers/net/tulip/winbond-840.c b/drivers/net/tulip/winbond-840.c index 1853530a32a2..3e59397e5386 100644 --- a/drivers/net/tulip/winbond-840.c +++ b/drivers/net/tulip/winbond-840.c | |||
@@ -333,7 +333,7 @@ static void init_registers(struct net_device *dev); | |||
333 | static void tx_timeout(struct net_device *dev); | 333 | static void tx_timeout(struct net_device *dev); |
334 | static int alloc_ringdesc(struct net_device *dev); | 334 | static int alloc_ringdesc(struct net_device *dev); |
335 | static void free_ringdesc(struct netdev_private *np); | 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 | static irqreturn_t intr_handler(int irq, void *dev_instance); | 337 | static irqreturn_t intr_handler(int irq, void *dev_instance); |
338 | static void netdev_error(struct net_device *dev, int intr_status); | 338 | static void netdev_error(struct net_device *dev, int intr_status); |
339 | static int netdev_rx(struct net_device *dev); | 339 | static int netdev_rx(struct net_device *dev); |
@@ -997,7 +997,7 @@ static void free_ringdesc(struct netdev_private *np) | |||
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 | struct netdev_private *np = netdev_priv(dev); | 1002 | struct netdev_private *np = netdev_priv(dev); |
1003 | unsigned entry; | 1003 | unsigned entry; |
diff --git a/drivers/net/tulip/xircom_cb.c b/drivers/net/tulip/xircom_cb.c index 22b6a239fb33..0f2ca5980c3c 100644 --- a/drivers/net/tulip/xircom_cb.c +++ b/drivers/net/tulip/xircom_cb.c | |||
@@ -113,7 +113,8 @@ struct xircom_private { | |||
113 | static int xircom_probe(struct pci_dev *pdev, const struct pci_device_id *id); | 113 | static int xircom_probe(struct pci_dev *pdev, const struct pci_device_id *id); |
114 | static void xircom_remove(struct pci_dev *pdev); | 114 | static void xircom_remove(struct pci_dev *pdev); |
115 | static irqreturn_t xircom_interrupt(int irq, void *dev_instance); | 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 | static int xircom_open(struct net_device *dev); | 118 | static int xircom_open(struct net_device *dev); |
118 | static int xircom_close(struct net_device *dev); | 119 | static int xircom_close(struct net_device *dev); |
119 | static void xircom_up(struct xircom_private *card); | 120 | static void xircom_up(struct xircom_private *card); |
@@ -384,7 +385,8 @@ static irqreturn_t xircom_interrupt(int irq, void *dev_instance) | |||
384 | return IRQ_HANDLED; | 385 | return IRQ_HANDLED; |
385 | } | 386 | } |
386 | 387 | ||
387 | static int xircom_start_xmit(struct sk_buff *skb, struct net_device *dev) | 388 | static netdev_tx_t xircom_start_xmit(struct sk_buff *skb, |
389 | struct net_device *dev) | ||
388 | { | 390 | { |
389 | struct xircom_private *card; | 391 | struct xircom_private *card; |
390 | unsigned long flags; | 392 | unsigned long flags; |