OSDN Git Service

selftests: forwarding: Add IP tunneling lib
authorNir Dotan <nird@mellanox.com>
Sun, 20 Jan 2019 06:50:52 +0000 (06:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Jan 2019 19:12:58 +0000 (11:12 -0800)
commitfed926d4f64ca1ba23c496747fc4209244c13d80
tree37d7c516d2915a55613d5d9d44faffd2541e59fb
parenta5040a9059ed6b9ecb77514092eb62726708412c
selftests: forwarding: Add IP tunneling lib

Add a library with helper functions, to be used in testing IP-in-IP and GRE
tunnels, both in flat and in hierarchical topologies.
The topologies used in this library cover the three scenarios of tunnels -
a tunel with no bound device, a tunnel with bound device in the same VRF
and a tunnel with a bound device in a different VRF.

Signed-off-by: Nir Dotan <nird@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/ipip_lib.sh [new file with mode: 0644]