netdev-linux: Cast policer rate to uint64_t to avoid overflow
authorThomas Graf <tgraf@noironetworks.com>
Fri, 29 Aug 2014 10:20:21 +0000 (12:20 +0200)
committerBen Pfaff <blp@nicira.com>
Fri, 29 Aug 2014 17:48:42 +0000 (10:48 -0700)
commit6565262571773d6a9ff01761e2358ada0f00be0b
tree670fef64612aeec06932995dbfd3b0df5a926bf4
parent32f34e8f8ee6ee11aa14140876d19a661ba0fa72
netdev-linux: Cast policer rate to uint64_t to avoid overflow

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@noironetworks.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netdev-linux.c