Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7FBE2C83 for ; Thu, 28 Oct 2021 00:57:36 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10150"; a="230153521" X-IronPort-AV: E=Sophos;i="5.87,188,1631602800"; d="scan'208";a="230153521" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2021 17:57:36 -0700 X-IronPort-AV: E=Sophos;i="5.87,188,1631602800"; d="scan'208";a="537781194" Received: from rasanto1-mobl.amr.corp.intel.com ([10.212.200.198]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2021 17:57:35 -0700 Date: Wed, 27 Oct 2021 17:57:35 -0700 (PDT) From: Mat Martineau To: Florian Westphal cc: mptcp@lists.linux.dev Subject: Re: [PATCH mptcp-next 2/2] selftests: mptcp: add tproxy test case In-Reply-To: <20211027143041.28449-3-fw@strlen.de> Message-ID: References: <20211027143041.28449-1-fw@strlen.de> <20211027143041.28449-3-fw@strlen.de> Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed On Wed, 27 Oct 2021, Florian Westphal wrote: > No hard dependencies here, just skip if test environ lacks > nft binary or the needed kernel config options. > > The test case spawns listener in ns2 but ns1 will connect > to the ip address of ns4. > > policy routing + tproxy rule will redirect packets to ns2 instead > of forward. > > Signed-off-by: Florian Westphal > --- > .../selftests/net/mptcp/mptcp_connect.c | 51 +++++++++++- > .../selftests/net/mptcp/mptcp_connect.sh | 80 +++++++++++++++++++ Hi Florian - Could you also update tools/testing/selftests/net/mptcp/config with the required kconfig values? My test kernel is definitely missing CONFIG_NFT_TPROXY, are others required too? Thanks, Mat > 2 files changed, 130 insertions(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect.c b/tools/testing/selftests/net/mptcp/mptcp_connect.c > index 95e81d557b08..ada9b80774d4 100644 > --- a/tools/testing/selftests/net/mptcp/mptcp_connect.c > +++ b/tools/testing/selftests/net/mptcp/mptcp_connect.c > @@ -75,7 +75,12 @@ struct cfg_cmsg_types { > unsigned int timestampns:1; > }; > > +struct cfg_sockopt_types { > + unsigned int transparent:1; > +}; > + > static struct cfg_cmsg_types cfg_cmsg_types; > +static struct cfg_sockopt_types cfg_sockopt_types; > > static void die_usage(void) > { > @@ -93,6 +98,7 @@ static void die_usage(void) > fprintf(stderr, "\t-u -- check mptcp ulp\n"); > fprintf(stderr, "\t-w num -- wait num sec before closing the socket\n"); > fprintf(stderr, "\t-c cmsg -- test cmsg type \n"); > + fprintf(stderr, "\t-o option -- test sockopt