selftests: mptcp: turn rp_filter off on each NIC
authorYonglong Li <liyonglong@chinatelecom.cn>
Tue, 22 Jun 2021 19:25:22 +0000 (12:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jun 2021 21:36:01 +0000 (14:36 -0700)
commitd8e336f77e3bce440f78432d259c9ddedada7b79
treed8d0f2b437b52769a1d6f89cb119abb28f758e32
parent0cddb4a6f4e3a008d0a62be31829bdde21cf0530
selftests: mptcp: turn rp_filter off on each NIC

To turn rp_filter off we should:

  echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter

and

  echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter

before NIC created.

Co-developed-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Yonglong Li <liyonglong@chinatelecom.cn>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/mptcp/simult_flows.sh