aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/net/mlxsw
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-05-04 08:40:37 -0700
committerJakub Kicinski <kuba@kernel.org>2022-05-05 15:47:23 -0700
commitc4a67a21a6d255ddcbaa076c0412aad73c7e0c02 (patch)
tree84afb52dffbb084537ad79f9a497a2fda29e6d67 /tools/testing/selftests/drivers/net/mlxsw
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (diff)
downloadlinux-dev-c4a67a21a6d255ddcbaa076c0412aad73c7e0c02.tar.xz
linux-dev-c4a67a21a6d255ddcbaa076c0412aad73c7e0c02.zip
Revert "Merge branch 'mlxsw-line-card-model'"
This reverts commit 5e927a9f4b9f29d78a7c7d66ea717bb5c8bbad8e, reversing changes made to cfc1d91a7d78cf9de25b043d81efcc16966d55b3. The discussion is still ongoing so let's remove the uAPI until the discussion settles. Link: https://lore.kernel.org/all/20220425090021.32e9a98f@kernel.org/ Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://lore.kernel.org/r/20220504154037.539442-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/drivers/net/mlxsw')
-rwxr-xr-xtools/testing/selftests/drivers/net/mlxsw/devlink_linecard.sh61
1 files changed, 0 insertions, 61 deletions
diff --git a/tools/testing/selftests/drivers/net/mlxsw/devlink_linecard.sh b/tools/testing/selftests/drivers/net/mlxsw/devlink_linecard.sh
index 53a65f416770..08a922d8b86a 100755
--- a/tools/testing/selftests/drivers/net/mlxsw/devlink_linecard.sh
+++ b/tools/testing/selftests/drivers/net/mlxsw/devlink_linecard.sh
@@ -152,7 +152,6 @@ unprovision_test()
LC_16X100G_TYPE="16x100G"
LC_16X100G_PORT_COUNT=16
-LC_16X100G_DEVICE_COUNT=4
supported_types_check()
{
@@ -178,42 +177,6 @@ supported_types_check()
check_err $? "16X100G not found between supported types of linecard $lc"
}
-lc_info_check()
-{
- local lc=$1
- local fixed_hw_revision
- local running_ini_version
-
- fixed_hw_revision=$(devlink lc -v info $DEVLINK_DEV lc $lc -j | \
- jq -e -r '.[][][].versions.fixed."hw.revision"')
- check_err $? "Failed to get linecard $lc fixed.hw.revision"
- log_info "Linecard $lc fixed.hw.revision: \"$fixed_hw_revision\""
- running_ini_version=$(devlink lc -v info $DEVLINK_DEV lc $lc -j | \
- jq -e -r '.[][][].versions.running."ini.version"')
- check_err $? "Failed to get linecard $lc running.ini.version"
- log_info "Linecard $lc running.ini.version: \"$running_ini_version\""
-}
-
-lc_devices_check()
-{
- local lc=$1
- local expected_device_count=$2
- local device_count
- local device
-
- device_count=$(devlink lc show $DEVLINK_DEV lc $lc -j | \
- jq -e -r ".[][][].devices |length")
- check_err $? "Failed to get linecard $lc device count"
- [ $device_count != 0 ]
- check_err $? "No device found on linecard $lc"
- [ $device_count == $expected_device_count ]
- check_err $? "Unexpected device count on linecard $lc (got $expected_device_count, expected $device_count)"
- for (( device=0; device<device_count; device++ ))
- do
- log_info "Linecard $lc device $device"
- done
-}
-
ports_check()
{
local lc=$1
@@ -243,8 +206,6 @@ provision_test()
unprovision_one $lc
fi
provision_one $lc $LC_16X100G_TYPE
- lc_devices_check $lc $LC_16X100G_DEVICE_COUNT
- lc_info_check $lc
ports_check $lc $LC_16X100G_PORT_COUNT
log_test "Provision"
}
@@ -259,26 +220,6 @@ interface_check()
setup_wait
}
-lc_devices_info_check()
-{
- local lc=$1
- local expected_device_count=$2
- local device_count
- local device
- local running_device_fw
-
- device_count=$(devlink lc info $DEVLINK_DEV lc $lc -j | \
- jq -e -r ".[][][].devices |length")
- check_err $? "Failed to get linecard $lc device count"
- for (( device=0; device<device_count; device++ ))
- do
- running_device_fw=$(devlink lc -v info $DEVLINK_DEV lc $lc -j | \
- jq -e -r ".[][][].devices[$device].versions.running.fw")
- check_err $? "Failed to get linecard $lc device $device running fw version"
- log_info "Linecard $lc device $device running.fw: \"$running_device_fw\""
- done
-}
-
activation_16x100G_test()
{
RET=0
@@ -295,8 +236,6 @@ activation_16x100G_test()
$ACTIVATION_TIMEOUT)
check_err $? "Failed to get linecard $lc activated (timeout)"
- lc_devices_info_check $lc $LC_16X100G_DEVICE_COUNT
-
interface_check
log_test "Activation 16x100G"