patch-2.4.3 linux/drivers/net/smc9194.c
Next file: linux/drivers/net/sonic.h
Previous file: linux/drivers/net/smc-ultra.c
Back to the patch index
Back to the overall index
- Lines: 59
- Date:
Tue Mar 20 12:05:01 2001
- Orig file:
v2.4.2/linux/drivers/net/smc9194.c
- Orig date:
Wed Feb 21 18:20:29 2001
diff -u --recursive --new-file v2.4.2/linux/drivers/net/smc9194.c linux/drivers/net/smc9194.c
@@ -238,12 +238,12 @@
. This is a separate procedure to handle the receipt of a packet, to
. leave the interrupt code looking slightly cleaner
*/
-inline static void smc_rcv( struct net_device *dev );
+static inline void smc_rcv( struct net_device *dev );
/*
. This handles a TX interrupt, which is only called when an error
. relating to a packet is sent.
*/
-inline static void smc_tx( struct net_device * dev );
+static inline void smc_tx( struct net_device * dev );
/*
------------------------------------------------------------
@@ -616,7 +616,7 @@
if ( packet_no & 0x80 ) {
/* or isn't there? BAD CHIP! */
printk(KERN_DEBUG CARDNAME": Memory allocation failed. \n");
- dev_kfree_skb_irq(skb);
+ dev_kfree_skb_any(skb);
lp->saved_skb = NULL;
netif_wake_queue(dev);
return;
@@ -679,7 +679,7 @@
PRINTK2((CARDNAME": Sent packet of length %d \n",length));
lp->saved_skb = NULL;
- dev_kfree_skb_irq (skb);
+ dev_kfree_skb_any (skb);
dev->trans_start = jiffies;
@@ -1341,9 +1341,9 @@
skb = dev_alloc_skb( packet_length + 5);
if ( skb == NULL ) {
- printk(KERN_NOTICE CARDNAME
- ": Low memory, packet dropped.\n");
+ printk(KERN_NOTICE CARDNAME ": Low memory, packet dropped.\n");
lp->stats.rx_dropped++;
+ goto done;
}
/*
@@ -1396,11 +1396,10 @@
lp->stats.rx_length_errors++;
if ( status & RS_BADCRC) lp->stats.rx_crc_errors++;
}
+
+done:
/* error or good, tell the card to get rid of this packet */
outw( MC_RELEASE, ioaddr + MMU_CMD );
-
-
- return;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)