app/testpmd: fix integer overflow
authorJasvinder Singh <jasvinder.singh@intel.com>
Thu, 19 Oct 2017 09:38:18 +0000 (10:38 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:00 +0000 (02:33 +0200)
commitda101321e746b5c538f3b4d990d9a9c06c8a4d44
tree9c9a60d5808c688f75be3e9bbb868f2b8eab939f
parent826b742b1cf90c16a417fdf1b76a9830ec5bb53d
app/testpmd: fix integer overflow

Fixed integer overflow by casting link_params.link_speed to
uint64_t type.

Coverity issue: 195016
Fixes: 5b590fbe09b6 ("app/testpmd: add traffic management forwarding mode")

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/tm.c