1. 04 Oct, 2019 2 commits
    • Jiri Pirko's avatar
      net: fib_notifier: make FIB notifier per-netns · 7c550daf
      Jiri Pirko authored
      Currently all users of FIB notifier only cares about events in init_net.
      Later in this patchset, users get interested in other namespaces too.
      However, for every registered block user is interested only about one
      namespace. Make the FIB notifier registration per-netns and avoid
      unnecessary calls of notifier block for other namespaces.
      Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7c550daf
    • Jiri Pirko's avatar
      netdevsim: change fib accounting and limitations to be per-device · a5facc4c
      Jiri Pirko authored
      Currently, the accounting is done per-namespace. However, devlink
      instance is always in init_net namespace for now, so only the accounting
      related to init_net is used. Limitations set using devlink resources
      are only considered for init_net. nsim_devlink_net() always
      returns init_net always.
      
      Make the accounting per-device. This brings no functional change.
      Per-device accounting has the same values as per-net.
      For a single netdevsim instance, the behaviour is exactly the same
      as before. When multiple netdevsim instances are created, each
      can have different limits.
      
      This is in prepare to implement proper devlink netns support. After
      that, the devlink instance which would exist in particular netns would
      account and limit that netns.
      Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
      Acked-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a5facc4c
  2. 03 Oct, 2019 10 commits
  3. 02 Oct, 2019 28 commits