diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-08-31 15:50:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-01 04:13:26 -0400 |
commit | 61a84108547c1c017683f15311ccbede249fc6fa (patch) | |
tree | 3786cb1e39ca881a15576dfddfeef6105dc098a7 /drivers | |
parent | 25a79c41ce0ce88a4288adf278e9b0e00f228383 (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')
-rw-r--r-- | drivers/net/tokenring/3c359.c | 4 | ||||
-rw-r--r-- | drivers/net/tokenring/ibmtr.c | 6 | ||||
-rw-r--r-- | drivers/net/tokenring/lanstreamer.c | 6 | ||||
-rw-r--r-- | drivers/net/tokenring/olympic.c | 6 | ||||
-rw-r--r-- | drivers/net/tokenring/smctr.c | 6 | ||||
-rw-r--r-- | drivers/net/tokenring/tms380tr.c | 19 |
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); | |||
128 | static int xl_open(struct net_device *dev); | 128 | static int xl_open(struct net_device *dev); |
129 | static int xl_open_hw(struct net_device *dev) ; | 129 | static int xl_open_hw(struct net_device *dev) ; |
130 | static int xl_hw_reset(struct net_device *dev); | 130 | static int xl_hw_reset(struct net_device *dev); |
131 | static int xl_xmit(struct sk_buff *skb, struct net_device *dev); | 131 | static netdev_tx_t xl_xmit(struct sk_buff *skb, struct net_device *dev); |
132 | static void xl_dn_comp(struct net_device *dev); | 132 | static void xl_dn_comp(struct net_device *dev); |
133 | static int xl_close(struct net_device *dev); | 133 | static int xl_close(struct net_device *dev); |
134 | static void xl_set_rx_mode(struct net_device *dev); | 134 | static 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 | ||
1196 | static int xl_xmit(struct sk_buff *skb, struct net_device *dev) | 1196 | static 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); | |||
191 | static void tok_open_adapter(unsigned long dev_addr); | 191 | static void tok_open_adapter(unsigned long dev_addr); |
192 | static void open_sap(unsigned char type, struct net_device *dev); | 192 | static void open_sap(unsigned char type, struct net_device *dev); |
193 | static void tok_set_multicast_list(struct net_device *dev); | 193 | static void tok_set_multicast_list(struct net_device *dev); |
194 | static int tok_send_packet(struct sk_buff *skb, struct net_device *dev); | 194 | static netdev_tx_t tok_send_packet(struct sk_buff *skb, |
195 | struct net_device *dev); | ||
195 | static int tok_close(struct net_device *dev); | 196 | static int tok_close(struct net_device *dev); |
196 | static irqreturn_t tok_interrupt(int irq, void *dev_id); | 197 | static irqreturn_t tok_interrupt(int irq, void *dev_id); |
197 | static void initial_tok_int(struct net_device *dev); | 198 | static 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 | ||
1025 | static int tok_send_packet(struct sk_buff *skb, struct net_device *dev) | 1026 | static 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 | ||
204 | static int streamer_reset(struct net_device *dev); | 204 | static int streamer_reset(struct net_device *dev); |
205 | static int streamer_open(struct net_device *dev); | 205 | static int streamer_open(struct net_device *dev); |
206 | static int streamer_xmit(struct sk_buff *skb, struct net_device *dev); | 206 | static netdev_tx_t streamer_xmit(struct sk_buff *skb, |
207 | struct net_device *dev); | ||
207 | static int streamer_close(struct net_device *dev); | 208 | static int streamer_close(struct net_device *dev); |
208 | static void streamer_set_rx_mode(struct net_device *dev); | 209 | static void streamer_set_rx_mode(struct net_device *dev); |
209 | static irqreturn_t streamer_interrupt(int irq, void *dev_id); | 210 | static 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 | ||
1144 | static int streamer_xmit(struct sk_buff *skb, struct net_device *dev) | 1145 | static 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) ; | |||
182 | static int olympic_probe(struct pci_dev *pdev, const struct pci_device_id *ent); | 182 | static int olympic_probe(struct pci_dev *pdev, const struct pci_device_id *ent); |
183 | static int olympic_init(struct net_device *dev); | 183 | static int olympic_init(struct net_device *dev); |
184 | static int olympic_open(struct net_device *dev); | 184 | static int olympic_open(struct net_device *dev); |
185 | static int olympic_xmit(struct sk_buff *skb, struct net_device *dev); | 185 | static netdev_tx_t olympic_xmit(struct sk_buff *skb, |
186 | struct net_device *dev); | ||
186 | static int olympic_close(struct net_device *dev); | 187 | static int olympic_close(struct net_device *dev); |
187 | static void olympic_set_rx_mode(struct net_device *dev); | 188 | static void olympic_set_rx_mode(struct net_device *dev); |
188 | static void olympic_freemem(struct net_device *dev) ; | 189 | static 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 | ||
1033 | static int olympic_xmit(struct sk_buff *skb, struct net_device *dev) | 1034 | static 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 */ |
236 | static int smctr_send_dat(struct net_device *dev); | 236 | static int smctr_send_dat(struct net_device *dev); |
237 | static int smctr_send_packet(struct sk_buff *skb, struct net_device *dev); | 237 | static netdev_tx_t smctr_send_packet(struct sk_buff *skb, |
238 | struct net_device *dev); | ||
238 | static int smctr_send_lobe_media_test(struct net_device *dev); | 239 | static int smctr_send_lobe_media_test(struct net_device *dev); |
239 | static int smctr_send_rpt_addr(struct net_device *dev, MAC_HEADER *rmf, | 240 | static 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 | */ |
4574 | static int smctr_send_packet(struct sk_buff *skb, struct net_device *dev) | 4575 | static 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" */ |
145 | static struct net_device_stats *tms380tr_get_stats(struct net_device *dev); | 145 | static struct net_device_stats *tms380tr_get_stats(struct net_device *dev); |
146 | /* "H" */ | 146 | /* "H" */ |
147 | static int tms380tr_hardware_send_packet(struct sk_buff *skb, | 147 | static 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" */ |
150 | static int tms380tr_init_adapter(struct net_device *dev); | 150 | static int tms380tr_init_adapter(struct net_device *dev); |
151 | static void tms380tr_init_ipb(struct net_local *tp); | 151 | static void tms380tr_init_ipb(struct net_local *tp); |
@@ -165,7 +165,8 @@ static int tms380tr_reset_adapter(struct net_device *dev); | |||
165 | static void tms380tr_reset_interrupt(struct net_device *dev); | 165 | static void tms380tr_reset_interrupt(struct net_device *dev); |
166 | static void tms380tr_ring_status_irq(struct net_device *dev); | 166 | static void tms380tr_ring_status_irq(struct net_device *dev); |
167 | /* "S" */ | 167 | /* "S" */ |
168 | static int tms380tr_send_packet(struct sk_buff *skb, struct net_device *dev); | 168 | static netdev_tx_t tms380tr_send_packet(struct sk_buff *skb, |
169 | struct net_device *dev); | ||
169 | static void tms380tr_set_multicast_list(struct net_device *dev); | 170 | static void tms380tr_set_multicast_list(struct net_device *dev); |
170 | static int tms380tr_set_mac_address(struct net_device *dev, void *addr); | 171 | static 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 | */ |
602 | static int tms380tr_send_packet(struct sk_buff *skb, struct net_device *dev) | 603 | static 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 | */ |
616 | static int tms380tr_hardware_send_packet(struct sk_buff *skb, struct net_device *dev) | 618 | static 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; |