Re: [ovs-dev] [PATCH 1/3] netdev-linux: Cache result in netdev_linux_miimon_run()

2013-01-22 Thread Ben Pfaff
On Mon, Jan 21, 2013 at 03:10:00PM +0900, Simon Horman wrote: > In general the network devices don't change very often. > By caching the lookup made by netdev_linux_miimon_run() > calls to shash_add() and shash_destroy() destroy are avoided > reducing the use of malloc(), free() and hash_bytes(). >

[ovs-dev] [PATCH 1/3] netdev-linux: Cache result in netdev_linux_miimon_run()

2013-01-20 Thread Simon Horman
In general the network devices don't change very often. By caching the lookup made by netdev_linux_miimon_run() calls to shash_add() and shash_destroy() destroy are avoided reducing the use of malloc(), free() and hash_bytes(). In my test environment this increased the rate at which packets could