octeontx2-pf: Qos: Validate quantum parameter
commit e870b196ddfa862a01c29c1dd9d88210430bf2ec from git@git.assembla.com:cavium/WindRiver.linux.git Max supported Round robin weight is different on octeontx2 and CN10K. Current implementation does not perform out of bound check for the quantum parameter. This patch implements the same. Fixes: 21568f0298f8 ("octeontx2-pf: qos: Fix dwrr child priority") Change-Id: Ia08c02f03755591032daa8364f4c0a170c156215 Signed-off-by: Hariprasad Kelam <hkelam@marvell.com> Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/107612 Reviewed-by: Sunil Kovvuri Goutham <sgoutham@marvell.com> Tested-by: Sunil Kovvuri Goutham <sgoutham@marvell.com> Signed-off-by: Ruiqiang Hao <Ruiqiang.Hao@windriver.com>
Please register or sign in to comment