patch-2.3.29 linux/drivers/net/tlan.c

Next file: linux/drivers/net/tokenring/tms380tr.c
Previous file: linux/drivers/net/strip.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.28/linux/drivers/net/tlan.c linux/drivers/net/tlan.c
@@ -1130,8 +1130,8 @@
 		printk( "TLAN:  Received interrupt for uncompleted TX frame.\n" );
 	}
 
-#if LINUX_KERNEL_VERSION > 0x20100
-	priv->stats->tx_bytes += head_list->frameSize;
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,1,0)
+	priv->stats.tx_bytes += head_list->frameSize;
 #endif
 
 	head_list->cStat = TLAN_CSTAT_UNUSED;
@@ -1250,8 +1250,8 @@
 			skb_reserve( skb, 2 );
 			t = (void *) skb_put( skb, head_list->frameSize );
 
-#if LINUX_KERNEL_VERSION > 0x20100
-			priv->stats->rx_bytes += head_list->frameSize;
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,1,0)
+			priv->stats.rx_bytes += head_list->frameSize;
 #endif
 
 			memcpy( t, head_buffer, head_list->frameSize );
@@ -1274,8 +1274,8 @@
 			skb = (struct sk_buff *) head_list->buffer[9].address;
 			head_list->buffer[9].address = 0;
 			skb_trim( skb, head_list->frameSize );
-#if LINUX_KERNEL_VERSION > 0x20100
-			priv->stats->rx_bytes += head_list->frameSize;
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,1,0)
+			priv->stats.rx_bytes += head_list->frameSize;
 #endif
 
 			skb->protocol = eth_type_trans( skb, dev );

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)