commit | eb58eebc7fb5e23c9cc7d557c0a9236630591526 | [log] [tgz] |
---|---|---|
author | Tonghao Zhang <xiangxia.m.yue@gmail.com> | Fri Apr 24 08:08:03 2020 +0800 |
committer | David S. Miller <davem@davemloft.net> | Thu Apr 23 18:26:11 2020 -0700 |
tree | 8c1a3c09ebc1b041f6abf4416a1c4b9382b2cc7b | |
parent | c7c4c44c9a95d87e50ced38f7480e779cb472174 [diff] |
net: openvswitch: set max limitation to meters Don't allow user to create meter unlimitedly, which may cause to consume a large amount of kernel memory. The max number supported is decided by physical memory and 20K meters as default. Cc: Pravin B Shelar <pshelar@ovn.org> Cc: Andy Zhou <azhou@ovn.org> Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com> Acked-by: Pravin B Shelar <pshelar@ovn.org> Signed-off-by: David S. Miller <davem@davemloft.net>