From: Rostislav Lisovy Date: Wed, 7 Dec 2011 17:26:12 +0000 (+0100) Subject: sllin: Network statistics for received CAN frames. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/linux-lin.git/commitdiff_plain/e9263b554c55bdd495a3dba976f28e784de8efd4 sllin: Network statistics for received CAN frames. --- diff --git a/sllin/sllin.c b/sllin/sllin.c index 0f7bff3..0be69d9 100644 --- a/sllin/sllin.c +++ b/sllin/sllin.c @@ -682,6 +682,8 @@ int sllin_kwthread(void *ptr) } release_skb: + sl->dev->stats.tx_packets++; + sl->dev->stats.tx_bytes += cf->can_dlc; clear_bit(SLF_MSGEVENT, &sl->flags); kfree_skb(sl->rec_skb); netif_wake_queue(sl->dev);