• Jiri Pirko's avatar
    netdevsim: create devlink instance per netdevsim instance · 5fc49422
    Jiri Pirko authored
    Currently there is one devlink instance created per network namespace.
    That is quite odd considering the fact that devlink instance should
    represent an ASIC. The following patches are going to move the devlink
    instance even more down to a bus device, but until then, have one
    devlink instance per netdevsim instance. Struct nsim_devlink is
    introduced to hold fib setting.
    
    The changes in the fib code are only related to holding the
    configuration per devlink instance instead of network namespace.
    Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    5fc49422
netdevsim.h 4.36 KB