net/mvpp2: fix port speed overflow
authorDana Vardi <danat@marvell.com>
Sun, 11 Jul 2021 13:11:43 +0000 (16:11 +0300)
committerJerin Jacob <jerinj@marvell.com>
Mon, 12 Jul 2021 07:59:52 +0000 (09:59 +0200)
commit8fa07a68a6f842aa81b8949976e8088e2b6318a3
tree0764b885f5b3220c837182320178925e207eb9e7
parent6e695b0cda4728ec37bd0aa2310d4b967f4ca86d
net/mvpp2: fix port speed overflow

ethtool_cmd_speed return uint32 and after the arithmetic
operation in mrvl_get_max_rate func the result is out of range.

Fixes: 429c394417 ("net/mvpp2: support traffic manager")
Cc: stable@dpdk.org
Signed-off-by: Dana Vardi <danat@marvell.com>
Reviewed-by: Liron Himi <lironh@marvell.com>
drivers/net/mvpp2/mrvl_tm.c