Re: [PATCH net v2] openvswitch: meter: fix the incorrect calculation of max delta_t

2018-03-11 Thread David Miller
From: zhangliping Date: Fri, 9 Mar 2018 10:08:50 +0800 > From: zhangliping > > Max delat_t should be the full_bucket/rate instead of the full_bucket. > Also report EINVAL if the rate is zero. > > Fixes: 96fbc13d7e77 ("openvswitch: Add meter infrastructure") > Cc: Andy Zhou > Signed-off-by: z

Re: [PATCH net v2] openvswitch: meter: fix the incorrect calculation of max delta_t

2018-03-10 Thread Pravin Shelar
On Thu, Mar 8, 2018 at 6:08 PM, zhangliping wrote: > From: zhangliping > > Max delat_t should be the full_bucket/rate instead of the full_bucket. > Also report EINVAL if the rate is zero. > > Fixes: 96fbc13d7e77 ("openvswitch: Add meter infrastructure") > Cc: Andy Zhou > Signed-off-by: zhanglipi

[PATCH net v2] openvswitch: meter: fix the incorrect calculation of max delta_t

2018-03-08 Thread zhangliping
From: zhangliping Max delat_t should be the full_bucket/rate instead of the full_bucket. Also report EINVAL if the rate is zero. Fixes: 96fbc13d7e77 ("openvswitch: Add meter infrastructure") Cc: Andy Zhou Signed-off-by: zhangliping --- V2: report EINVAL if the rate is 0 to avoid divide by zer