On 1/12/21 12:33 PM, [email protected] wrote:
> From: Tonghao Zhang <[email protected]>
> 
> When setting the meter rate to 4.3+Gbps, there is an overflow, the
> meters don't work as expected.
> 
> $ ovs-ofctl -O OpenFlow13 add-meter br-int "meter=1 kbps stats 
> bands=type=drop rate=4294968"
> 
> Before the patch, the buckets of meters was stored in its burst_size
> of ofputil_meter_band. It was overflow when we set the rate to 4294968.
> This patch don't change the public API and structure. This patch remove
> the "up" from dp_meter_band, and introduce the type, rate to datapath's
> meter bands. Then datapath don't depend upper layer.
> 
> Signed-off-by: Tonghao Zhang <[email protected]>
> ---

Hi.  Unit tests are failing with these patches applied:

990: dpif-netdev - meters                            FAILED (dpif-netdev.at:319)

Please, check them.

Best regards, Ilya Maximets.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to