[ovs-dev] [PATCH] netdev-linux: Cast policer rate to uint64_t to avoid overflow
Ben Pfaff
blp at nicira.com
Fri Aug 29 17:50:01 UTC 2014
On Fri, Aug 29, 2014 at 12:20:21PM +0200, Thomas Graf wrote:
> tc_fill_rate() takes a 64bit int, casting kbits_rate from int
> to uint64_t avoids a possible overflow when translating from
> kbits to bytes.
>
> Signed-off-by: Thomas Graf <tgraf at noironetworks.com>
Thanks, I applied this to master, branch-2.[3210], and branch-1.9.
More information about the dev
mailing list