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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user