aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
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
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')
-rw-r--r--drivers/net/tokenring/3c359.c4
-rw-r--r--drivers/net/tokenring/ibmtr.c6
-rw-r--r--drivers/net/tokenring/lanstreamer.c6
-rw-r--r--drivers/net/tokenring/olympic.c6
-rw-r--r--drivers/net/tokenring/smctr.c6
-rw-r--r--drivers/net/tokenring/tms380tr.c19
6 files changed, 29 insertions, 18 deletions
diff --git a/drivers/net/tokenring/3c359.c b/drivers/net/tokenring/3c359.c
index 1787d52941bc..724158966ec1 100644
--- a/drivers/net/tokenring/3c359.c
+++ b/drivers/net/tokenring/3c359.c
@@ -128,7 +128,7 @@ static int xl_init(struct net_device *dev);
128static int xl_open(struct net_device *dev); 128static int xl_open(struct net_device *dev);
129static int xl_open_hw(struct net_device *dev) ; 129static int xl_open_hw(struct net_device *dev) ;
130static int xl_hw_reset(struct net_device *dev); 130static int xl_hw_reset(struct net_device *dev);
131static int xl_xmit(struct sk_buff *skb, struct net_device *dev); 131static netdev_tx_t xl_xmit(struct sk_buff *skb, struct net_device *dev);
132static void xl_dn_comp(struct net_device *dev); 132static void xl_dn_comp(struct net_device *dev);
133static int xl_close(struct net_device *dev); 133static int xl_close(struct net_device *dev);
134static void xl_set_rx_mode(struct net_device *dev); 134static void xl_set_rx_mode(struct net_device *dev);
@@ -1193,7 +1193,7 @@ static irqreturn_t xl_interrupt(int irq, void *dev_id)
1193 * Tx - Polling configuration 1193 * Tx - Polling configuration
1194 */ 1194 */
1195 1195
1196static int xl_xmit(struct sk_buff *skb, struct net_device *dev) 1196static netdev_tx_t xl_xmit(struct sk_buff *skb, struct net_device *dev)
1197{ 1197{
1198 struct xl_private *xl_priv=netdev_priv(dev); 1198 struct xl_private *xl_priv=netdev_priv(dev);
1199 struct xl_tx_desc *txd ; 1199 struct xl_tx_desc *txd ;
diff --git a/drivers/net/tokenring/ibmtr.c b/drivers/net/tokenring/ibmtr.c
index 96d00c8f8d3e..525bbc5b9c9d 100644
--- a/drivers/net/tokenring/ibmtr.c
+++ b/drivers/net/tokenring/ibmtr.c
@@ -191,7 +191,8 @@ static int tok_init_card(struct net_device *dev);
191static void tok_open_adapter(unsigned long dev_addr); 191static void tok_open_adapter(unsigned long dev_addr);
192static void open_sap(unsigned char type, struct net_device *dev); 192static void open_sap(unsigned char type, struct net_device *dev);
193static void tok_set_multicast_list(struct net_device *dev); 193static void tok_set_multicast_list(struct net_device *dev);
194static int tok_send_packet(struct sk_buff *skb, struct net_device *dev); 194static netdev_tx_t tok_send_packet(struct sk_buff *skb,
195 struct net_device *dev);
195static int tok_close(struct net_device *dev); 196static int tok_close(struct net_device *dev);
196static irqreturn_t tok_interrupt(int irq, void *dev_id); 197static irqreturn_t tok_interrupt(int irq, void *dev_id);
197static void initial_tok_int(struct net_device *dev); 198static void initial_tok_int(struct net_device *dev);
@@ -1022,7 +1023,8 @@ static void tok_set_multicast_list(struct net_device *dev)
1022 1023
1023#define STATION_ID_OFST 4 1024#define STATION_ID_OFST 4
1024 1025
1025static int tok_send_packet(struct sk_buff *skb, struct net_device *dev) 1026static netdev_tx_t tok_send_packet(struct sk_buff *skb,
1027 struct net_device *dev)
1026{ 1028{
1027 struct tok_info *ti; 1029 struct tok_info *ti;
1028 unsigned long flags; 1030 unsigned long flags;
diff --git a/drivers/net/tokenring/lanstreamer.c b/drivers/net/tokenring/lanstreamer.c
index d07e61a9499e..26dca2b2bdbd 100644
--- a/drivers/net/tokenring/lanstreamer.c
+++ b/drivers/net/tokenring/lanstreamer.c
@@ -203,7 +203,8 @@ static int streamer_ioctl(struct net_device *, struct ifreq *, int);
203 203
204static int streamer_reset(struct net_device *dev); 204static int streamer_reset(struct net_device *dev);
205static int streamer_open(struct net_device *dev); 205static int streamer_open(struct net_device *dev);
206static int streamer_xmit(struct sk_buff *skb, struct net_device *dev); 206static netdev_tx_t streamer_xmit(struct sk_buff *skb,
207 struct net_device *dev);
207static int streamer_close(struct net_device *dev); 208static int streamer_close(struct net_device *dev);
208static void streamer_set_rx_mode(struct net_device *dev); 209static void streamer_set_rx_mode(struct net_device *dev);
209static irqreturn_t streamer_interrupt(int irq, void *dev_id); 210static irqreturn_t streamer_interrupt(int irq, void *dev_id);
@@ -1141,7 +1142,8 @@ static irqreturn_t streamer_interrupt(int irq, void *dev_id)
1141 return IRQ_HANDLED; 1142 return IRQ_HANDLED;
1142} 1143}
1143 1144
1144static int streamer_xmit(struct sk_buff *skb, struct net_device *dev) 1145static netdev_tx_t streamer_xmit(struct sk_buff *skb,
1146 struct net_device *dev)
1145{ 1147{
1146 struct streamer_private *streamer_priv = 1148 struct streamer_private *streamer_priv =
1147 netdev_priv(dev); 1149 netdev_priv(dev);
diff --git a/drivers/net/tokenring/olympic.c b/drivers/net/tokenring/olympic.c
index f73f4e684f33..d9ec7f0bbd0a 100644
--- a/drivers/net/tokenring/olympic.c
+++ b/drivers/net/tokenring/olympic.c
@@ -182,7 +182,8 @@ MODULE_DEVICE_TABLE(pci,olympic_pci_tbl) ;
182static int olympic_probe(struct pci_dev *pdev, const struct pci_device_id *ent); 182static int olympic_probe(struct pci_dev *pdev, const struct pci_device_id *ent);
183static int olympic_init(struct net_device *dev); 183static int olympic_init(struct net_device *dev);
184static int olympic_open(struct net_device *dev); 184static int olympic_open(struct net_device *dev);
185static int olympic_xmit(struct sk_buff *skb, struct net_device *dev); 185static netdev_tx_t olympic_xmit(struct sk_buff *skb,
186 struct net_device *dev);
186static int olympic_close(struct net_device *dev); 187static int olympic_close(struct net_device *dev);
187static void olympic_set_rx_mode(struct net_device *dev); 188static void olympic_set_rx_mode(struct net_device *dev);
188static void olympic_freemem(struct net_device *dev) ; 189static void olympic_freemem(struct net_device *dev) ;
@@ -1030,7 +1031,8 @@ static irqreturn_t olympic_interrupt(int irq, void *dev_id)
1030 return IRQ_HANDLED; 1031 return IRQ_HANDLED;
1031} 1032}
1032 1033
1033static int olympic_xmit(struct sk_buff *skb, struct net_device *dev) 1034static netdev_tx_t olympic_xmit(struct sk_buff *skb,
1035 struct net_device *dev)
1034{ 1036{
1035 struct olympic_private *olympic_priv=netdev_priv(dev); 1037 struct olympic_private *olympic_priv=netdev_priv(dev);
1036 u8 __iomem *olympic_mmio=olympic_priv->olympic_mmio; 1038 u8 __iomem *olympic_mmio=olympic_priv->olympic_mmio;
diff --git a/drivers/net/tokenring/smctr.c b/drivers/net/tokenring/smctr.c
index 23e012f5bbf4..ebda61bc4c2f 100644
--- a/drivers/net/tokenring/smctr.c
+++ b/drivers/net/tokenring/smctr.c
@@ -234,7 +234,8 @@ static int smctr_rx_frame(struct net_device *dev);
234 234
235/* S */ 235/* S */
236static int smctr_send_dat(struct net_device *dev); 236static int smctr_send_dat(struct net_device *dev);
237static int smctr_send_packet(struct sk_buff *skb, struct net_device *dev); 237static netdev_tx_t smctr_send_packet(struct sk_buff *skb,
238 struct net_device *dev);
238static int smctr_send_lobe_media_test(struct net_device *dev); 239static int smctr_send_lobe_media_test(struct net_device *dev);
239static int smctr_send_rpt_addr(struct net_device *dev, MAC_HEADER *rmf, 240static int smctr_send_rpt_addr(struct net_device *dev, MAC_HEADER *rmf,
240 __u16 correlator); 241 __u16 correlator);
@@ -4571,7 +4572,8 @@ static void smctr_timeout(struct net_device *dev)
4571/* 4572/*
4572 * Gets skb from system, queues it and checks if it can be sent 4573 * Gets skb from system, queues it and checks if it can be sent
4573 */ 4574 */
4574static int smctr_send_packet(struct sk_buff *skb, struct net_device *dev) 4575static netdev_tx_t smctr_send_packet(struct sk_buff *skb,
4576 struct net_device *dev)
4575{ 4577{
4576 struct net_local *tp = netdev_priv(dev); 4578 struct net_local *tp = netdev_priv(dev);
4577 4579
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;