platform: add index for links by ifname
Downsides: - Add some additional overhead to manage the index - The NMPCacheId struct grows to 16 bytes, affecting hashing performance for all object types. Still do it, based on the assumption that it doesn't matter for a low number of interfaces. But the O(1) access time matters when having lots of interfaces.
Showing with 54 additions and 2 deletions