From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (unknown [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id B1D758018A for ; Tue, 22 Sep 2026 12:04:06 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 68MC2n8d018087; Tue, 22 Sep 2026 15:02:50 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 68MC2n8d018087 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="YhHhI84t" Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 68MC2cuN018053 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 22 Sep 2026 15:02:39 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 68MC2cuN018053 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-49fcc575709so31992265e9.3 for ; Tue, 22 Sep 2026 05:02:39 -0700 (PDT) X-Gm-Message-State: AFuF++l4ydJ9qJtAvFubyUHbddFs8BFdBaPf6OakItumbXU3ThaH49jK D205lYSc/UAtLYr9HDb/uUBJ20UEt1V+WLJNW5+tICf7tbrWn0QJ4nfIB4xnH66dK5vtiES9r6E 8uWroD/f4LLWmVGvbEHUcYXI3PCrKuePX43p9Z0N/KG/tzQP7Uvn7Cw== X-Gm-Gg: AYBFou0tLPstXI+mWNr5SuT6veCuA8+MZGyzrg+FU+HuJnqRXDsUb5OhRmU8Cd0ydzD hWkBaV+6rJ3d2ioIy75YaZRG4U7+PRteu7U476kztH6wSaHsrtpAlQed1OEajwk3ozBoPs8ek+C CzwthUu+qoYJ1JHXySmJ/jWnsn0CCE02uKdtH4qpQUnlUT2RxoqOStmab0w7RRZPIKAhjibf3KP PrzAVqTpUa7URjJ2B0zHuChS6oE2gx7qRk2RMekNnXDeWw+aDxhcVE1CSn7bAfiF12XOzcsxKYw j9P53L9Qhr6do+uJwoMmZ6Bmfhsts0hra487fPu9y2mW9WQkqbkzscHRQXZ4opJDQ6aB/ojIsg9 9FPWPEUUqiHFKUSBRUZowJEiSqg== X-Received: by 2002:a05:600c:4e89:b0:49d:10d6:fd55 with SMTP id 5b1f17b1804b1-49fc5681267mr192121085e9.1.1790078558673; Tue, 22 Sep 2026 05:02:38 -0700 (PDT) X-Received: by 2002:a05:600c:4e89:b0:49d:10d6:fd55 with SMTP id 5b1f17b1804b1-49fc5681267mr192120535e9.1.1790078558019; Tue, 22 Sep 2026 05:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1790078558; cv=none; d=google.com; s=arc-20260327; b=RA0sx4qnl7UMcS0f1lfPwmuLsUU20A5uQhxEn3QCb2V9sxUzP3yrQ4N0E0vzLmckc5 q/uUAfG6iuHeiyxMlqWE995WLY3Vel/dR9Qga5LD7XBhlfOKSu0YR1Bz7KMlugDwIqy1 USEHv763lrxDl47L92pL/0rtR+BHT+gZqnV7Z1E5DbLI8jprGLf/VBqmYWlv3dER8EIR 0VaweSr5HpSqg0E9C6AmG+RYZo0KuS+zR8QZiaBOtjG9BcD2YCYVWD1J2huY+YTcJi25 1fFyQ2G4n2lmkfaOeLHrY5mgXtAWEwkwzMWVGYelRQrZGda9TfMk/b7UeXRS+KyqdexY HLAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=sucAIuLb5YXlxBuZIhnFiOSljTz05997o2IXiOOb2lQ=; fh=bRmlDJ6vflC8xapCpe8SIKiBemLWBr+xozKix8GBr/Q=; b=QHi4wOnmEOrEFxOmHdC2mN3J3WOLXVq6+91evkgefgiZgDPH9yNKAdGnbFfAEkj1UT WB9njcOdt1+DOV0RM76lVTqH/EZaO1V7xK5NZsAFQDgrq+iiiybFDizKGaTDPfGAuTtl BPvhsmWOjVe00Hv8wpdoAm110isiDEsDQz8/5ytc2Tzzl5KzPOn14v3jCLatsnNMFjAT /vE/quBiMTNoaPKiD5uTQ5eg8Iv/7yzfSDYVXfgdb1meY9RzSfL/nMzvVwVSB8RiUI8j 0xp6NPZ0qdOGujixLK8sojUJIWkaDgQb/p7lvJVWZWFEIDaa9ZmcUPmRwJ7nZLDUratt 0LJg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=YhHhI84t; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id ffacd0b85a97d-488628d0559si2991928f8f.307.2026.09.22.05.02.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2026 05:02:38 -0700 (PDT) Received-SPF: pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=YhHhI84t; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=sucAIuLb5YXlxBuZIhnFiOSljTz05997o2IXiOOb2lQ=; b=YhHhI84tFKbH GHPacSMunnltTtAfapc0jduj9mS8WjVplNNUWA85bALcLzjfixDRNy6SqnRPEcMiG/nJma9wuKBTQ sgLCgA+6iaxSE+hZ0IoEDx4MGsNc3w/9lqUA4q6dTovIAgcgYM+62PD58BLskkVoNDwhWjJWXNpsF 4ghEhjK4FbYL5nkfxp5ao51v+scZMVqDJUCex6ztNYgOjHw2QaQEWC+kgc9EbzH1vvanZ9cuaWq2W mNmLDhXehuk5NGB5nMMhjaRJaA++3yO2PcXcLtLT+i4zJ68NBqh4wPIALSXlGVmNVq4pfKvZAmdt3 JbMVxkWxSAYBwPJMXNBiXA==; Received: from ch-vpn.virtuozzo.com ([130.117.225.6] helo=LekKit-T14) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1x8z9u-009l3P-0p; Tue, 22 Sep 2026 14:02:28 +0200 From: Eva Kurchatova To: vasileios.almpanis@virtuozzo.com Date: Tue, 22 Sep 2026 15:02:22 +0300 Message-ID: <20260922120235.2729869-3-eva.kurchatova@virtuozzo.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260922120235.2729869-1-eva.kurchatova@virtuozzo.com> References: <20260922120235.2729869-1-eva.kurchatova@virtuozzo.com> MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH vz10 v2 3/6] selftests: net: make the veth GRO checks independent of host tunnels X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org Three aggregation checks report 10 packets where they want 1 on a host that has a vxlan, and pass on a host that does not. The kernel is doing what it is written to do. udp4_gro_receive() looks up the receiving socket only when udp_encap_needed_key is on, and that key is global: any UDP encapsulation socket on the machine, in any namespace, turns it on. udp_gro_receive() then aggregates for a packet that has no socket, or for a socket that asked for UDP GRO, and consults NETIF_F_GRO_UDP_FWD only in the first case. So with a vxlan somewhere on the box the lookup finds the test's own receiver, and rx-udp-gro-forwarding never gets a say. Ask for UDP GRO on the receiving socket, which makes the aggregation happen either way. Where no encapsulation socket exists the lookup still does not happen and the device flag still decides, so what the checks cover there does not change. https://virtuozzo.atlassian.net/browse/VSTOR-139651 Feature: fix selftests Signed-off-by: Eva Kurchatova --- tools/testing/selftests/net/veth.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/veth.sh b/tools/testing/selftests/net/veth.sh index 6bb7dfaa30b6..b95167f0b4c2 100755 --- a/tools/testing/selftests/net/veth.sh +++ b/tools/testing/selftests/net/veth.sh @@ -105,7 +105,15 @@ chk_gro() { NSTAT_HISTORY=$STATS ip netns exec $NS_DST nstat -n printf "%-60s" "$msg" - ip netns exec $BASE$DST ./udpgso_bench_rx -C 1000 -R 10 & + # -G makes the receiving socket ask for UDP GRO. Without it the + # aggregation checks depend on no UDP encapsulation socket existing + # anywhere on the machine: udp4_gro_receive() only looks up the + # socket when udp_encap_needed_key is on, and that key is global. + # With a vxlan on the host the lookup finds this receiver, and + # NETIF_F_GRO_UDP_FWD is then not consulted at all, so nothing is + # aggregated. On a machine without such a socket the lookup does + # not happen and the device flag still decides, as before. + ip netns exec $BASE$DST ./udpgso_bench_rx -G -C 1000 -R 10 & local spid=$! sleep 0.1 -- 2.55.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel