diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-10-03 11:49:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-04 11:10:55 -0700 |
commit | a5facc4cac4dc504397428c936ef1492ce4edd19 (patch) | |
tree | dd43d830a684075de0dcfe4e18295913bb4146f1 /include/net/ip6_fib.h | |
parent | 9077f052abd5391a866dd99e27212213648becef (diff) | |
download | linux-a5facc4cac4dc504397428c936ef1492ce4edd19.tar.gz linux-a5facc4cac4dc504397428c936ef1492ce4edd19.tar.bz2 linux-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/net/ip6_fib.h')
0 files changed, 0 insertions, 0 deletions