Skip to content
  • Thomas Haller's avatar
    platform: sort slaves after their master devices · 5023af9b
    Thomas Haller authored and Dan Williams's avatar Dan Williams committed
    Slaves should get sorted after their masters so that when generating
    connections, the NMManager knows about the masters already.
    
    The convoluted logic here is to ensure that:
    
    1) the kernel doesn't pass bad information that causes NM to crash
    or infinite loop
    
    2) that with complicated parent/child relationships (like a VLAN interface
    with a parent that is also a slave), children always get sorted after
    *all* of their ancestors.  The previous code was only sorting children
    after their immediate parent/master's ifindex, but not actually after
    the parent in the returned list.
    5023af9b