diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-09-26 03:19:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-26 23:19:08 +0200 |
commit | 090bc03bc9387b135307dae69a3242173d86de8d (patch) | |
tree | 9101fee6344f4b45caf1a2e1b394a08759827618 /tools/testing/selftests/drivers | |
parent | Merge branch 'Generic-adjustment-for-flow-dissector-in-DSA' (diff) | |
download | linux-090bc03bc9387b135307dae69a3242173d86de8d.tar.xz linux-090bc03bc9387b135307dae69a3242173d86de8d.zip |
netdevsim: fix duplicated debugfs directory
The "ethtool" debugfs directory holds per-netdev knobs, so move
it from the device instance directory to the port directory.
This fixes the following warning when creating multiple ports:
debugfs: Directory 'ethtool' with parent 'netdevsim1' already present!
Fixes: ff1f7c17fb20 ("netdevsim: add pause frame stats")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/drivers')
-rwxr-xr-x | tools/testing/selftests/drivers/net/netdevsim/ethtool-pause.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/drivers/net/netdevsim/ethtool-pause.sh b/tools/testing/selftests/drivers/net/netdevsim/ethtool-pause.sh index dd6ad6501c9c..25c896b9e2eb 100755 --- a/tools/testing/selftests/drivers/net/netdevsim/ethtool-pause.sh +++ b/tools/testing/selftests/drivers/net/netdevsim/ethtool-pause.sh @@ -3,7 +3,7 @@ NSIM_ID=$((RANDOM % 1024)) NSIM_DEV_SYS=/sys/bus/netdevsim/devices/netdevsim$NSIM_ID -NSIM_DEV_DFS=/sys/kernel/debug/netdevsim/netdevsim$NSIM_ID +NSIM_DEV_DFS=/sys/kernel/debug/netdevsim/netdevsim$NSIM_ID/ports/0 NSIM_NETDEV= num_passes=0 num_errors=0 |