]> git.baikalelectronics.ru Git - kernel.git/commit
net: openvswitch: use u64 for meter bucket
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Fri, 24 Apr 2020 00:08:06 +0000 (08:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Apr 2020 01:26:11 +0000 (18:26 -0700)
commit1e1ccacc36c486f3849df69d96969bb6368c96cd
treefab2ca5995d63de8d623c0af97072e9ac8141486
parentfcdb46f7f6cd816a5ab65436c345095c3e41945c
net: openvswitch: use u64 for meter bucket

When setting the meter rate to 4+Gbps, there is an
overflow, the meters don't work as expected.

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>
net/openvswitch/meter.c
net/openvswitch/meter.h