From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 91D888045D for ; Tue, 27 Oct 2026 18:16:52 +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 69RIFZNH032284; Tue, 27 Oct 2026 21:15:36 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 69RIFZNH032284 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="QGZPWT5p" Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 69RIFPJl032255 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 27 Oct 2026 21:15:25 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 69RIFPJl032255 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-48e0fc747a7so84309f8f.1 for ; Tue, 27 Oct 2026 11:15:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvBxQp2IxLgtd5Rw9B2w5No0eXR1gSTTYPFDaO9Mh2aFAbqPEBPzheBJYMJoPiQgfF4Sn4MIG4g==@openvz.org X-Gm-Message-State: AFq9FYLbPW4JOwTBSEepUNKjOh8YxPhN+3qIQ+ohckTo/2uEk6A2fPAp bV3t+p9fvVuQeslnYCFE4PXI/zGeh3mK1wym4txDpaTktrgrvqfl1Y1VnsuYZFN2mAXrJt0opx8 wbEFWkxxvoIOfCSwBAnf4QFDJEmf6MJVL+nZ4MdraWKxM2oBgrU2Kxw== X-Gm-Gg: AYBFou3KFMhGqC+p79XbAQSMWWpPyf9Ng1fHGnBEckXQF2B77m1dzOowbTz8YfgZwHe BL6RljRr2olwVWv66KRqiC9IY3T4soVMsrAhogBL0bxMTozL9NFD+vQjTd6lkjcomVqnTy8lPFQ 1bL8xEN84D0i+MIPCDVierBr9w98umeBopZTIL5D+mmKCnaIvx/e82VNG1LEYOj8eXpvVyeqfWf 2xM6rpMFJ0T3JCc72JwukN3Tb/L4kMnpPl3MA+F0qI9AKba1eh8q/CP92613XVx+Jxrjkc7JrEQ Ll0yFWZqfjEseaGsaT4EbIajkmt0tcNjty0h2Qdis7VmQiImLu3JIgL3otXkdsup4/IhwUycQPj KIUGoRf9UZzoQvl9z5A== X-Received: by 2002:a5d:5d0c:0:b0:48e:4300:c70e with SMTP id ffacd0b85a97d-48e5d5ae171mr464439f8f.46.1793124923482; Tue, 27 Oct 2026 11:15:23 -0700 (PDT) X-Received: by 2002:a5d:5d0c:0:b0:48e:4300:c70e with SMTP id ffacd0b85a97d-48e5d5ae171mr464398f8f.46.1793124922912; Tue, 27 Oct 2026 11:15:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1793124922; cv=none; d=google.com; s=arc-20260327; b=aQZZ/lkNdIIMA/r8NVAqRvYsIkZJctcUFgjjAABpXjZHg5+RlU5vNs34Vfq4Ce5GrQ eqYRceiEkEY/knrqDsHclxXPo/KbLj2PdnoyVi9XQOxEhpJl8gzS2I7BVdqtL7xxjTIw XbbP21xFQPG0+vrRG6qCs4Finv1YRPNmVbojNIt6wNh2E0Kmm1SacKCSFZhb5+ZSH+Zl s46+xAw8RqVFXuFT31qzWiN8PPF388/iUJHENjV3WNYAE+9e/d0/SI2GZUcXAJwK3hBQ 8gJEwtK7blgQqEY8JcB3lfoPGDmxNi7YaMD9vhxMHVZ0ogGo1YMZ9CjuFdYhwkq+6AE0 TNYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:dkim-signature; bh=vSpGNP6DuP1b170NkpyNen55kObt54W7hsln1s+/rn8=; fh=Ac4B+E9J0iKprNz57k5baX4D1nACtq3mk5EYYPOTKpA=; b=hr0+x9+Rt8Wv1PLgsH7NUgNRLSOXnNqZ+HW6ESuPg1Zr2rEWTCeFXiEgWraA8hGtrq LIKpsfcg4JkUx6dW1tfH52ISNa+WFMDy+d78UB9w7sDSfAuY7ykJxGO+zFCWDVArIz/1 bm1H9bkNzAIu7TFRdLQnftSV+Mj7H20H9bVeAdetcOtFDq1mCPuXkUwE/g7sZm4jCk3R HDVfO0ac4vSPvlXjxEAypUeCSkULQdgyPcdxoPoej30M8BYpXEdOqfJbL0avYxtse7XH ajUKnR6y27U+ssqJjIWtanaTy6yNG/pkOcXzn/desWXT8AwHnxsnyT3tB4orQ6sDfieN GC5w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=QGZPWT5p; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@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-48e3ecfa02esi20322190f8f.267.2026.10.27.11.15.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2026 11:15:22 -0700 (PDT) Received-SPF: pass (google.com: domain of khorenko@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=QGZPWT5p; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@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=Content-Type:MIME-Version:Message-Id:Date:Subject :From; bh=vSpGNP6DuP1b170NkpyNen55kObt54W7hsln1s+/rn8=; b=QGZPWT5pKv8IVG4xKhr KvPAffPTkJG0g7L4wUSQ3SlF7wLvSQm3byWz/9E08AXSZ1NIeaAXGAtU2IEamG/dKbLFD+Vevc2Pb uCUraOXFvti8qIGaPrNhySgDe61ZGJiKkFDbNDH6BSnDr+qT9ON2NP/HP793RnK4/OaSTKcorIlFs kRCEtBr0C8UjsLIG2/5dja9lZPDLQ/7vk/DbI0dHObbhERo8+YXdsIY/ayU0vtbWWeICtnfdGrOfb l/FRhD337m6yZA/VfYF/SF8RVF1t0eC4OM/xi3oNPShAlFtt6QvWLQUAEgWqkueMjH8P08RjndMpM Y/UjgD95N/JRYeg==; Received: from ch-demo-asa.virtuozzo.com ([130.117.225.8] helo=f0.sw.ru) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xLldx-001dYc-1Q; Tue, 27 Oct 2026 19:15:12 +0100 From: Konstantin Khorenko Date: Tue, 27 Oct 2026 19:15:18 +0100 Message-Id: <20261027-b4-prep-khorenko-vstor-150731-xsk-veth-netns-v4-0-c74cad570c70@virtuozzo.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIADbq4GoC/y1PQXLDIAz8SoZzpUHYjp2c+o9ODpiohXoKGcCM6 4z/Xuz0ptVqtbtPkTg6TuJ6eorIxSUXfAXt20kYq/0Xg7tXLJRUZ5Kqh7GFR+QHTDZE9lOAknK IQJ3sG4IlTVA4W/CcfYL7peeBjNaDJFFfVuWnWw67D2GNgwFJ3F5EmsdvNnk3209HnRjGqL2x+ +o1QbQk4YykUIIiwk4hoVK4YFkrE8q6a63bM/0epUpzmP3nP0tSjbxg2w2yHYCAi8ZpjrVrDkW /FxfzHNY1oAk/4rZt2x+kPfO5IgEAAA== X-Change-ID: 20261027-b4-prep-khorenko-vstor-150731-xsk-veth-netns-d97e81caa801 To: Konstantin Khorenko , devel@openvz.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3245; i=khorenko@virtuozzo.com; h=from:subject:message-id; bh=PzVYFbOBt+20BtxLxKU3OSJ8yQOzJ2IbxMBgWaj6ZCs=; b=owEBbQKS/ZANAwAKAVGWCkf5YVwqAcsmYgBq4Oo4enpbsSC8d9m+SD/kFDkfpINgcLEvC+2c4 ESRoFz7+fyJAjMEAAEKAB0WIQRWD23IPcXT0GO9CCxRlgpH+WFcKgUCauDqOAAKCRBRlgpH+WFc KttFEACzmAYY6gh9/BZbMNci5CO4/stE4381Qm1ZXJhNX+Td2ba09WsyU8LeL3E7oM1R2+pBdUy ymF5wZAAQkKUdentj6xhwxbQOYKQRGfvkzUlksjK6BGZWt3bhjfo/OFxYAzstaueIsewI5D92nN 04wNjX3PgqGlwsYqnjaFOQQKa1CE9zWi3FtfesDyqBXMkhdhS16bId/jrumnXAHGDotLPj/+Fur VG3SBTEIZSq+TAfeoEBfjf/HsFS35mICwqR4g8F3koTEAIs8e68uW6dMlaKWNDMAfaS6Nkfb+LV nrveWr97oqrgQ5hlDj8wUabzB3K8yTylbHfJxizuNIVt+jr3/C5eg2/9MzkBHQS5PCMiqt04tew 7g72ptcwl+k5N8m5nD6ZMI3mRGnaES42MKidKypGh/LazAStdtwj1pu31IaAjWSslpvV+UwY4Mo FIwoa84QHOHTLwVBIMCEB/essz2E9lFBHZ3lBWvtXcf1QXk+SVQ4iAI39LP6k2v/Tt2wwWrwcOy AAtAfIXwYnayX6I++Axu2xZKOm7AoM2hKKX0LX3kypiqPBoXmANbXb9RzYbk3bKslzGAOtJ8sSy zBTG6dbKLmeoDOrrBP9mBcsXwUElMrM5eHqM/yA5y9vBfYCmRiRD0jJcgKzWfH98rFXSIO48aVm UrC3HGiWS1J8pUQ== X-Developer-Key: i=khorenko@virtuozzo.com; a=openpgp; fpr=560F6DC83DC5D3D063BD082C51960A47F9615C2A X-OZ-Fwd: true Subject: [Devel] [PATCH hci-8.1 v4 0/3] selftests/bpf: run the xsk veth tests in a network namespace of their own 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 Patchset for task https://virtuozzo.atlassian.net/browse/VSTOR-150731 test_xsk.sh makes its veth pair in the host's namespace. The host's own traffic on the pair reaches the AF_XDP sockets under test, so the tests fail on a configured host and pass on a bare one. The series moves the veth part into a namespace of its own, after two fixes it relies on: - Patch 1: test_exit() exits 1 for a skip, so the runner counts every "skip all tests" as a failure. - Patch 2: xskxceiver takes the fragment limit from the max_skb_frags sysctl, which AF_XDP does not check and which exists in the initial namespace only. Take MAX_SKB_FRAGS from the kernel's BTF. - Patch 3: the namespace itself. Assisted-by: LLM Signed-off-by: Konstantin Khorenko --- Changes in v4: - Split v3 into three patches. The test_exit() fix gets a Fixes: tag; mainline gets the same fix (VSTOR-151679), and a commit of its own here can later be replaced by the ms/ one. - Patch 3: drop "mount --make-rprivate /", unshare --mount already makes the new mount namespace private. - Messages: the sysctl fallback serves kernels without BTF only, it cannot work inside the namespace; the "as before" claim is gone. - Link to v3: http://lore.virtuozzo.com/20261026012309.458048-1-eva.kurchatova@virtuozzo.com Changes in v3: - The namespace is unnamed, so it goes with its last process however the run ends, Ctrl-C, a timeout or a kill, and no outer run is left to delete host interfaces. - Obtain max_skb_frags from the kernel BTF, removing -f option. - Fix test_exit() exit status for skipped runs. - With -d, the namespace is kept. - Rebased. - Link to v2: http://lore.virtuozzo.com/kernel/20261022024816.2435565-1-eva.kurchatova@virtuozzo.com/T/#t Changes in v2: - -f is checked as the sysctl is, 1 to 45 and digits only, so a value that would wrap the fragment count or the packet array is refused. - -f goes into the namespace only when the host's sysctl file could be read; a bare -f made getopts complain. - No network namespace skips the tests, as no veth support does, rather than failing them. - The -f description says the option tells the tests the kernel's limit and changes nothing in the kernel. - The -d hint names the namespace in a usable form. - test_exit() exits 1 for a skip as it does for the veth one; as the script has it. - Link to v1: http://lore.virtuozzo.com/kernel/20261020041218.1659392-1-eva.kurchatova@virtuozzo.com/T/#t --- Eva Kurchatova (3): selftests/bpf: xsk: exit with the status test_exit() is given selftests/bpf: xsk: take the fragment limit from the kernel's BTF selftests/bpf: run the xsk veth tests in a network namespace of their own tools/testing/selftests/bpf/test_xsk.sh | 30 +++++++++++++++++++++-- tools/testing/selftests/bpf/xsk_prereqs.sh | 2 +- tools/testing/selftests/bpf/xskxceiver.c | 39 +++++++++++++++++++++++++++++- 3 files changed, 67 insertions(+), 4 deletions(-) --- base-commit: 02401c5e378f282fbf11bdc65996253ff65dad9b change-id: 20261027-b4-prep-khorenko-vstor-150731-xsk-veth-netns-d97e81caa801 Best regards, -- Konstantin Khorenko, Virtuozzo Linux Kernel Team _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel