2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

netdev-linux: Properly store netdev_dev pointer for RTNL callbacks.

We were storing a struct netdev_dev_linux ** instead of a
netdev_dev_linux * in the cache map.  This prevented the cache
from being invalidated on changes such as link status.
This commit is contained in:
Jesse Gross
2010-01-16 09:45:45 -05:00
parent 56244b8101
commit 139faa3116

View File

@@ -582,7 +582,7 @@ netdev_linux_create_system(const char *name, const char *type UNUSED,
}
netdev_dev = xzalloc(sizeof *netdev_dev);
netdev_dev->shash_node = shash_add(&cache_map, name, &netdev_dev);
netdev_dev->shash_node = shash_add(&cache_map, name, netdev_dev);
netdev_dev_init(&netdev_dev->netdev_dev, name, &netdev_linux_class);
*netdev_devp = &netdev_dev->netdev_dev;