Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2880423lqp; Mon, 25 Mar 2024 11:50:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWa7poSBvTWCe7E12QX+5r/6ygNFnAOGGqWLHbz735X4wFzgVmzA3QqhqFC+Q/ezJX8i0YbI6WZ9u6SelIvCvGz095TmwkPvMr6bVtpaw== X-Google-Smtp-Source: AGHT+IE3xthsiq+E1oVigPdJnoC+P8ZIJvhkrKC1wuBaxUzP9aWLQ1ZdKfA+60+SzcY51TqdahNK X-Received: by 2002:a05:6870:2398:b0:22a:5610:d1cb with SMTP id e24-20020a056870239800b0022a5610d1cbmr1519474oap.56.1711392612489; Mon, 25 Mar 2024 11:50:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711392612; cv=pass; d=google.com; s=arc-20160816; b=tfaSFb+IfTYCxg3+//QQktoVVa23HcfroaQ89Psiw1eS/O72fPUXbRPvW92USi+Jqb 8X70EHCP6wiVBzO4bpagLX7tc/AYM1cUXZHVOSgWE+lL96SITNss37N3EeiNh6nwxvtl nEcMrn0b1ygLtbT2O26lO8bgjOYvFw+nfRtMP/fIQNdqwoWlrqb+a6Jpoa57/JjY/eCW UvVjcUjgeAI9ZOTQOtpooCLpewLwWk7h80MhUqI3sTulk6efjzhkmnum3HG/Q4Qx5v5H W4fwodszvJQg3gpcEBXE/A3O9/OgkxsqczO8QFqStPbYDhS7ZqNC9ZV5TknoKUvY8my0 z67w== 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:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=Fjur1Hg//VxIhCvXN4J/88F6wnM642w5BcLBrjCUoY0=; fh=t0uDLVTn6Gd4tDdDxIbnmsUpeMKJqzuP7AQw5xFvY1E=; b=ENgMl2nPwSKMr4mbJpfM5vKRs092KOqMndpBDcZdoVJ5vzYWMbYvWFw6gEsAVOTSQF nqT/+BVUeOuqe+lsZNNzhyWRZ97CCGdjbucUCUq/rr4e9H3bWDj0aCXYm/zDm9rSOJck BSQ6frdlMbIDu6IqtmyB8OerBqcCvr7mWR0eyPcxgnhC2IKozE3WkbPTAagU45o17Rym dGUZMCLAs8sYlOor3lZNPMzIlp7zFd7a1AkvIZkbeFUlSLUaQUvXrcfxFTMaMgzGfP9v x6vxZFgPY38k214o6IIlur6NH7iNxl93E0pbEM3dCkF/EX4i495sNPU/K7sA9+tvOwLf uTIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fXne0SNI; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-117703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k72-20020a62844b000000b006e69f482eccsi5645158pfd.316.2024.03.25.11.50.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 11:50:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fXne0SNI; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-117703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 040902E6DF2 for ; Mon, 25 Mar 2024 18:41:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F69D129E90; Mon, 25 Mar 2024 18:27:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fXne0SNI" Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A242F129E67; Mon, 25 Mar 2024 18:27:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711391226; cv=none; b=TJH4ZjQ0Kj0ejdoEabOVOc+ic8qt2FznKnkEA5ClHhlP9hxr35NF+dhfP9Y7EXfb+gnvNXHjsi2KapfjAvF89IOP+tNXpzF2Pq5vhCMo3MAknZ+HY7PPmMW1qcovpPtD359JkEeRHoRCmfV4wOWR5U1T5BhkERa9SYPSlJBze7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711391226; c=relaxed/simple; bh=NrcAerk47w27oWd1NCrR1BDGPLWNDfTO1kj4vuxU04c=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=P9VXsGoM7oCzcYJtu5etBfRfxm73Qffcfe8aL9Pw2nd2iOrMO0HO5FsHxABMmclBQ451eG1xxZQLPWE1P/XyJ7iVd4rpbxZEmftio+gr/zLHTrWGnxSst5S/QCD4RVSI8PtW8xLLrQUyh/Drbtm/wOI/1zdrdG/Nfp6MdoDP6QI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fXne0SNI; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4148c95db1fso1909935e9.0; Mon, 25 Mar 2024 11:27:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711391223; x=1711996023; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Fjur1Hg//VxIhCvXN4J/88F6wnM642w5BcLBrjCUoY0=; b=fXne0SNIKAmtMVUO/DUtvKfM5srsT9ZHA0AaJfwgwXausdNr6LfVrrW7uLd/FfY/N9 93S+in5bc5j04hOnm0NO3wJB0TyxqknKOyn91Rd7QOl32C3HeDSR6CLBLfFJ+VZbya+I hNB+x8H4g1ujYHLDOtRAHFcRQibp4XOnNKt3lqA7Oli8qlwCbE0lkrYW4i5pQSi2PJ1t D0RuDGpzjVQzNkH4sVXsjDhv0mp7g68KcSULBI/Xdy37/6WEXyLBGTslPCGKOJe09BF7 UbYowS2DhOB5pWaCFkFGt2YTSbMFHslKL4v7tCVU7STQ8sBKz3IMZ8uAi4JXpfnGCfgz 4pZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711391223; x=1711996023; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Fjur1Hg//VxIhCvXN4J/88F6wnM642w5BcLBrjCUoY0=; b=Z6HFQlBaA2GVWErqm8feAiYZ0bYfw8TYUXJMysT5uJI7bnR4ydikYPpc0pRhPEoFMm RH+O8tZE7CYjOU9bgvH+YqiMj0LZcZM+T0l60w3dSLLnJC6l0EDbJ+pWInRyR0Xku3Sp IhJ1x99g1gCfKvSXBxHxDNMkbaKQvAI+uckGDo+5egf2yIkFLksjb9o0pLUdCw80shK3 CSS1Yirt67mGQnVXLohUr+0INviEJG2NyL3POr/LVYXoVR17VVISgtYqyQW0dL8m4YzO rbVlzc1enqbestn9o+KenWPPW0ZkNPZvrrlHUWv1JU9sbU1xEzJFQPGHvZbUqif1FsIK m+Og== X-Forwarded-Encrypted: i=1; AJvYcCWQU1PhwyuRlci3QTUxgcmuaW2a9I+lO+ZHgEff7Y+1Un9SF8mJRZLv4PEh3rdWRteLUDvM7nFmfi6niIYRyzC92mi/zV4wzA24CTLIpFbZcKSYVi8KgJUYF0EL5WrY0AXMc6UJdcpt2VpYhCVPnHymGQNOEttW5iT8k4cgmnWaPRT6Litx X-Gm-Message-State: AOJu0YxDVjqJ8rrLziDIemVsmj1xnk+rhe3TFLOmiBtT5XTdJx8JRwWy YTw4UmSsICotjTwSYg0AOKjrHl6pE07C4iNvXSvK2vedyqwRUOje X-Received: by 2002:a05:600c:3582:b0:414:8889:5a65 with SMTP id p2-20020a05600c358200b0041488895a65mr3677558wmq.30.1711391223005; Mon, 25 Mar 2024 11:27:03 -0700 (PDT) Received: from localhost ([146.70.204.204]) by smtp.gmail.com with ESMTPSA id w9-20020a05600c474900b00414896b61e4sm4233172wmo.16.2024.03.25.11.27.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 11:27:02 -0700 (PDT) From: Richard Gobert To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, willemdebruijn.kernel@gmail.com, dsahern@kernel.org, xeb@mail.ru, shuah@kernel.org, idosch@nvidia.com, amcohen@nvidia.com, petrm@nvidia.com, jbenc@redhat.com, bpoirier@nvidia.com, b.galvani@gmail.com, liujian56@huawei.com, horms@kernel.org, linyunsheng@huawei.com, richardbgobert@gmail.com, therbert@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH net-next v4 2/4] selftests/net: add local address bind in vxlan selftest Date: Mon, 25 Mar 2024 19:25:41 +0100 Message-Id: <20240325182543.87683-3-richardbgobert@gmail.com> In-Reply-To: <20240325182543.87683-1-richardbgobert@gmail.com> References: <20240325182543.87683-1-richardbgobert@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add local address bind support to existing udpgro_fwd.sh vxlan selftest, to ensure UDP socket lookup in GRO is working. Signed-off-by: Richard Gobert --- tools/testing/selftests/net/udpgro_fwd.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/net/udpgro_fwd.sh b/tools/testing/selftests/net/udpgro_fwd.sh index 380cb15e942e..0541c5da571d 100755 --- a/tools/testing/selftests/net/udpgro_fwd.sh +++ b/tools/testing/selftests/net/udpgro_fwd.sh @@ -62,11 +62,13 @@ create_vxlan_endpoint() { local -r bm_rem_addr=$3 local -r vxlan_dev=$4 local -r vxlan_id=$5 + local -r bm_local_addr=$6 local -r vxlan_port=4789 ip -n $netns link set dev $bm_dev up ip -n $netns link add dev $vxlan_dev type vxlan id $vxlan_id \ - dstport $vxlan_port remote $bm_rem_addr + dstport $vxlan_port local $bm_local_addr \ + remote $bm_rem_addr ip -n $netns link set dev $vxlan_dev up } @@ -77,11 +79,13 @@ create_vxlan_pair() { for ns in $SRC $DST; do # note that 3 - $SRC == $DST and 3 - $DST == $SRC - create_vxlan_endpoint $BASE$ns veth$ns $BM_NET_V4$((3 - $ns)) vxlan$ns 4 + create_vxlan_endpoint $BASE$ns veth$ns $BM_NET_V4$((3 - $ns)) \ + vxlan$ns 4 $BM_NET_V4$ns ip -n $BASE$ns addr add dev vxlan$ns $OL_NET_V4$ns/24 done for ns in $SRC $DST; do - create_vxlan_endpoint $BASE$ns veth$ns $BM_NET_V6$((3 - $ns)) vxlan6$ns 6 + create_vxlan_endpoint $BASE$ns veth$ns $BM_NET_V6$((3 - $ns)) \ + vxlan6$ns 6 $BM_NET_V6$ns ip -n $BASE$ns addr add dev vxlan6$ns $OL_NET_V6$ns/24 nodad done -- 2.36.1