We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fb7473 commit 4240dbdCopy full SHA for 4240dbd
tools/testing/selftests/drivers/net/mlxsw/mlxsw_lib.sh
@@ -0,0 +1,13 @@
1
+#!/bin/bash
2
+# SPDX-License-Identifier: GPL-2.0
3
+
4
+##############################################################################
5
+# Defines
6
7
+if [[ ! -v MLXSW_CHIP ]]; then
8
+ MLXSW_CHIP=$(devlink -j dev info $DEVLINK_DEV | jq -r '.[][]["driver"]')
9
+ if [ -z "$MLXSW_CHIP" ]; then
10
+ echo "SKIP: Device $DEVLINK_DEV doesn't support devlink info command"
11
+ exit 1
12
+ fi
13
+fi
0 commit comments