[ovs-dev] netdev: netdev_*_cache_cb() & netdev_dev_get_devices()
gaetano.catalli at gmail.com
Wed Feb 23 15:04:21 UTC 2011
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.
More information about the dev