GNOME Bugzilla – Bug 762154
[review] lr/conn-device-ifname: prevent connections from being available on devices of different name
Last modified: 2016-02-17 18:29:48 UTC
The device now checks the manager that constructs the name using the device factory. For virtual devices, manager resolves the parent. This fixes the situation where the vlans devices could get mixed up and makes the name determination more straightforward by always delegating it to the factory. https://cgit.freedesktop.org/NetworkManager/NetworkManager/log/?h=lr/conn-device-ifname
>> device-factory: always use the factory to determine the connection's the change to nm-device-team.c does not belong to this commit. >> device: move the interface name check from manager + gs_free char *conn_iface = nm_manager_get_connection_iface (nm_manager_get + connection, + NULL, NULL); I think we call check_connection_compatible() *a lot*. So this adds extra pressure because it involves an extra lookup for the factory and the parent device. Might be not an issue, could be. You could optimize that, by not overwriting get_connection_iface() for devices without parent device. This could shortcut the common case significantly.
Updated the branch.
merged: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=84543df1db570f2fe8bae38c3b003e6ca719eda3