From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.159 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795746658; b=ZWC4iauZYhzTZF7lvhbFfuvorRG/9eTBqDx8tzPuqzrp2qEVoSGiKKRtI+1xJhwEs4ST qzgkDisZ7UqXR3fxCNBtZY8b0kd19D/HV33qdTGqZTarZHZpaECdutTh5kHiZue4Q71ht e9TEjOEXJq0cwBGNxnrgAiX/UnVF3mMkUWfBsqwVWTvqwpC+T86FFtxlSv3H6KPf8WQt0 X3WW1yPwSrf+mdntuY3zAtX3d/A9bCBiTrnC0GVxf4tF8wzTIPTtTpPIcyx/M3b0gxbDG HMS0h3wEF8S0M0L/YtoiwpslhqVVfNn04Owh7R3xlh0Ud+NxoUxzS7OT/hKIxmMKnMg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795746658; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=yhPqhFmiPr+CMbPss5FuS1lnYkQ0ByFCw1K+Q5WzccA=; b=4JCxtGRxlkERsXbogR4tGLdNehAk4c/seuvsYhz+H73td+bu2kc8qxCeynKGyoUh09Ih vgommGWkNwayNrTGWFZuXCFiEmSbP5NscRUQrKR0x9XZ3ZE/d2u3y4obYOEbqZ7t7f0D1 HxJxKAs3juYVN6APJqIdKES9nycXn8RxJl0HXRra3y2VSN+Yvm+Et8Sq163g+i4nbpKnw oLKulSX3F0hkQCupoFc8/Hf2AxI099ee5VokTZ/6vdF9YeJbd/F6qx07mQGNPzfdaK1kk iTCLJ2sMb3WNtrnKUZgimFoHutWQPwNk1JbJ/JFNgOzxg6Arj2q54hXaDd3SAbifoBQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=FU2ehd3C; arc=none smtp.remote-ip=95.215.58.159 Received: from mta1.migadu.com (out-159.mta1.migadu.com [95.215.58.159]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 206CC606A321 for ; Fri, 27 Nov 2026 02:30:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 206CC606A321 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=FU2ehd3C X-Envelope-To: linux-kselftest@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=21MWGW1/WGQFy49l3Efg4AOdUE1giNJT27Feeuow9j8=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795746656; v=1; x=1796351456; b=FU2ehd3CCNfUkV3DE5f8126hiwQHqiyE3aFb80zlfsrXpOf+Duns0KehY4401tfzKXz8QGlA IxH6Zb+Rns4W2Vn5u54dcqYZFXLnat7Fu42jS84LQRCMmzfuNPfdW1rh60Q0HGqlYmjf20g44jA 0pM90oPGSj/Lu6fRyM705cKs= X-Envelope-To: linux-kselftest@vger.kernel.org Received: by mta10.migadu.com with ESMTPS id 51ad85fc44c1ffed; Fri, 27 Nov 2026 02:30:50 +0000 X-Mizu-Trace-ID: 51ad85fc44c1ffed X-Migadu-Flow: FLOW_OUT Date: Fri, 27 Nov 2026 10:30:36 +0800 From: Hangbin Liu To: Haishuang Yan Cc: netdev@vger.kernel.org, David Ahern , Ido Schimmel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Alice Mikityanska , Lorenzo Bianconi , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 6/6] selftests: net: big_tcp_tunnels: Cover IP tunnels Message-ID: References: <20261126025015.10416-1-yanhaishuang@cmss.chinamobile.com> <20261126025015.10416-7-yanhaishuang@cmss.chinamobile.com> X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261126025015.10416-7-yanhaishuang@cmss.chinamobile.com> On Wed, Nov 25, 2026 at 06:50:15PM -0800, Haishuang Yan wrote: > Now that ipip, gre, gretap, sit, ip6tnl, ip6gre and ip6gretap allow BIG > TCP too, run the same checks over them as for vxlan, geneve and > bareudp, without encapsulation and with FOU and GUE. With FOU and GUE, > turn on the outer UDP checksum, which is off by default on an IPv4 > underlay, so that it is checked too. > > sit only carries IPv6, and is only run with veth tx checksum offload > enabled: unlike the other tunnels it does not use gro_cells on receive, > so with software GSO on the sender the receiver does not see any BIG > TCP packet. > > fou is not loaded on demand when it is built as a module, so load fou > and fou6 first, and skip the FOU and GUE cases if that fails. > > Signed-off-by: Haishuang Yan > --- > .../testing/selftests/net/big_tcp_tunnels.sh | 139 +++++++++++++++++- > 1 file changed, 136 insertions(+), 3 deletions(-) > > diff --git a/tools/testing/selftests/net/big_tcp_tunnels.sh b/tools/testing/selftests/net/big_tcp_tunnels.sh > index 9c1482b842b..1e8387fce99 100755 > --- a/tools/testing/selftests/net/big_tcp_tunnels.sh > +++ b/tools/testing/selftests/net/big_tcp_tunnels.sh > @@ -1,7 +1,9 @@ [...] > > +# For IP tunnels: $1: tunnel family, $2: encapsulation > cleanup_tunnel() { > + local fou_args=() > + local ns > + > ip -netns "$CLIENT_NS" link del tun0 > ip -netns "$SERVER_NS" link del tun1 > + if [ "${2:-none}" = none ]; then > + return 0 > + fi nit: maybe just [ -z $2 ] ? No need to change if no new version. > + if [ "$1" = 6 ]; then > + fou_args=(-6) > + fi > + for ns in "$CLIENT_NS" "$SERVER_NS"; do > + ip -netns "$ns" fou del port "$FOU_PORT" "${fou_args[@]}" > + done > } > > cleanup() { > @@ -240,6 +336,30 @@ if ! ip link help 2>&1 | grep gso_ipv4_max_size &> /dev/null; then > exit "$ksft_skip" > fi > > +# $1: tunnel type, $2: tunnel family, $3: traffic family, $4: encapsulation > +run_ip_tunnel() { > + local csum_offload > + > + for csum_offload in on off; do > + # sit does not use gro_cells on receive, so with software GSO > + # on the sender there is nothing big to receive. > + if [ "$1" = sit ] && [ "$csum_offload" = off ]; then > + continue > + fi > + setup_tunnel "$1" "$2" "$csum_offload" "$3" "$4" || exit "$?" > + do_test "$2" "$3" "$csum_offload" || exit "$?" > + cleanup_tunnel "$2" "$4" > + done > +} > + > +# fou is not loaded on demand when built as a module > +ENCAPS=(none) > +if modprobe -q fou && modprobe -q fou6; then > + ENCAPS+=(fou gue) > +else > + echo "SKIP: FOU and GUE tests, could not load fou and fou6" > +fi > + > WORKDIR=$(mktemp -d) > trap cleanup EXIT > setup > @@ -254,3 +374,16 @@ for tunnel in vxlan geneve bareudp; do > done > done > done > +for encap in "${ENCAPS[@]}"; do > + run_ip_tunnel ipip 4 4 "$encap" > + for traffic_family in 4 6; do > + run_ip_tunnel gre 4 "$traffic_family" "$encap" > + run_ip_tunnel gretap 4 "$traffic_family" "$encap" > + done > + run_ip_tunnel sit 4 6 "$encap" > + for traffic_family in 4 6; do > + run_ip_tunnel ip6tnl 6 "$traffic_family" "$encap" > + run_ip_tunnel ip6gre 6 "$traffic_family" "$encap" > + run_ip_tunnel ip6gretap 6 "$traffic_family" "$encap" > + done > +done > -- > 2.43.0 > > Tested-by: Hangbin Liu Reviewed-by: Hangbin Liu