[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4820C496.1040204@teltonika.lt>
Date: Tue, 06 May 2008 23:50:30 +0300
From: Paulius Zaleckas <paulius.zaleckas@...tonika.lt>
To: netdev@...r.kernel.org
Cc: netdev@...r.kernel.org
Subject: [PATCH] atmel: use netstats in net_device structure
Use net_device_stats from net_device structure instead of local.
Kill atmel_get_stats function, because by default it is used
identical internal_stats function from net/core/dev.c
No need to memset stats to 0, because they are allocated by kzalloc.
P.S. Someone should cleanup init_atmel_card function from unneeded
initializations to 0/NULL. Out of scope for this patch.
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@...tonika.lt>
View attachment "atmel_netstats.patch" of type "text/x-patch" (6475 bytes)
Powered by blists - more mailing lists