net/softnic: fix integer overflow
authorJasvinder Singh <jasvinder.singh@intel.com>
Thu, 19 Oct 2017 09:39:45 +0000 (10:39 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:00 +0000 (02:33 +0200)
commit762be1b25b9807d23b55a281c02c1791deb3b117
tree66ecfdb9c83b698729776ced70eb498877b31778
parentda101321e746b5c538f3b4d990d9a9c06c8a4d44
net/softnic: fix integer overflow

Fixed integer overflow by casting hard_rate to uint64_t type.

Coverity issue: 195020
Fixes: 8316b9816b79 ("net/softnic: support traffic management")

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/softnic/rte_eth_softnic_tm.c