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

2020-04-20 Thread Pravin Shelar
On Sun, Apr 19, 2020 at 5:28 PM Tonghao Zhang wrote: > > On Mon, Apr 20, 2020 at 1:31 AM Pravin Shelar wrote: > > > > On Sat, Apr 18, 2020 at 10:25 AM wrote: > > > > > > From: Tonghao Zhang > > > > > > Don't allow user to create meter unlimitedly, > > > which may cause to consume a large

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

2020-04-19 Thread Tonghao Zhang
On Mon, Apr 20, 2020 at 1:31 AM Pravin Shelar wrote: > > On Sat, Apr 18, 2020 at 10:25 AM wrote: > > > > From: Tonghao Zhang > > > > Don't allow user to create meter unlimitedly, > > which may cause to consume a large amount of kernel memory. > > The 200,000 meters may be fine in general case.

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

2020-04-19 Thread Pravin Shelar
On Sat, Apr 18, 2020 at 10:25 AM wrote: > > From: Tonghao Zhang > > Don't allow user to create meter unlimitedly, > which may cause to consume a large amount of kernel memory. > The 200,000 meters may be fine in general case. > > Cc: Pravin B Shelar > Cc: Andy Zhou > Signed-off-by: Tonghao

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

2020-04-18 Thread xiangxia . m . yue
From: Tonghao Zhang Don't allow user to create meter unlimitedly, which may cause to consume a large amount of kernel memory. The 200,000 meters may be fine in general case. Cc: Pravin B Shelar Cc: Andy Zhou Signed-off-by: Tonghao Zhang --- net/openvswitch/meter.c | 21 +++--