summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2018-05-24 16:27:16 +0200
committerDavid S. Miller <davem@davemloft.net>2018-05-24 22:26:19 -0400
commitd5ea2bfc806a92bdeeed9a16e6dddfe44ebc37ec (patch)
treec706bb13409b86687687c5dcff5424efcba4fb9d /fs
parent74ed089d48a483374656ce7e4f006d758a3a6228 (diff)
downloadop-kernel-dev-d5ea2bfc806a92bdeeed9a16e6dddfe44ebc37ec.zip
op-kernel-dev-d5ea2bfc806a92bdeeed9a16e6dddfe44ebc37ec.tar.gz
selftests: forwarding: mirror_gre_lib: Extract generic functions
For non-GRE mirroring tests, a functions along the lines of do_test_span_gre_dir_ips() and test_span_gre_dir_ips() are necessary, but such that they don't assume tunnels are involved. Extract the code from mirror_gre_lib.sh to mirror_lib.sh and convert to just use a given device without assuming it's named "h3-$tundev". Convert the two above-mentioned functions to wrappers that pass along the correct device name. Add test_span_dir() and fail_test_span_dir() to round up the API for use by following patches. Signed-off-by: Petr Machata <petrm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud