aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tokenring/tms380tr.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-08-31 15:50:46 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-01 04:13:26 -0400
commit61a84108547c1c017683f15311ccbede249fc6fa (patch)
tree3786cb1e39ca881a15576dfddfeef6105dc098a7 /drivers/net/tokenring/tms380tr.c
parent25a79c41ce0ce88a4288adf278e9b0e00f228383 (diff)
tokenring: convert to netdev_tx_t
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tokenring/tms380tr.c')
-rw-r--r--drivers/net/tokenring/tms380tr.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/drivers/net/tokenring/tms380tr.c b/drivers/net/tokenring/tms380tr.c
index 07f6dfd3ba0c..a7b6888829b5 100644
--- a/drivers/net/tokenring/tms380tr.c
+++ b/drivers/net/tokenring/tms380tr.c
@@ -144,8 +144,8 @@ static void tms380tr_exec_sifcmd(struct net_device *dev, unsigned int WriteValu
144/* "G" */ 144/* "G" */
145static struct net_device_stats *tms380tr_get_stats(struct net_device *dev); 145static struct net_device_stats *tms380tr_get_stats(struct net_device *dev);
146/* "H" */ 146/* "H" */
147static int tms380tr_hardware_send_packet(struct sk_buff *skb, 147static netdev_tx_t tms380tr_hardware_send_packet(struct sk_buff *skb,
148 struct net_device *dev); 148 struct net_device *dev);
149/* "I" */ 149/* "I" */
150static int tms380tr_init_adapter(struct net_device *dev); 150static int tms380tr_init_adapter(struct net_device *dev);
151static void tms380tr_init_ipb(struct net_local *tp); 151static void tms380tr_init_ipb(struct net_local *tp);
@@ -165,7 +165,8 @@ static int tms380tr_reset_adapter(struct net_device *dev);
165static void tms380tr_reset_interrupt(struct net_device *dev); 165static void tms380tr_reset_interrupt(struct net_device *dev);
166static void tms380tr_ring_status_irq(struct net_device *dev); 166static void tms380tr_ring_status_irq(struct net_device *dev);
167/* "S" */ 167/* "S" */
168static int tms380tr_send_packet(struct sk_buff *skb, struct net_device *dev); 168static netdev_tx_t tms380tr_send_packet(struct sk_buff *skb,
169 struct net_device *dev);
169static void tms380tr_set_multicast_list(struct net_device *dev); 170static void tms380tr_set_multicast_list(struct net_device *dev);
170static int tms380tr_set_mac_address(struct net_device *dev, void *addr); 171static int tms380tr_set_mac_address(struct net_device *dev, void *addr);
171/* "T" */ 172/* "T" */
@@ -599,21 +600,23 @@ static void tms380tr_timeout(struct net_device *dev)
599/* 600/*
600 * Gets skb from system, queues it and checks if it can be sent 601 * Gets skb from system, queues it and checks if it can be sent
601 */ 602 */
602static int tms380tr_send_packet(struct sk_buff *skb, struct net_device *dev) 603static netdev_tx_t tms380tr_send_packet(struct sk_buff *skb,
604 struct net_device *dev)
603{ 605{
604 struct net_local *tp = netdev_priv(dev); 606 struct net_local *tp = netdev_priv(dev);
605 int err; 607 netdev_tx_t rc;
606 608
607 err = tms380tr_hardware_send_packet(skb, dev); 609 rc = tms380tr_hardware_send_packet(skb, dev);
608 if(tp->TplFree->NextTPLPtr->BusyFlag) 610 if(tp->TplFree->NextTPLPtr->BusyFlag)
609 netif_stop_queue(dev); 611 netif_stop_queue(dev);
610 return (err); 612 return rc;
611} 613}
612 614
613/* 615/*
614 * Move frames into adapter tx queue 616 * Move frames into adapter tx queue
615 */ 617 */
616static int tms380tr_hardware_send_packet(struct sk_buff *skb, struct net_device *dev) 618static netdev_tx_t tms380tr_hardware_send_packet(struct sk_buff *skb,
619 struct net_device *dev)
617{ 620{
618 TPL *tpl; 621 TPL *tpl;
619 short length; 622 short length;