[ovs-dev] [PATCH net-next v3 2/5] net: openvswitch: set max limitation to meters

Pravin Shelar pravin.ovn at gmail.com
Thu Apr 23 03:54:29 UTC 2020


On Wed, Apr 22, 2020 at 10:10 AM <xiangxia.m.yue at gmail.com> wrote:
>
> From: Tonghao Zhang <xiangxia.m.yue at gmail.com>
>
> 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 at ovn.org>
> Cc: Andy Zhou <azhou at ovn.org>
> Signed-off-by: Tonghao Zhang <xiangxia.m.yue at gmail.com>
> ---
>  net/openvswitch/meter.c | 57 +++++++++++++++++++++++++++++++++--------
>  net/openvswitch/meter.h |  2 ++
>  2 files changed, 49 insertions(+), 10 deletions(-)
>
Acked-by: Pravin B Shelar <pshelar at ovn.org>

Thanks.


More information about the dev mailing list