Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp407038lqs; Thu, 13 Jun 2024 13:38:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqgxDVSu89AHe7n8eETuKvQ4meDzpwCQOr5c57TvvpmMjr1CR+QT1DOhocLmZt775GH5cL++ZjylVD6t21KbGWiL8oIiYa86Z0t2QjFw== X-Google-Smtp-Source: AGHT+IFtzmWQnMbWnH2LAz+3cYR8ig6TGHTmf3R4nUkUDM6b9FhAwscDPhecBdZ20h8PAbR42bJT X-Received: by 2002:a19:e014:0:b0:52c:98b1:36d9 with SMTP id 2adb3069b0e04-52ca6e9da28mr527535e87.62.1718311118169; Thu, 13 Jun 2024 13:38:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718311118; cv=pass; d=google.com; s=arc-20160816; b=KJCM5GmpujcmSz/Mf7MmgR5DIIH+cjtsEb/zEQOpm+kOPgAQQcC0oHBxnWoGUrmZE2 9CGmghj9W/P1sLb1RXHopeI26kK4hnYwBIDbjr87DY3gZiPve5mqUUF39GQuknSlkm1F 9KScV4S8llIm3i8RlUVzedlbJm2qNLCcLDvCtD+HWs4N8syF+rnnjDvXJ57/bcHa3lkx fES0uPH7D0HgaFJGAqW12ZPrmEmVzLDksToAz9k6RbtSMMja6xwnE09eoO8NMWdeiBbS iXDZoiqE1g/yGMNMxjE32AZkiu364oN+sY24BhDnXVPF2E2g5R1nbcpeFZSmyADhUKLg hnfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=O2ih6wgTeeTdUw+I9BZrmiKxVOGbI/igMq6wiMNrZ34=; fh=5GzdXxhmRJyuID+6i5ni7e6i2q7GGHhKC8rdkFfTxQw=; b=SBMiSuo0AmlBFzf2f/uHL001zz9Enn5QYU/ZE4YouPEf1DHsG/5ypNRHPYnjttM0I2 zXih9famTNd5B2g5YjRL3z7JgX+TRghlcqKJkqQhxU7mJV6G2kxRLTMZ7yn+oZsUjPrq caj1oLnJXr4/zH7yifhAjrcyqC+lUIngnWmxYBWEjnuxuPyoHCWtptKc01ZvnG0BzKjJ RDrnAyfdNikucBqa++p9QigCdTkvBoJnEKHRT0Oez2nJ3lGR4f9LvPu0Xt2tPyCwgxq9 Rth7od5qkHeK8LUg8WqMpV+KzPkLtgISw6w1fnccQa1lMiAQ5X5T9W90sBhaWA8lMFCh Fe2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ArXHWozP; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-213998-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213998-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56df8b46si105822866b.670.2024.06.13.13.38.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 13:38:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213998-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ArXHWozP; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-213998-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213998-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C896D1F246FA for ; Thu, 13 Jun 2024 20:38:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69BBF13B5A5; Thu, 13 Jun 2024 20:38:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ArXHWozP" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 52BA313B2B4 for ; Thu, 13 Jun 2024 20:38:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718311100; cv=none; b=kuznDwYZf3GrH+HWIYsm5Mjp4EnOzvfvto0QcUfBAfCG5H1C87WPm7VXjLvS+8ZnNwW4zBoIsBnhDynSBaCtKSuXTRrVGfnMr/KrySdkNQt0nsaqdNoe9vkB+LMbgPowOhUAZGrP32gOdutR7KzycPQX+h34b7Qoe+tpGSesEls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718311100; c=relaxed/simple; bh=WSd1d7DffFSrkxa5KT+aYXD0eQQSAWOPzWO6NnEqpeo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nY2tlEE7HJCBpxclxJIkIiFIOQ5qc+ChUmw6Z/i6qEcObxGBsayfQweaaTximdtZfUOfxPegc4RGCbeZFVV5JK+7bctn8fU58UhsX5HDUQ7+vGlJdv1ZnejhQ8JTxJCPgAuez2n54oEvPAfoa/uCIyG/LYBkFsWf3NLuGxW4ROQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ArXHWozP; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718311097; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O2ih6wgTeeTdUw+I9BZrmiKxVOGbI/igMq6wiMNrZ34=; b=ArXHWozPN/QIhv9yPpwoew9aJQs9VUTUDtwByikYR847W4Kq3wm3uvMAsdtnRultcKJQwi FBPK3NSKyhxTgM+UiMGY4/ooeZcPN8iMx83z+jAUvOUrtFMUw/FlmdHKELN1aV0GfLAThJ yGS89mb5Q7yx2AgE5RKxCb8+uWeMsko= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-85-KsaRrX0SNnOZZqQmhCHV3g-1; Thu, 13 Jun 2024 16:38:16 -0400 X-MC-Unique: KsaRrX0SNnOZZqQmhCHV3g-1 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-6b07983a8adso46013686d6.0 for ; Thu, 13 Jun 2024 13:38:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718311095; x=1718915895; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=O2ih6wgTeeTdUw+I9BZrmiKxVOGbI/igMq6wiMNrZ34=; b=PpwhC5Rb40Wpu7Tfr40zJrgTFOgbhR8hsvJWz4x82Aff03CZFEUwMOVLZb7lNYS6AH bVC6e3wNpraOGRI1QttXNEgmfTr9w0skuwzhAkx+dfAjwGgIa5aS6wPwc/IONZ7A6FVs gJ70G5RxA4bFv/rxW/dS7jcZ/eptE6UgaXYA+2IbPaFfPESa/KiTkhmIX0OEJIwGDcVV ChVcl3b6FAbwsXZSRzmEWkI4LtH2o1EoUYIM5TJ3+965ufmhXcfJE2JYr4sk5e0lLwII lr+Work/5CsaxuVcD0LwXexJDRwSwQCub6zWctS4AUs8HzLnnuMkYNO5P7gSOBCME6Wa Wo/w== X-Forwarded-Encrypted: i=1; AJvYcCVpZC/cF2Ty39nZMbpc8gEpYsoqS7sEDTCkt5cCe1AtlfhANVahsRiGcqFBAt90yadqRt2AOu+a/PKcYrw7qXFeSh1m2bOWXRy+Pumu X-Gm-Message-State: AOJu0YwRZG3f/PFLiaS4fpmUmMsTE6EL1LjolMO8O9eMeigzUn0SAfIx cNmbaW3tMNhFa0mbTUuzEejTtFOF5/wkKKDOMBr+JvHd9p4ffA3VpQl2GAROKlnCiGzs25y/V2x l78YBw0LOxRgaS1diDyLB8NKCIcVHDofe9Lo47XI9Puw43Aj+l+ggISXfMkHC2w== X-Received: by 2002:a0c:f842:0:b0:6b0:4cc0:2168 with SMTP id 6a1803df08f44-6b2af2ff426mr16437106d6.30.1718311094994; Thu, 13 Jun 2024 13:38:14 -0700 (PDT) X-Received: by 2002:a0c:f842:0:b0:6b0:4cc0:2168 with SMTP id 6a1803df08f44-6b2af2ff426mr16436576d6.30.1718311094473; Thu, 13 Jun 2024 13:38:14 -0700 (PDT) Received: from maya.cloud.tilaa.com (maya.cloud.tilaa.com. [164.138.29.33]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b2a5ee04fdsm10389506d6.117.2024.06.13.13.38.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2024 13:38:13 -0700 (PDT) Date: Thu, 13 Jun 2024 22:37:37 +0200 From: Stefano Brivio To: Aaron Conole Cc: netdev@vger.kernel.org, dev@openvswitch.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Pravin B Shelar , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Adrian Moreno , Ilya Maximets Subject: Re: [RFC net-next 6/7] selftests: net: Use the provided dpctl rather than the vswitchd for tests. Message-ID: <20240613223737.28761cf3@elisabeth> In-Reply-To: <20240613181333.984810-7-aconole@redhat.com> References: <20240613181333.984810-1-aconole@redhat.com> <20240613181333.984810-7-aconole@redhat.com> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 13 Jun 2024 14:13:32 -0400 Aaron Conole wrote: > The current pmtu test infrastucture requires an installed copy of the > ovs-vswitchd userspace. This means that any automated or constrained > environments may not have the requisite tools to run the tests. However, > the pmtu tests don't require any special classifier processing. Indeed > they are only using the vswitchd in the most basic mode - as a NORMAL > switch. > > However, the ovs-dpctl kernel utility can now program all the needed basic > flows to allow traffic to traverse the tunnels and provide support for at > least testing some basic pmtu scenarios. I didn't know about that tool, that looks like a nice improvement. A few comments below (mostly nits): > More complicated flow pipelines > can be added to the internal ovs test infrastructure, but that is work for > the future. For now, enable the most common cases - wide mega flows with > no other prerequisites. > > Signed-off-by: Aaron Conole > --- > tools/testing/selftests/net/pmtu.sh | 87 ++++++++++++++++++++++------- > 1 file changed, 67 insertions(+), 20 deletions(-) > > diff --git a/tools/testing/selftests/net/pmtu.sh b/tools/testing/selftests/net/pmtu.sh > index cfc84958025a..7f4f35d88dcc 100755 > --- a/tools/testing/selftests/net/pmtu.sh > +++ b/tools/testing/selftests/net/pmtu.sh > @@ -846,22 +846,73 @@ setup_ovs_vxlan_or_geneve() { > type="${1}" > a_addr="${2}" > b_addr="${3}" > + dport="6081" > > if [ "${type}" = "vxlan" ]; then > + dport="4789" > opts="${opts} ttl 64 dstport 4789" > opts_b="local ${b_addr}" > fi > > - run_cmd ovs-vsctl add-port ovs_br0 ${type}_a -- \ > - set interface ${type}_a type=${type} \ > - options:remote_ip=${b_addr} options:key=1 options:csum=true || return 1 > - > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-if ovs_br0 ${type}_a -t ${type} In some restricted environments, it might actually be more convenient to carry around ovs-vsctl than Python with (Python) libraries. Nowadays I typically (albeit seldom) run kselftests in throw-away VM images made by mbuto (https://mbuto.sh/, see demo on the right), and while it copies python3 and dynamic libraries from the host, adding Python libraries such as pyroute2 gets quite complicated. So I'm wondering, if it's not too messy: could we have two functions starting from approximately here (say, setup_ovs_dpctl() and setup_ovs_vsctl()), try with ovs-dpctl first, and, if that fails, fall back to ovs-vsctl? > run_cmd ${ns_b} ip link add ${type}_b type ${type} id 1 ${opts_b} remote ${a_addr} ${opts} || return 1 > > run_cmd ${ns_b} ip addr add ${tunnel4_b_addr}/${tunnel4_mask} dev ${type}_b > run_cmd ${ns_b} ip addr add ${tunnel6_b_addr}/${tunnel6_mask} dev ${type}_b > > + run_cmd ip link set ${type}_a up > run_cmd ${ns_b} ip link set ${type}_b up > + > + ports=$(python3 ./openvswitch/ovs-dpctl.py show) > + br0_port=$(echo "$ports" | grep -E "\sovs_br0" | sed -e 's@port @@' | cut -d: -f1 | xargs) > + type_a_port=$(echo "$ports" | grep ${type}_a | sed -e 's@port @@' | cut -d: -f1 | xargs) > + veth_a_port=$(echo "$ports" | grep veth_A | sed -e 's@port @@' | cut -d: -f1 | xargs) > + > + v4_a_tun="${prefix4}.${a_r1}.1" > + v4_b_tun="${prefix4}.${b_r1}.1" > + > + v6_a_tun="${prefix6}:${a_r1}::1" > + v6_b_tun="${prefix6}:${b_r1}::1" > + > + if [ "${v4_a_tun}" == "${a_addr}" ]; then I see now that 05d92cb0e919 ("selftests/net: change shebang to bash to support "source"") turned this into a Bash script (for no real reason, lib.sh could have simply been sourced with '.' instead). Other than that, this happily runs with dash and possibly others, and: $ checkbashisms -f pmtu.sh possible bashism in pmtu.sh line 201 (should be '.', not 'source'): source lib.sh possible bashism in pmtu.sh line 202 (should be '.', not 'source'): source net_helper.sh Would it be possible to change this to POSIX shell: if [ "${v4_a_tun}" = "${a_addr}" ]; then even just for consistency with the rest of the file? > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-flow ovs_br0 \ > + "recirc_id(0),in_port(${veth_a_port}),eth(),eth_type(0x0800),ipv4()" \ > + "set(tunnel(tun_id=1,dst=${v4_b_tun},ttl=64,tp_dst=${dport},flags(df|csum))),${type_a_port}" > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-flow ovs_br0 \ > + "recirc_id(0),in_port(${veth_a_port}),eth(),eth_type(0x86dd),ipv6()" \ > + "set(tunnel(tun_id=1,dst=${v4_b_tun},ttl=64,tp_dst=${dport},flags(df|csum))),${type_a_port}" > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-flow ovs_br0 \ > + "recirc_id(0),tunnel(tun_id=1,src=${v4_b_tun},dst=${v4_a_tun}),in_port(${type_a_port}),eth(),eth_type(0x0800),ipv4()" \ > + "${veth_a_port}" > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-flow ovs_br0 \ > + "recirc_id(0),tunnel(tun_id=1,src=${v4_b_tun},dst=${v4_a_tun}),in_port(${type_a_port}),eth(),eth_type(0x86dd),ipv6()" \ > + "${veth_a_port}" > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-flow ovs_br0 \ > + "recirc_id(0),tunnel(tun_id=1,src=${v4_b_tun},dst=${v4_a_tun}),in_port(${type_a_port}),eth(),eth_type(0x0806),arp()" \ > + "${veth_a_port}" > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-flow ovs_br0 \ > + "recirc_id(0),in_port(${veth_a_port}),eth(),eth_type(0x0806),arp(sip=${veth4_c_addr},tip=${tunnel4_b_addr})" \ > + "set(tunnel(tun_id=1,dst=${v4_b_tun},ttl=64,tp_dst=${dport},flags(df|csum))),${type_a_port}" > + else > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-flow ovs_br0 \ > + "recirc_id(0),in_port(${veth_a_port}),eth(),eth_type(0x0800),ipv4()" \ > + "set(tunnel(tun_id=1,ipv6_dst=${v6_b_tun},ttl=64,tp_dst=${dport},flags(df|csum))),${type_a_port}" > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-flow ovs_br0 \ > + "recirc_id(0),in_port(${veth_a_port}),eth(),eth_type(0x86dd),ipv6()" \ > + "set(tunnel(tun_id=1,ipv6_dst=${v6_b_tun},ttl=64,tp_dst=${dport},flags(df|csum))),${type_a_port}" > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-flow ovs_br0 \ > + "recirc_id(0),tunnel(tun_id=1,ipv6_src=${v6_b_tun},ipv6_dst=${v6_a_tun}),in_port(${type_a_port}),eth(),eth_type(0x0800),ipv4()" \ > + "${veth_a_port}" > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-flow ovs_br0 \ > + "recirc_id(0),tunnel(tun_id=1,ipv6_src=${v6_b_tun},ipv6_dst=${v6_a_tun}),in_port(${type_a_port}),eth(),eth_type(0x86dd),ipv6()" \ > + "${veth_a_port}" > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-flow ovs_br0 \ > + "recirc_id(0),tunnel(tun_id=1,ipv6_src=${v6_b_tun},ipv6_dst=${v6_a_tun}),in_port(${type_a_port}),eth(),eth_type(0x0806),arp()" \ > + "${veth_a_port}" > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-flow ovs_br0 \ > + "recirc_id(0),in_port(${veth_a_port}),eth(),eth_type(0x0806),arp(sip=${veth4_c_addr},tip=${tunnel4_b_addr})" \ > + "set(tunnel(tun_id=1,ipv6_dst=${v6_b_tun},ttl=64,tp_dst=${dport},flags(df|csum))),${type_a_port}" > + fi > } > > setup_ovs_geneve4() { > @@ -881,7 +932,7 @@ setup_ovs_vxlan6() { > } > > setup_ovs_bridge() { > - run_cmd ovs-vsctl add-br ovs_br0 || return $ksft_skip > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-dp ovs_br0 || return $ksft_skip > run_cmd ip link set ovs_br0 up > > run_cmd ${ns_c} ip link add veth_C-A type veth peer name veth_A-C > @@ -891,7 +942,7 @@ setup_ovs_bridge() { > run_cmd ${ns_c} ip link set veth_C-A up > run_cmd ${ns_c} ip addr add ${veth4_c_addr}/${veth4_mask} dev veth_C-A > run_cmd ${ns_c} ip addr add ${veth6_c_addr}/${veth6_mask} dev veth_C-A > - run_cmd ovs-vsctl add-port ovs_br0 veth_A-C > + run_cmd python3 ./openvswitch/ovs-dpctl.py add-if ovs_br0 veth_A-C > > # Move veth_A-R1 to init > run_cmd ${ns_a} ip link set veth_A-R1 netns 1 > @@ -942,8 +993,10 @@ cleanup() { > > ip link del veth_A-C 2>/dev/null > ip link del veth_A-R1 2>/dev/null > - ovs-vsctl --if-exists del-port vxlan_a 2>/dev/null > - ovs-vsctl --if-exists del-br ovs_br0 2>/dev/null > + # squelch the output of the del-if commands since it can be wordy > + python3 ./openvswitch/ovs-dpctl.py del-if ovs_br0 -d true vxlan_a >/dev/null 2>&1 > + python3 ./openvswitch/ovs-dpctl.py del-if ovs_br0 -d true geneve_a >/dev/null 2>&1 > + python3 ./openvswitch/ovs-dpctl.py del-dp ovs_br0 >/dev/null 2>&1 The idea behind those tabs before 2>/dev/null was to keep them aligned and make those redirections a bit easier on the eyes. If you add more, you could keep those aligned as well -- or just decide that lines are too long and drop the tabs altogether. > rm -f "$tmpoutfile" > } > > @@ -1407,16 +1460,10 @@ test_pmtu_ipvX_over_ovs_vxlanY_or_geneveY_exception() { > exp_mtu=$((${ll_mtu} - 40 - 8 - 8 - 14)) > fi > > - if [ "${type}" = "vxlan" ]; then > - tun_a="vxlan_sys_4789" > - elif [ "${type}" = "geneve" ]; then > - tun_a="genev_sys_6081" > - fi > - > - trace "" "${tun_a}" "${ns_b}" ${type}_b \ > - "" veth_A-R1 "${ns_r1}" veth_R1-A \ > - "${ns_b}" veth_B-R1 "${ns_r1}" veth_R1-B \ > - "" ovs_br0 "" veth-A-C \ > + trace "" "${type}_a" "${ns_b}" ${type}_b \ > + "" veth_A-R1 "${ns_r1}" veth_R1-A \ > + "${ns_b}" veth_B-R1 "${ns_r1}" veth_R1-B \ > + "" ovs_br0 "" veth-A_C \ > "${ns_c}" veth_C-A > > if [ ${family} -eq 4 ]; then > @@ -1436,8 +1483,8 @@ test_pmtu_ipvX_over_ovs_vxlanY_or_geneveY_exception() { > mtu "${ns_b}" veth_B-R1 ${ll_mtu} > mtu "${ns_r1}" veth_R1-B ${ll_mtu} > > - mtu "" ${tun_a} $((${ll_mtu} + 1000)) > - mtu "${ns_b}" ${type}_b $((${ll_mtu} + 1000)) > + mtu "" ${type}_a $((${ll_mtu} + 1000)) > + mtu "${ns_b}" ${type}_b $((${ll_mtu} + 1000)) > > run_cmd ${ns_c} ${ping} -q -M want -i 0.1 -c 20 -s $((${ll_mtu} + 500)) ${dst} || return 1 > -- Stefano