On 10/16/19 7:28 AM, Jiri Pirko wrote: > Tue, Oct 15, 2019 at 08:34:56PM CEST, dsah...@gmail.com wrote: >> On 10/9/19 8:49 AM, Jiri Pirko wrote: >>> From: Jiri Pirko <j...@mellanox.com> >>> >>> Extend ll_name_to_index() to get the index of a netdevice using >>> alternative interface name. Allow alternative long names to pass checks >>> in couple of ip link/addr commands. >> >> you don't add altnames to the name_hash, so the lookup can not find a >> match based on altname. > > you are right, it is always going to fall back to ll_link_get(). I will > do another patch to add the altnames to name_hash. It can go in > separatelly or I can add that to this patchset. Up to you.
this patch claims to do the lookup, so it should actually be able to do a lookup.