It seems that the tlan driver has missed some updates during the
2.1 life cycle. It does not support octet statistics (in 2.2.14).
As I am not a member of the list, plse Cc: me for any comments.
The following patch corrects this
--- tlan.c~ Tue Jan 4 19:12:18 2000
+++ tlan.c Thu Feb 10 09:43:10 2000
@@ -1132,8 +1132,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;
@@ -1252,8 +1252,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 );
@@ -1276,8 +1276,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 );
/Niels
-- Niels Baggesen, UNI-C, Olof Palmes Alle 38, DK-8200 Aarhus N, Denmark Email: Niels.Baggesen@uni-c.dk - Tel: +45 8937 6669 - Fax: +45 8937 6677 --- The purpose of computing is insight, not numbers ---- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:29 EST