• Jiri Pirko's avatar
    devlink: introduce possibility to expose info about nested devlinks · c5e1bf8a
    Jiri Pirko authored
    In mlx5, there is a devlink instance created for PCI device. Also, one
    separate devlink instance is created for auxiliary device that
    represents the netdev of uplink port. This relation is currently
    invisible to the devlink user.
    
    Benefit from the rel infrastructure and allow for nested devlink
    instance to set the relationship for the nested-in devlink instance.
    Note that there may be many nested instances, therefore use xarray to
    hold the list of rel_indexes for individual nested instances.
    Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c5e1bf8a
devl_internal.h 11.2 KB