summaryrefslogtreecommitdiff
path: root/net/openvswitch/meter.h
diff options
context:
space:
mode:
authorTonghao Zhang <xiangxia.m.yue@gmail.com>2020-04-24 03:08:06 +0300
committerDavid S. Miller <davem@davemloft.net>2020-04-24 04:26:11 +0300
commite57358873bb5d6caa882b9684f59140912b37dde (patch)
treefab2ca5995d63de8d623c0af97072e9ac8141486 /net/openvswitch/meter.h
parentc77350089052cafa8125169e37463ab7028d6a18 (diff)
downloadlinux-e57358873bb5d6caa882b9684f59140912b37dde.tar.xz
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>
Diffstat (limited to 'net/openvswitch/meter.h')
-rw-r--r--net/openvswitch/meter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/meter.h b/net/openvswitch/meter.h
index 61a3ca43cd77..0c33889a8515 100644
--- a/net/openvswitch/meter.h
+++ b/net/openvswitch/meter.h
@@ -26,7 +26,7 @@ struct dp_meter_band {
u32 type;
u32 rate;
u32 burst_size;
- u32 bucket; /* 1/1000 packets, or in bits */
+ u64 bucket; /* 1/1000 packets, or in bits */
struct ovs_flow_stats stats;
};