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 6EF2F80632 for ; Thu, 24 Sep 2026 12:26:20 +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 68OCP6F7015293; Thu, 24 Sep 2026 15:25:07 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 68OCP6F7015293 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="K75HpNmq" Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 68OCP4KD015289 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 24 Sep 2026 15:25:05 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 68OCP4KD015289 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-936aa34873bso342794585a.3 for ; Thu, 24 Sep 2026 05:25:05 -0700 (PDT) X-Gm-Message-State: AFuF++nQLingotJ6gMoOqGDptdLrTuNZMdgLQdCkTvhZ+mH6QZlR+Ws5 urbVvEDC44GzGeu+8D2qI7L4GEq5EVAfIvYUlTCOfZdCQu6o5u/4jcXbYSUTIqt2DO7EHh1Q41c VSg+63Q3jli3fLEpQ85IFWBSKKE/PRLk8/dGOaTGXYzOb3G5iC8ZHmg== X-Gm-Gg: AYBFou15fiy12EXBYmwkDVZPqE371ZdAsuyzSa81QNuyuzN+FfzWITb4XbHaJM9ERTz qxqEtbOIwz8cqcicZWGcW7YPKQFBJFTpWpOdmpSfQSEyMu3fvapIqL9D7/Oapwj5Ifchf99SW+4 mKa01BZHARpk06XPrK4ug+B8BUCvhMCEElyb2nq5ls0HHwQ3XIEe7GTUUAlDYMuc+gFErD+bY2F cPn4gZ0aGR5hW13kOCv5Z70MJKHYO3iymkwwtr2QKkBWvmyxvpNhVT+8lgS6/9buiDGGjRFVLYF A+hioeDIDGmMc3lAxxVkambpRRxDtoBZdOi5/rRd+1uZCfAO6/EkdKibWziwq6fMbE6nw5+HTma 8yP24RUVI7nHFg8GGE354yn0E3u3E6iyyTaQHYjRRGjG8M/2SDv6uk0ZJnwa0W8AuG78GDiKN0u E1udaVU47K/tQFhkX+anV6JW5m X-Received: by 2002:a05:620a:28cc:b0:93c:2110:14ea with SMTP id af79cd13be357-93c363d3ee8mr258608985a.48.1790252704275; Thu, 24 Sep 2026 05:25:04 -0700 (PDT) X-Received: by 2002:a05:620a:28cc:b0:93c:2110:14ea with SMTP id af79cd13be357-93c363d3ee8mr258602685a.48.1790252703502; Thu, 24 Sep 2026 05:25:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1790252703; cv=pass; d=google.com; s=arc-20260327; b=ML1DZGm1SCTXmnzg6OVqvSxoiay6LVpI/RN8yxztWJzRKAYg8neUoduVLsM/TQNCfH flM1+xIUsJMD1PvX9OyWPNJt/4ZMlClmSErqsSzc2x4DUbigitE0snS/QRYPCpY+eLUp l3PLnFKKcdhwnkHE5U3guk0uzNZv1V8RhubcTNHyReeXBsOnen0IkGvZ9UE5UmdxrkwY VlBumCiKNqennHinx+dcJISWKrizQW+SR3ntpfPcVaowqp0fmVq/IwFxdJ9rXOTK8ftb prVtjnyCzGoJK0ZfaSCX49adqNS+QDzsHf27ua2DbZu7Q7VOL2Ejo9WYTffW8V/KvkoG s2Ag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=mime-version:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:date :message-id:dkim-signature; bh=qwfVSc18Ll3um7Oi/fAGYFKnJfjs+U7lexeqHqcEeKI=; fh=4Sx4fRpltW7SVtdImyKcEUj5FPMjkilOdU//pCm4A+8=; b=aBqeDBhsUt3CVQyaqOxzQNxIctFMO1GjI9R12AyL1jb+KHp0NwAi3TUfMptB+FYuVd 9PjG4SIj2dVwiUkZGzQm1MeE9nJwqcFbag6LlVnaUV/eNs3JgpGpUsnoG6NkdGft64eQ 72oFSNHXH2UhagTrwj/YKGl4XPTbequ/2vDO6PW/X3NoT+Wbo5h1FuwsUJ/tguVtpaHw F0sI/Z3REDlgKpvrVYWlYx/SZJvJpSRMgyz8R7Ta7cRoCxBYe8AjhEKeQ3D5hdtAENJe +LN3X0y+bJHWLr7Bq77po4NeOwz/SreEokc0tYbOhUu+XFa9ytMCGVEytvcDOPmH7OGW qFRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b=K75HpNmq; arc=pass (i=1 spf=pass spfdomain=virtuozzo.com dkim=pass dkdomain=virtuozzo.com dmarc=pass fromdomain=virtuozzo.com); spf=pass (google.com: domain of khorenko@virtuozzo.com designates 2a01:111:f403:c202::7 as permitted sender) smtp.mailfrom=khorenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from GVXPR05CU001.outbound.protection.outlook.com (mail-swedencentralazlp170130007.outbound.protection.outlook.com. [2a01:111:f403:c202::7]) by mx.google.com with ESMTPS id af79cd13be357-93c248c5eccsi296604485a.146.2026.09.24.05.25.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2026 05:25:03 -0700 (PDT) Received-SPF: pass (google.com: domain of khorenko@virtuozzo.com designates 2a01:111:f403:c202::7 as permitted sender) client-ip=2a01:111:f403:c202::7; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b=K75HpNmq; arc=pass (i=1 spf=pass spfdomain=virtuozzo.com dkim=pass dkdomain=virtuozzo.com dmarc=pass fromdomain=virtuozzo.com); spf=pass (google.com: domain of khorenko@virtuozzo.com designates 2a01:111:f403:c202::7 as permitted sender) smtp.mailfrom=khorenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lSh/+LDvn/Y3RIDHOoe1e0qME/Mk65wMwXLru8JV1azjH3GFnriSAUYnC4tdG8dRktSe+hgYTI2HEuRWL/FudpxXPL2HWCOzhOUZFevDBESaRFjspTtOqcTwURkvLGI95SOuXHLTkRCUsyhAeUC3Z98PfhjOLeGOCbBPmRcTBoxpzcD+4rdA6x3NFGf94at72A2IKT3Hf2E93IqXmb5k2vMP7md8s0bb0GdOzo/VnsLtibeQdKweZ//haaZ0Pqz0JQ9wmqpRiuELl/tNQL6ACM+3FIq+VIyhpQCgC1Apvn2iBrJj1cj/N+5gBu5I11aQxVB3D+AXn/WysyWE9GWt4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qwfVSc18Ll3um7Oi/fAGYFKnJfjs+U7lexeqHqcEeKI=; b=CcHRqzr8lyY9InGA6xapBIeqbMBdd0woehosB0ApZixnC066tUDu1UOcIb23e13oMa9t8n/746bUd+qaQNoghnw0i9ddceEkb3vMIqpYfV4N6yM+BYtQBwH+B459n7XMu+kd4g9TmbSVQYwxo/f8h18aQko310w1DlvxHjwfpmgXxJtH3pgUG5zwDTsBI7HiBSA1V0nUR+4WxGNvLQfdoDBy0alwQRAzg7NTpFfS11LzXxnjXBd3+YSkc0HGrBMH9c3GXg7ZEKwKevNPeZDJsJLMQPWIaZlSBCf2OSdexJA7rlvz4EUEHtYHoyMPZwO+383VFipOi5UkQH4jpTOfrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qwfVSc18Ll3um7Oi/fAGYFKnJfjs+U7lexeqHqcEeKI=; b=K75HpNmqPltNU7EFZKRzMC/KiU6gIxJgNYeNXn2wT/5nM3x0hTuVaC83h1ZeujoxshQo25sYHbxYYWrofjjH8z8CnKCrIL9Z5+mp2XttYQRjHbdV3dJmZw3HUd0P05QQeBrdWr6mttiVVT0TvCWiBJhiGBZgl0/1vUAApByNLL3iK+jwbGQBhpWObM6UNeWj0sNW7oT5XNvHXNQqzC0J2MPZbiGQARA4tu8JqlpIWQ6JF6DsvFp/tpREju0TRCQ02uWxk/O0W116+82WgVc0W7oBp52ZdalWUiqCSL7o25cik/QiW0YxLIyuGJFhuP78qmL7e+sabfOpFqwpz3JmBA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=virtuozzo.com; Received: from PA6PR08MB10708.eurprd08.prod.outlook.com (2603:10a6:102:3c7::20) by PA4PR08MB7436.eurprd08.prod.outlook.com (2603:10a6:102:2a7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.451.18; Thu, 24 Sep 2026 12:25:00 +0000 Received: from PA6PR08MB10708.eurprd08.prod.outlook.com ([fe80::1999:c6db:dc55:494a]) by PA6PR08MB10708.eurprd08.prod.outlook.com ([fe80::1999:c6db:dc55:494a%5]) with mapi id 15.21.0451.014; Thu, 24 Sep 2026 12:25:00 +0000 Message-ID: <766c6402-0d86-4147-b99d-e7eebae8ad42@virtuozzo.com> Date: Thu, 24 Sep 2026 14:24:58 +0200 User-Agent: Mozilla Thunderbird To: Eva Kurchatova References: <20260831234217.1649428-1-eva.kurchatova@virtuozzo.com> <20260831234217.1649428-4-eva.kurchatova@virtuozzo.com> Content-Language: en-US, ru, sr From: Konstantin Khorenko In-Reply-To: <20260831234217.1649428-4-eva.kurchatova@virtuozzo.com> X-ClientProxiedBy: AS4PR10CA0024.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:5d8::16) To PA6PR08MB10708.eurprd08.prod.outlook.com (2603:10a6:102:3c7::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA6PR08MB10708:EE_|PA4PR08MB7436:EE_ X-MS-Office365-Filtering-Correlation-Id: 238a3cce-accf-46f0-4d2d-08df1a36da1c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|23010399003|1800799024|376014|366016|10067099003|56012099006|3023799007|6133799003|5023799004|18002099003|22082099003|4143699003|13003099007; X-Microsoft-Antispam-Message-Info: Su5yKHcCSLUygXNbCmq59bD+IYukp6sg4nQgZLrZJdcoQCAQk2D0PBYi8XmUlnMyo7T6RVvom/l3k39yHyZYJwVpFVza+Jm6S/5sGQhdfsaHS25iU1DhWlWtixrpbx3TH6ZW2siRrt2LpS3qtWbFlDBW9yldvwsTgq37L8JtQsZP9Z6bW2je4sIGv23tpZJsVFBVoswBywyUdBQ+m4z1a3hDmZprTmq6X7FJnrQCq7yY657V+/Lk6pYYWcNEQIlgmg+NUeZvnCimjxqJ/N7kZ82DmbVzB6nM/yxkbngpCC3TaMqOuqto3/NZWAX08kWqPeUYQA56/NA3npr0f/cYIRsXu0yOBHTe86SaR+bBwvP6g515dCDtDEnDhf0Jn19/g+oNCCglOvXGVUlSgaXZPTlTHs1pSoDdVwxsVQil+GhWD4/A/r6H3mKnJ1LOtlpq0fwEGPg4LplP2MuFfXoCfKg9JHf52x4edmZwj7jX3ikv6nGrJnPnOQcKgMyn6RutuIHnWUaOt4rc/e+nSu6kBVHm/b90EIz0lRwWPBfKQktWqXbEuacqsTP3Ym7LPm5Wb406WehLUmadhICYenh97EFx8f5SBTACGBJHlsK1ZJ18d7p/rnWRF30GGhkMp0QC X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PA6PR08MB10708.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(23010399003)(1800799024)(376014)(366016)(10067099003)(56012099006)(3023799007)(6133799003)(5023799004)(18002099003)(22082099003)(4143699003)(13003099007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UjB0cUJuRVYzbW5QSkpoUnVoVFllQXU5RUFSQWtsOWE1MC95Qk8yNmUrQ0Qy?= =?utf-8?B?blFGQTlDMURyNDBGUTZodVRwTzNFS3pqcVpUbHUxcklMSnJFSlJrWUVhWWFQ?= =?utf-8?B?QjBDaE5qZjRPY1k3djB5dHcrYTJWQytPYlRjVGVaTVREV1BKWHlGbmxMaGk3?= =?utf-8?B?VUR4RTRtQi9ZaHExekNEdVdReHN2VUo4RVR6RkthWFhIY1VFVFZUU2lOelJo?= =?utf-8?B?aUs1MUN6WnVYc08xeHFlNWYwdTBHWEZRZStOWmc4VWR0cU4wU21meVpPSmI4?= =?utf-8?B?K0ZKTWJna29PTFRLdEhkNXIrVkpZWjMvTENjWG1WZ1hkYlZMMWg4ZGx2RXg4?= =?utf-8?B?cXR6WkxUWjAyY2lHQk5waTNyVGpOSHV0S3htNmZvbmJyUXQ1OUJIRG10OUR2?= =?utf-8?B?QVU4QW9mMG02a1lQMTVhejdSMCtDbEhDcWExTFpFQW40VTYybnVLVkF6Wk1m?= =?utf-8?B?RU1XL2R2VTNLaUN0ck82QnZLZldRNndFU2NwQmVXYnpZb0JVb1dsRkM3OFk4?= =?utf-8?B?SVpZbkRKVHpZTDNQbllIN3hXcFI4TWRHNEE2OE52RlZWM2hLL1JXOHVzREpV?= =?utf-8?B?ZTV0dVVKMVpCUDh3elhTREx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ossTenant-AuthSource: PA6PR08MB10708.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2026 12:25:00.1961 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wJphnPD7XFDB0s+Fc6dyJk8/spYudumtRMt+OtOHnbjH8OLBHggC8igF5wZdE2gZmpVez8EZP8P5Yc5XNC3HKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB7436 X-OZ-Fwd: true Cc: devel@openvz.org Subject: Re: [Devel] [PATCH vz10 v2 4/5] selftests: bpf: run test_sock and test_tunnel in their own netns 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 Committed to branch-rh10-6.12.0-211.52.1.22.x.vz10-ovz, will be released in rh10-6.12.0-211.52.1.22.3.vz10 29d86770b9d9 selftests: bpf: run test_sock and test_tunnel in their own netns Both use the initial namespace and fail on what the machine has in it rather than on the kernel under test. test_sock binds 127.0.0.1:5000 and fails if anything already listens there. test_tunnel builds its tunnels between the initial namespace and at_ns0, so a firewall on the machine filters the encapsulated traffic: our nodes reject IPv6 with admin-prohibited and the ip6geneve case never gets through. It also needs the fou module, which nothing loads, and asks for encapsulations this kernel may not have. Run both in a namespace of their own, load the module, and let check() probe the kernel so the callers skip an encapsulation that is missing instead of failing. Upstream carries neither test any more: commit eea6c14c10ce ("selftests/bpf: Retire test_sock.c") and commit a54e7006967f ("selftests/bpf: test_tunnel: Remove test_tunnel.sh") dropped them once their cases had moved to test_progs. Both are still in this tree and still run, so they are fixed in this tree. https://virtuozzo.atlassian.net/browse/VSTOR-139677 Feature: fix vz selftests Signed-off-by: Eva Kurchatova Link: http://lore.virtuozzo.com/20260831234217.1649428-3-eva.kurchatova@virtuozzo.com -- Best regards, Konstantin Khorenko, Virtuozzo Linux Kernel Team On 9/1/26 01:41, Eva Kurchatova wrote: > Both use the initial namespace and fail on what the machine has in it > rather than on the kernel under test. > > test_sock binds 127.0.0.1:5000 and fails if anything already listens > there. > test_tunnel needs the fou module, which nothing loads, and asks for > encapsulations this kernel may not have. Run both in a namespace of > their own, load the module, and let check() probe the kernel so the > callers skip an encapsulation that is missing instead of failing. > > Upstream carries neither test any more: commit eea6c14c10ce > ("selftests/bpf: Retire test_sock.c") and commit a54e7006967f > ("selftests/bpf: test_tunnel: Remove test_tunnel.sh") dropped them once > their cases had moved to test_progs. Both are still in this tree and > still run, so they are fixed in this tree. > > https://virtuozzo.atlassian.net/browse/VSTOR-139677 > Feature: fix vz selftests > Signed-off-by: Eva Kurchatova > --- > tools/testing/selftests/bpf/test_sock.c | 17 ++++++++ > tools/testing/selftests/bpf/test_tunnel.sh | 50 +++++++++++++++++----- > 2 files changed, 56 insertions(+), 11 deletions(-) > > diff --git a/tools/testing/selftests/bpf/test_sock.c b/tools/testing/selftests/bpf/test_sock.c > index 810c3740b2cc..0298ff2e5cf7 100644 > --- a/tools/testing/selftests/bpf/test_sock.c > +++ b/tools/testing/selftests/bpf/test_sock.c > @@ -1,7 +1,10 @@ > // SPDX-License-Identifier: GPL-2.0 > // Copyright (c) 2018 Facebook > > +#define _GNU_SOURCE > +#include > #include > +#include > #include > > #include > @@ -536,6 +539,20 @@ int main(int argc, char **argv) > int cgfd = -1; > int err = 0; > > + /* The tests bind fixed ports on the loopback address, and one of > + * them retries on 5000, which a service on the machine may well be > + * listening on. Take a network namespace of our own so that only > + * the sockets of this test are in it. > + */ > + if (unshare(CLONE_NEWNET)) { > + log_err("unshare(CLONE_NEWNET)"); > + return -1; > + } > + if (system("ip link set lo up")) { > + log_err("bringing loopback up"); > + return -1; > + } > + > cgfd = cgroup_setup_and_join(CG_PATH); > if (cgfd < 0) > goto err; > diff --git a/tools/testing/selftests/bpf/test_tunnel.sh b/tools/testing/selftests/bpf/test_tunnel.sh > index d9661b9988ba..172aac4dae4f 100755 > --- a/tools/testing/selftests/bpf/test_tunnel.sh > +++ b/tools/testing/selftests/bpf/test_tunnel.sh > @@ -45,6 +45,22 @@ > # 5) Tunnel protocol handler, ex: vxlan_rcv, decap the packet > # 6) Forward the packet to the overlay tnl dev > > +# The tunnels are built between this namespace and at_ns0, so a firewall > +# on the machine filters the encapsulated traffic: our nodes reject IPv6 > +# with admin-prohibited, which the ip6geneve case never survives. A > +# namespace of our own has no such rules, and takes the devices with it > +# when the test ends. > +if [ -z "${BPF_TUNNEL_NETNS:-}" ]; then > + BPF_TUNNEL_NETNS=1 export BPF_TUNNEL_NETNS > + exec unshare -n sh -c 'ip link set lo up; exec "$0" "$@"' "$0" "$@" > +fi > + > +# The BPF object refers to the FOU kfuncs, and libbpf has to resolve them > +# against kernel or module BTF before it can load the object at all, also > +# for the tunnel types that do not use FOU. Nothing to do where FOU is > +# built in. > +modprobe fou 2>/dev/null > + > BPF_FILE="test_tunnel_kern.bpf.o" > BPF_PIN_TUNNEL_DIR="/sys/fs/bpf/tc/tunnel" > PING_ARG="-c 3 -w 10 -q" > @@ -241,7 +257,7 @@ test_gre() > DEV=gretap11 > ret=0 > > - check $TYPE > + check $TYPE || return 0 > config_device > add_gre_tunnel 2 > attach_bpf $DEV gre_set_tunnel gre_get_tunnel > @@ -265,7 +281,7 @@ test_gre_no_tunnel_key() > DEV=gre11 > ret=0 > > - check $TYPE > + check $TYPE || return 0 > config_device > add_gre_tunnel > attach_bpf $DEV gre_set_tunnel_no_key gre_get_tunnel > @@ -289,7 +305,7 @@ test_ip6gre() > DEV=ip6gre11 > ret=0 > > - check $TYPE > + check $TYPE || return 0 > config_device > # reuse the ip6gretap function > add_ip6gretap_tunnel > @@ -319,7 +335,7 @@ test_ip6gretap() > DEV=ip6gretap11 > ret=0 > > - check $TYPE > + check $TYPE || return 0 > config_device > add_ip6gretap_tunnel > attach_bpf $DEV ip6gretap_set_tunnel ip6gretap_get_tunnel > @@ -348,7 +364,7 @@ test_erspan() > DEV=erspan11 > ret=0 > > - check $TYPE > + check $TYPE || return 0 > config_device > add_erspan_tunnel $1 > attach_bpf $DEV erspan_set_tunnel erspan_get_tunnel > @@ -372,7 +388,7 @@ test_ip6erspan() > DEV=ip6erspan11 > ret=0 > > - check $TYPE > + check $TYPE || return 0 > config_device > add_ip6erspan_tunnel $1 > attach_bpf $DEV ip4ip6erspan_set_tunnel ip4ip6erspan_get_tunnel > @@ -395,7 +411,7 @@ test_geneve() > DEV=geneve11 > ret=0 > > - check $TYPE > + check $TYPE || return 0 > config_device > add_geneve_tunnel > attach_bpf $DEV geneve_set_tunnel geneve_get_tunnel > @@ -419,7 +435,7 @@ test_ip6geneve() > DEV=ip6geneve11 > ret=0 > > - check $TYPE > + check $TYPE || return 0 > config_device > add_ip6geneve_tunnel > attach_bpf $DEV ip6geneve_set_tunnel ip6geneve_get_tunnel > @@ -443,7 +459,7 @@ test_ipip() > DEV=ipip11 > ret=0 > > - check $TYPE > + check $TYPE || return 0 > config_device > add_ipip_tunnel > ip link set dev veth1 mtu 1500 > @@ -468,7 +484,7 @@ test_ipip6() > DEV=ipip6tnl11 > ret=0 > > - check $TYPE > + check $TYPE || return 0 > config_device > add_ip6tnl_tunnel > ip link set dev veth1 mtu 1500 > @@ -496,7 +512,7 @@ test_ip6ip6() > DEV=ip6ip6tnl11 > ret=0 > > - check $TYPE > + check $TYPE || return 0 > config_device > add_ip6tnl_tunnel > ip link set dev veth1 mtu 1500 > @@ -563,6 +579,18 @@ check() > cleanup > return 1 > fi > + > + # The kernel can be built without a tunnel type, and then rtnetlink > + # has no ops for it and says so. > + if ip link add dev "probe_$1" type "$1" 2>&1 | \ > + grep -q "Unknown device type"; then > + echo "SKIP $1: kernel does not support $1" > + cleanup > + return 1 > + fi > + ip link del dev "probe_$1" 2>/dev/null > + > + return 0 > } > > enable_debug() _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel