From: David S. Miller Date: Sat, 30 Jun 2018 11:34:09 +0000 (+0900) Subject: Merge branch 'Fixes-for-running-mirror-to-gretap-tests-on-veth' X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b0402f0113675ad78bc10c839f93a25348dd1f73;p=openwrt%2Fstaging%2Fblogic.git Merge branch 'Fixes-for-running-mirror-to-gretap-tests-on-veth' Petr Machata says: ==================== Fixes for running mirror-to-gretap tests on veth The forwarding selftests infrastructure makes it possible to run the individual tests on a purely software netdevices. Names of interfaces to run the test with can be passed as command line arguments to a test. lib.sh then creates veth pairs backing the interfaces if none exist in the system. However, the tests need to recognize that they might be run on a soft device. Many mirror-to-gretap tests are buggy in this regard. This patch set aims to fix the problems in running mirror-to-gretap tests on veth devices. In patch #1, a service function is split out of setup_wait(). In patch #2, installing a trap is made optional. In patch #3, tc filters in several tests are tweaked to work with veth. In patch #4, the logic for waiting for neighbor is fixed for veth. ==================== Signed-off-by: David S. Miller --- b0402f0113675ad78bc10c839f93a25348dd1f73