]> git.itanic.dy.fi Git - linux-stable/commit
selftests: mlxsw: Add PCI reset test
authorIdo Schimmel <idosch@nvidia.com>
Wed, 15 Nov 2023 12:17:23 +0000 (13:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Nov 2023 17:38:51 +0000 (17:38 +0000)
commitaf51d6bd0b130b06fc58b35fee8f93b0a5c77f21
tree2ea813d296f212713bc7f4372b5b3aebff3359de
parent5e12d0898583026581e4f0506ff7c0b15a73a1c5
selftests: mlxsw: Add PCI reset test

Test that PCI reset works correctly by verifying that only the expected
reset methods are supported and that after issuing the reset the ifindex
of the port changes.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/pci_reset.sh [new file with mode: 0755]