Re: [ovs-dev] [PATCH] netdev-linux: Cast policer rate to uint64_t to avoid overflow

2014-08-29 Thread Ben Pfaff
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 Thanks, I applied this to master, branch-2.[3210], and bran

[ovs-dev] [PATCH] netdev-linux: Cast policer rate to uint64_t to avoid overflow

2014-08-29 Thread Thomas Graf
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 --- lib/netdev-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c