selftests: mlxsw: Set headroom size of correct port
authorIdo Schimmel <idosch@nvidia.com>
Wed, 30 Dec 2020 11:42:51 +0000 (13:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jan 2021 19:18:14 +0000 (20:18 +0100)
commit22c0b151bca433b5ce545b36dc36b049aab84148
tree195ecbec9bbe1ff510c08293155b67564464e092
parent7b81c2f8ad8fb424a449b7d5aa52fc53b553cbc9
selftests: mlxsw: Set headroom size of correct port

[ Upstream commit 2ff2c7e274392871bfdee00ff2adbb8ebae5d240 ]

The test was setting the headroom size of the wrong port. This was not
visible because of a firmware bug that canceled this bug.

Set the headroom size of the correct port, so that the test will pass
with both old and new firmware versions.

Fixes: bfa804784e32 ("selftests: mlxsw: Add a PFC test")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/20201230114251.394009-1-idosch@idosch.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/drivers/net/mlxsw/qos_pfc.sh