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:47:19 +0000 (10:47 -0700)
commit1aca400ce94e903a22e88bf5b1c29dc9109a30d5
treec349de84cef21aed0dbaf7c8d8197d30fa666030
parentafcea9ea04695308e42d23d088449e1d0de492ad
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