diff options
author | zhangliping <zhangliping02@baidu.com> | 2018-03-09 10:08:50 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-31 18:05:41 +0200 |
commit | cce2b12ee5af4a29df2b609c668b203dfa6a4649 (patch) | |
tree | ed439f4e9b8c0982166b24bebfd225d294b00006 /drivers | |
parent | 1759a5455f7dff6391f321aad6e7ed9c2fe216a9 (diff) |
openvswitch: meter: fix the incorrect calculation of max delta_t
[ Usptream commit ddc502dfed600bff0b61d899f70d95b76223fdfc ]
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 <azhou@ovn.org>
Signed-off-by: zhangliping <zhangliping02@baidu.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions