aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2019-10-03 11:49:26 +0200
committerDavid S. Miller <davem@davemloft.net>2019-10-04 11:10:55 -0700
commita5facc4cac4dc504397428c936ef1492ce4edd19 (patch)
treedd43d830a684075de0dcfe4e18295913bb4146f1 /include
parentnet: propagate errors correctly in register_netdevice() (diff)
downloadlinux-dev-a5facc4cac4dc504397428c936ef1492ce4edd19.tar.xz
linux-dev-a5facc4cac4dc504397428c936ef1492ce4edd19.zip
netdevsim: change fib accounting and limitations to be per-device
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: Jiri Pirko <jiri@mellanox.com> Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions