selftests: forwarding: Move several selftests
Petr Machata authored

The tests in net/forwarding are generally expected to be HW-independent.
There are however several tests that, while not depending on any HW in
particular, nevertheless depend on being used on HW interfaces. Placing
these selftests to net/forwarding is confusing, because the selftest will
just report it can't be run on veth pairs. At the same time, placing them
to a particular driver's selftests subdirectory would be wrong.

Instead, add a new directory, drivers/net/hw, where these generic but HW
independent selftests should be placed. Move over several such tests
including one helper library.

Since typically these tests will not be expected to run, omit the directory
drivers/net/hw from the TARGETS list in selftests/Makefile. Retain a
Makefile in the new directory itself, so that a user can make -C into that
directory and act on those tests explicitly.

Cc: Roger Quadros <rogerq@kernel.org>
Cc: Tobias Waldekranz <tobias@waldekranz.com>
Cc: Danielle Ratson <danieller@nvidia.com>
Cc: Davide Caratti <dcaratti@redhat.com>
Cc: Johannes Nixdorf <jnixdorf-oss@avm.de>
Suggested-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/e11dae1f62703059e9fc2240004288ac7cc15756.1711464583.git.petrm@nvidia.com

Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
40d269c0
Name Last commit Last update
.gitignore
Makefile
README
bridge_fdb_learning_limit.sh
bridge_igmp.sh
bridge_locked_port.sh
bridge_mdb.sh
bridge_mdb_host.sh
bridge_mdb_max.sh
bridge_mdb_port_down.sh
bridge_mld.sh
bridge_port_isolation.sh
bridge_sticky_fdb.sh
bridge_vlan_aware.sh
bridge_vlan_mcast.sh
bridge_vlan_unaware.sh
config
custom_multipath_hash.sh
devlink_lib.sh
dual_vxlan_bridge.sh
fib_offload_lib.sh
forwarding.config.sample
gre_custom_multipath_hash.sh
gre_inner_v4_multipath.sh
gre_inner_v6_multipath.sh
gre_multipath.sh
gre_multipath_nh.sh
gre_multipath_nh_res.sh
ip6_forward_instats_vrf.sh
ip6gre_custom_multipath_hash.sh
ip6gre_flat.sh
ip6gre_flat_key.sh
ip6gre_flat_keys.sh
ip6gre_hier.sh
ip6gre_hier_key.sh
ip6gre_hier_keys.sh
ip6gre_inner_v4_multipath.sh
ip6gre_inner_v6_multipath.sh
ip6gre_lib.sh
ipip_flat_gre.sh
ipip_flat_gre_key.sh
ipip_flat_gre_keys.sh
ipip_hier_gre.sh
ipip_hier_gre_key.sh
ipip_hier_gre_keys.sh
ipip_lib.sh
lib.sh
local_termination.sh
mirror_gre.sh
mirror_gre_bound.sh
mirror_gre_bridge_1d.sh
mirror_gre_bridge_1d_vlan.sh
mirror_gre_bridge_1q.sh
mirror_gre_bridge_1q_lag.sh
mirror_gre_changes.sh
mirror_gre_flower.sh
mirror_gre_lag_lacp.sh
mirror_gre_lib.sh
mirror_gre_neigh.sh
mirror_gre_nh.sh
mirror_gre_topo_lib.sh
mirror_gre_vlan.sh
mirror_gre_vlan_bridge_1q.sh
mirror_lib.sh
mirror_topo_lib.sh
mirror_vlan.sh
no_forwarding.sh
pedit_dsfield.sh
pedit_ip.sh
pedit_l4port.sh
q_in_vni.sh
q_in_vni_ipv6.sh
router.sh
router_bridge.sh
router_bridge_1d.sh
router_bridge_1d_lag.sh
router_bridge_lag.sh
router_bridge_pvid_vlan_upper.sh
router_bridge_vlan.sh
router_bridge_vlan_upper.sh
router_bridge_vlan_upper_pvid.sh
router_broadcast.sh
router_mpath_nh.sh
router_mpath_nh_lib.sh
router_mpath_nh_res.sh
router_multicast.sh
router_multipath.sh
router_nh.sh
router_vid_1.sh
sch_ets.sh
sch_ets_core.sh
sch_ets_tests.sh
sch_red.sh
sch_tbf_core.sh
sch_tbf_ets.sh
sch_tbf_etsprio.sh
sch_tbf_prio.sh
sch_tbf_root.sh
settings
skbedit_priority.sh