[ovs-dev] netdev: netdev_*_cache_cb() & netdev_dev_get_devices()
blp at nicira.com
Wed Feb 23 17:32:29 UTC 2011
On Wed, Feb 23, 2011 at 04:06:01PM +0100, Gaetano Catalli wrote:
> I am reading the netdev_linux_cache_cb() function. In the 'else'
> branch, the cached values for all the netdev_devs need to be
> To do so, you use the netdev_dev_get_devices() function to store in a
> temporary shash structure the list of devices and then you walk
> through this list to reset the cache of each device.
> Is it possible to have a method, in the netdev API, that allows to
> walk through the list of created devices without the need of
> allocating and freeing a temporary shash structure?
> This would probably avoid also the double looping through the
> 'netdev_dev_hash' and the temporary shash structure.
It's possible but it doesn't seem very valuable to optimize this rare
More information about the dev