perf tests test_bridge_fdb_stress.sh: Fix redirection of stderr to stdinIt's not 2&>1, the correct is 2>&1.Signed-off-by: Patrice Duroux <patrice.duroux@gmail.com>Cc: linux-kselftest@vger.kernel
perf tests test_bridge_fdb_stress.sh: Fix redirection of stderr to stdinIt's not 2&>1, the correct is 2>&1.Signed-off-by: Patrice Duroux <patrice.duroux@gmail.com>Cc: linux-kselftest@vger.kernel.orgLink: https://lore.kernel.org/r/20230303193058.21274-1-patrice.duroux@gmail.comSigned-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
show more ...
selftests: net: Fix cross-tree inclusion of scriptsWhen exporting and running a subset of selftests via kselftest, files fromparts of the source tree which were not exported are not available. A f
selftests: net: Fix cross-tree inclusion of scriptsWhen exporting and running a subset of selftests via kselftest, files fromparts of the source tree which were not exported are not available. A fewtests are trying to source such files. Address the problem by usingsymlinks.The problem can be reproduced by running:make -C tools/testing/selftests gen_tar TARGETS="drivers/net/bonding"[... extract archive ...]./run_kselftest.shor:make kselftest KBUILD_OUTPUT=/tmp/kselftests TARGETS="drivers/net/bonding"Fixes: bbb774d921e2 ("net: Add tests for bonding and team address list management")Fixes: eccd0a80dc7f ("selftests: net: dsa: add a stress test for unlocked FDB operations")Link: https://lore.kernel.org/netdev/40f04ded-0c86-8669-24b1-9a313ca21076@redhat.com/Reported-by: Jonathan Toppins <jtoppins@redhat.com>Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>Reviewed-by: Jonathan Toppins <jtoppins@redhat.com>Signed-off-by: Jakub Kicinski <kuba@kernel.org>
selftests: net: dsa: symlink the tc_actions.sh testThis has been validated on the Ocelot/Felix switch family (NXP LS1028A)and should be relevant to any switch driver that offloads the tc-floweran
selftests: net: dsa: symlink the tc_actions.sh testThis has been validated on the Ocelot/Felix switch family (NXP LS1028A)and should be relevant to any switch driver that offloads the tc-flowerand/or tc-matchall actions trap, drop, accept, mirred, for which DSA hasoperations.TEST: gact drop and ok (skip_hw) [ OK ]TEST: mirred egress flower redirect (skip_hw) [ OK ]TEST: mirred egress flower mirror (skip_hw) [ OK ]TEST: mirred egress matchall mirror (skip_hw) [ OK ]TEST: mirred_egress_to_ingress (skip_hw) [ OK ]TEST: gact drop and ok (skip_sw) [ OK ]TEST: mirred egress flower redirect (skip_sw) [ OK ]TEST: mirred egress flower mirror (skip_sw) [ OK ]TEST: mirred egress matchall mirror (skip_sw) [ OK ]TEST: trap (skip_sw) [ OK ]TEST: mirred_egress_to_ingress (skip_sw) [ OK ]Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>Link: https://lore.kernel.org/r/20220831170839.931184-1-vladimir.oltean@nxp.comSigned-off-by: Jakub Kicinski <kuba@kernel.org>
selftests: net: dsa: Add a Makefile which installs the selftestsAdd a Makefile which takes care of installing the selftests intools/testing/selftests/drivers/net/dsa. This can be used to install a
selftests: net: dsa: Add a Makefile which installs the selftestsAdd a Makefile which takes care of installing the selftests intools/testing/selftests/drivers/net/dsa. This can be used to install allDSA specific selftests and forwarding.config using the same approach asfor the selftests in tools/testing/selftests/net/forwarding.Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>Link: https://lore.kernel.org/r/20220727191642.480279-1-martin.blumenstingl@googlemail.comSigned-off-by: Jakub Kicinski <kuba@kernel.org>
selftests: drivers: dsa: add a subset of forwarding selftestsThis adds an initial subset of forwarding selftests which I consideredto be relevant for DSA drivers, along with a forwarding.config th
selftests: drivers: dsa: add a subset of forwarding selftestsThis adds an initial subset of forwarding selftests which I consideredto be relevant for DSA drivers, along with a forwarding.config thatmakes it easier to run them (disables veth pair creation, makes sure MACaddresses are unique and stable).The intention is to request driver writers to run these selftests duringreview and make sure that the tests pass, or at least that the problemsare known.Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>Signed-off-by: David S. Miller <davem@davemloft.net>
selftests: net: dsa: add a stress test for unlocked FDB operationsThis test is a bit strange in that it is perhaps more manual thanothers: it does not transmit a clear OK/FAIL verdict, because use
selftests: net: dsa: add a stress test for unlocked FDB operationsThis test is a bit strange in that it is perhaps more manual thanothers: it does not transmit a clear OK/FAIL verdict, because user spacedoes not have synchronous feedback from the kernel. If a hardware accessfails, it is in deferred context.Nonetheless, on sja1105 I have used it successfully to find and solve aconcurrency issue, so it can be used as a starting point for otherdriver maintainers too.Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>Signed-off-by: David S. Miller <davem@davemloft.net>