[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <3375b4020901061808g527cb872ia64b47147783b91c@mail.gmail.com>
Date: Tue, 6 Jan 2009 22:08:39 -0400
From: "Huascar Tejeda" <htejeda@...il.com>
To: netdev@...r.kernel.org
Subject: [PATCH] net: reset network device counters on the fly
Hello everyone,
This is my first post to the mailing list and also my first kernel patch.
There was an scenario where I needed to clear network device counters
without shutting down the interface.
With this patch I add this functionality to /proc/net/dev.
Usage example:
echo clear eth0 > /proc/net/dev
echo clear all > /proc/net/dev
Thanks for your comments and please feel free to reply with any
suggestions you may have.
Huascar Tejeda
Download attachment "reset_netdev_counters.patch" of type "application/octet-stream" (2488 bytes)
Powered by blists - more mailing lists