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 4BD5C8015B for ; Thu, 24 Sep 2026 13:30:24 +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 68ODT7c4016584; Thu, 24 Sep 2026 16:29:09 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 68ODT7c4016584 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="sA42Ykt9" Received: from mail-yx1-f72.google.com (mail-yx1-f72.google.com [74.125.224.72]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 68ODT56g016579 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 24 Sep 2026 16:29:05 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 68ODT56g016579 Received: by mail-yx1-f72.google.com with SMTP id 956f58d0204a3-673e272fbbeso302419d50.1 for ; Thu, 24 Sep 2026 06:29:05 -0700 (PDT) X-Gm-Message-State: AFuF++llnhzl6uPw9Q/TP0crJmgQwoLp20kZqBiMMywrLOgoj+WiV1b2 XIrzcrq21kmnoXcngRJMmfySy4KTseIkrQVWHdKMMPkf1se5xHcQ+p24J/byryQZcl3cslkO9Kl Aq1z6gK9Pu1pYCOpzdW8mE4pAnA2quDmeIucrq6iwoGUbkgc9LyFcTQ== X-Gm-Gg: AYBFou2T+21bnAfishK7dkvl88Y4qF8D6MLLwTo/pgj63iyz5r/ZkI9+XdsqOEoYk/X rxTz35QaWzoYy8rh4gpfILMW622rWbeIirn8tEMGjF7pUn7PUd+UcnuQLIqiiMJAQCNb4k8ftxu eWWjzp8E1Gpzaazw00Or35fXtw05T5qzn1KCi8KEKCrUSRBjo9rh4A2TQw2ilWFzL178zGC/00I WjVt70qmx7O6XadqEsdltr5a4YVkEv9vh+bPCgr2N/pQEFQRU6XbHvI6FZ9yYMkrPJJcMATeO3y 8iRc/k6vrch6q7wNJ1OlJEyp1dbA5rFv3YH3UHRJ78b8rYLcLbR8pdRiwO8Qs5CiHm6DKFq7NtF K+yWIPiXX8Nm5BETqBqvM9iH8cxT0STfO9ESZIuQzo/MrMUhzzQ1t9IMemFVHIJ08KJyH4GEdKN RQr9R9T6cstRk458ksGO3h X-Received: by 2002:a05:690e:1909:b0:670:f640:186b with SMTP id 956f58d0204a3-672ed1cba47mr1029885d50.13.1790256544450; Thu, 24 Sep 2026 06:29:04 -0700 (PDT) X-Received: by 2002:a05:690e:1909:b0:670:f640:186b with SMTP id 956f58d0204a3-672ed1cba47mr1029860d50.13.1790256543691; Thu, 24 Sep 2026 06:29:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1790256543; cv=pass; d=google.com; s=arc-20260327; b=HbCZuEYtKpvkN0vnaAiGE6ReoG8X+rZOUJ9kQCvrhKENqKZMdz/rboPplqqWuuilkH RTNqnZLeuchVwhYFGtDEMaDI8IqOSlxrfOjUNidAjyxvkb0Y0QEcqJk6gPYB3Nip9peh QwcpEDioM28939P8YuDf8ZixR9v2bbINngW7AAjuNb0nggnwtTCAeCfAMKOZ9XywhyTj BsnTCyuJ05WQHdui766IlPWOaVdzZ6dcfYNyoD/DAaqgJd1U2uDjRIMTic19+tj6igh1 48XcV8tsrHso3OFFlHoQrXvCPZAbG082CwPru8C5jE6FGEo3CjFgIynaktmXx/vYusij QUGw== 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=4liHvvhVjn2AGy0rFhZuuk9W9liuy4NtjWU4xEJw6wo=; fh=4Sx4fRpltW7SVtdImyKcEUj5FPMjkilOdU//pCm4A+8=; b=e6NIOLgW3ME2kpix9dUAJD2KJOoIIzVJYkDFifDK2AS7NjX+heY93lzvMzY6Y6E+E0 4OKk+Js9WekzkhUVVE9j7vDrzZcnA9JyceHK8Pr+z5Z8fKNi+57NCvTiqK+e6QIg84OO Og/sQo2u8Huiwk8lYRWEo1ongtz+//tkLBVCTGwrlcIcRqxRjsEMA6j6zEFEMaGc9NTX 9R8aIXfby/iBCqCgvqn6X3aDPbTxUu+o7uD5dOVSBgtSo2KyZZSAyslrCtSXKadMo1TL zPrkYYBKv1WECpG/8lvcno3/3zt0i4qnUHk56zeZu5G5lSYlvkn/44pyeEug1yVulZfj knwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b=sA42Ykt9; 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:c201::1 as permitted sender) smtp.mailfrom=khorenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazlp170100001.outbound.protection.outlook.com. [2a01:111:f403:c201::1]) by mx.google.com with ESMTPS id 956f58d0204a3-672d76aeabesi1996321d50.18.2026.09.24.06.29.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2026 06:29:03 -0700 (PDT) Received-SPF: pass (google.com: domain of khorenko@virtuozzo.com designates 2a01:111:f403:c201::1 as permitted sender) client-ip=2a01:111:f403:c201::1; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b=sA42Ykt9; 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:c201::1 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=QT+VWjtfw3I9Kq7+anPJxpu4do/zV/DVGoLNL8btV1mGA+8Xe+V9TihMCH2Fr8pdrKRawub6rlZF2l5jCbQ9HHtxl1qWfyWZ1OwqXnwRb2O0P/tivoSGAuJDx/CnNKDkoF2TPfvovZM7lopwfIJjoi8StV7t17AAT+pdi2/+bxsc86qEBOhOAIypYFxgjloj2XKk1Saqhxzgc+/ROp29O1BPPnvmPyJmoc6EwhIBG7jBU0MZxzpu+xs2Whfd2Rk+WZKTUBBQkh6u5yHmpSilRJePx7769TcXzexmzM+i8wUnqRqJ3Vmd6JVuUSZHbyJWvolXYt3zfMhRHylwSUlfAA== 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=4liHvvhVjn2AGy0rFhZuuk9W9liuy4NtjWU4xEJw6wo=; b=U2NFvhhYw1K0TY2A5b+/xdUILaNZg+gR131X9C5sTawozeCfRwZs1Qa7DSR6uxvoPFP8s9I3DQOjqakeZ1gQR5K1xQElHZT0UPTTW4XaFne09XALCDWldBy0SHUKEOebOKRrnKFtMtWGQW5qzJFmiCamtt/28QCB94EVpGjewF59j0Urr084yXBWQbdeV7gbgOjlirxC6PF2XAS6JR3hC4UPUKH97Q+oWz41HADxEX15KPN+viseGxX9NAEZZzH+AZpozTTdo9mfsh6Tcv1vailbAbo0YPnM3vAwU/nNWqfkpFfpNRoq2+jEN+bfFZGsCFPOQskD8wzW1MZD/SukJw== 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=4liHvvhVjn2AGy0rFhZuuk9W9liuy4NtjWU4xEJw6wo=; b=sA42Ykt9W3vchRDcPVR7otNmhLntvFjdfFPM7g3OQPBR9Nx27/8wiOYUgrdDNBkcSrUJv96E7pQmbkvtqp5nhYbAorA/S+nJKGqARy7JLjVdTAgchPx6CE/npr3hzr7DvQIgIiHvxMmphgl/VCUGGCPK2OZBqO8N/TKdt0jajLQb2ti96XrzImEqYTJtHm4HV+ToXJuI/B2+PsBv1w1bR1tXLveSFd/7r9+7B5qgBNeankCE1Hikb8fTcw7j8zRhM4EQX91wkqI4tZkWU9nEOaP7Uib34uiNudHT3jmGIHvgYW8h50XCStQAtWuPVRhunyFp9xV2dKW/BD20IvZg9A== Authentication-Results: mx.microsoft.com 1; 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 DU2PR08MB10279.eurprd08.prod.outlook.com (2603:10a6:10:46e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.472.7; Thu, 24 Sep 2026 13:29:01 +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 13:29:01 +0000 Message-ID: <8f1d335b-61af-415e-8a46-00ea4a07a3d1@virtuozzo.com> Date: Thu, 24 Sep 2026 15:29:00 +0200 User-Agent: Mozilla Thunderbird To: Eva Kurchatova References: <20260831225137.1642608-1-eva.kurchatova@virtuozzo.com> <20260831225137.1642608-4-eva.kurchatova@virtuozzo.com> Content-Language: en-US, ru, sr From: Konstantin Khorenko In-Reply-To: <20260831225137.1642608-4-eva.kurchatova@virtuozzo.com> X-ClientProxiedBy: AS4P251CA0012.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:5d2::13) To PA6PR08MB10708.eurprd08.prod.outlook.com (2603:10a6:102:3c7::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA6PR08MB10708:EE_|DU2PR08MB10279:EE_ X-MS-Office365-Filtering-Correlation-Id: 68314085-4429-456c-7f33-08df1a3fcbc4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|23010399003|376014|1800799024|6133799003|10067099003|56012099006|5023799004|4143699003|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: WK7XDHeQ5tJRQXPF1vJC2SBnnxcZUK0RqfwgquLZQtv5pP0zOrnZuwtV6YeYLPmYtkpxzD5vF/E2m8oMXAQEbs1msCms7o+vcVkkwdMNaD+jlbaar/zRSjoLFkwq0OfDOz8l7L8IOcgjsanyoJN0H/31OSRjLsJ1Z1TmLXVObBydwUtJYDX1arwYRyEPykGZC7zJlf3E9s/Zp5hKRIpw7EmKHJvfRiD9x31Q6bVPYG24aK1Ta75X7RA4Y3EkTELqF1WynQ2OTsIzyJ7fsjQKtvTNq5M+WH4xQzr6yBn+/9fKpx7ELsQJdQnqP/nM97GZcp6popOWEOIcI6UMyNiUryPg5omE7l+VYf1LtJFlH9pffo78kgP1tthE1F0EkuSsHeVKFBPZOgBOlM4Wj6d3ZzDq+erHYfQPrmhpQ3WzTyNG5M1fXuHWHI4kUNh04qoEEoiGpA+GVEXoEDmrXEFXok0i/TYYhgRPL8HQiP3jozrqRn63AJ2JfXLOhb6P4Xz1jqddNO/eFWcStuFaC67KCZ1xbfDtbtJLk39kCmCOwjTIFU5KIHah+a7VJg9uLygGfxRX0AKBQ9rXdGREkDmLoNqgbLSxmuQ7ZkNYjfoi0SUderyrPDVNtVNlkUi1bdHb/BweBo7B9H8ZELbNqkDSy52zJDTSwVYWamEzJ1Ruvw8= 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)(366016)(23010399003)(376014)(1800799024)(6133799003)(10067099003)(56012099006)(5023799004)(4143699003)(18002099003)(22082099003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Yit4VmFqeHNEdnNBRFhXdThLaG9xa0VvUDVxQkZIeTBicE81SHQrYm14TU1B?= =?utf-8?B?UWllS29iZkFFNVUvUUlWUGxDUzVhQ2dUdm5vZU9uUVdNekpkalFSZDJWRHIy?= =?utf-8?B?YVpzNy9aL21JeHN2ZzVPazFnNnN1ZUFTdklYODdrVDUyYld2dGpYbDN6eEhF?= =?utf-8?B?amNUdHpoNTFrZzRuNC9zMmF1eS9aUk9YQndlWnAwVmxJaTZ3ak0wQlRGdnRL?= =?utf-8?B?ckYwbmlFcFphTlltc29Xa3hlb25LRmVpRzJ5MU82NTJJSzZJckxVaTVVUm1x?= =?utf-8?B?STgwRVR4QjR1ak5KUlE1cHpqa1BOZ1Q0M3AwYlAxUmhIOTFZTk1QNGg3S0Va?= =?utf-8?B?RGdtcGJVcS9Hc3c5ZmhLTGUwc05BcUpNUTNUU2VkVkp6Rm83NkRYdnAvaFpw?= =?utf-8?B?WUxmYjZ5bzIzUVJYY1hRc0t0NE5tUG5Bdnlwb2RFYWhzeitXTm1GWjh0b0k0?= =?utf-8?B?L0hRV1VLQmFUVkk5d3J6cmVGTXYydkhLN0F5R1N0eHRtT21mVDdSeWlTbG9k?= =?utf-8?B?WWt2WmFqNkFDZCsxYlgwTzZIZjBUWTBYRlVKbEJJRUMzeCt6Sm5k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IvyKNF4=3D?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 68314085-4429-456c-7f33-08df1a3fcbc4 X-MS-Exchange-CrossTenant-AuthSource: PA6PR08MB10708.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2026 13:29:01.5536 (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: uWCAv0DFG0XcpKksmdhoDUzQ6ZrFhC7N/+vXkKqe+f6suGmGZMORjK+gDtMKu/Xinyy36oqKPrHKslB5SWggFA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB10279 X-OZ-Fwd: true Cc: devel@openvz.org Subject: Re: [Devel] [PATCH vz10 4/4] selftests: drv-net-hw: skip the tests that need a real interface 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 i have NOT applied it, please rework. -- Best regards, Konstantin Khorenko, Virtuozzo Linux Kernel Team On 9/1/26 00:50, Eva Kurchatova wrote: > ethtool, ethtool_extended_state, hw_stats_l3 and hw_stats_l3_gre need a > device that can set link speed and autonegotiation, report an extended > link state, or offload L3 statistics. Where none is configured, lib.sh > creates a veth pair instead, which supports none of that, so every case > fails on something the kernel correctly refuses. > > Upstream answers this by keeping such tests in drivers/net/hw and not > running them on veth at all: commit 0c499a351777 ("selftests: > forwarding: Ditch skip_on_veth()") removed the equivalent check once the > directory was split out. This guard is therefore not for upstream, it > only stops a run that substitutes veth pairs from reporting failures. > > Skip before sourcing lib.sh, because lib.sh makes the veth pair as it is > sourced. Exiting afterwards leaves the devices behind - vrf_cleanup() > removes them and a test that skips never gets there - and a later test > that adds a veth by one of those names then cannot. hw_stats_l3_gre > asks for six interfaces, so one run left veth0 to veth5 in the initial > namespace and the netfilter suite failed on it. > > https://virtuozzo.atlassian.net/browse/VSTOR-139651 > Feature: fix vz selftests > Signed-off-by: Eva Kurchatova > --- > .../testing/selftests/drivers/net/hw/ethtool.sh | 16 ++++++++++++++++ > .../drivers/net/hw/ethtool_extended_state.sh | 16 ++++++++++++++++ > .../selftests/drivers/net/hw/hw_stats_l3.sh | 16 ++++++++++++++++ > .../selftests/drivers/net/hw/hw_stats_l3_gre.sh | 16 ++++++++++++++++ > 4 files changed, 64 insertions(+) > > diff --git a/tools/testing/selftests/drivers/net/hw/ethtool.sh b/tools/testing/selftests/drivers/net/hw/ethtool.sh > index fa6953de6b6d..b1744758627c 100755 > --- a/tools/testing/selftests/drivers/net/hw/ethtool.sh > +++ b/tools/testing/selftests/drivers/net/hw/ethtool.sh > @@ -11,6 +11,22 @@ ALL_TESTS=" > " > NUM_NETIFS=2 > lib_dir=$(dirname "$0") > + > +# The test needs a device capable of setting link speed and > +# autonegotiation. Where no real interfaces are configured, lib.sh makes > +# a veth pair instead, which cannot, and every case then fails on > +# something the kernel correctly refuses. Check this before sourcing > +# lib.sh: it creates that pair as it is sourced, so exiting afterwards > +# leaves the devices behind, and the next test that wants one of those > +# names cannot create it. > + > +: "${NETIF_CREATE:=yes}" > +: "${NETIF_TYPE:=veth}" > +if [[ "$NETIF_CREATE" = yes && "$NETIF_TYPE" = veth ]]; then > + echo "SKIP: needs a real interface, set NETIFS in forwarding.config" > + exit 4 # ksft_skip, lib.sh is not sourced yet > +fi > + > source "$lib_dir"/../../../net/forwarding/lib.sh > source ethtool_lib.sh > > diff --git a/tools/testing/selftests/drivers/net/hw/ethtool_extended_state.sh b/tools/testing/selftests/drivers/net/hw/ethtool_extended_state.sh > index a7584448416e..c6c96117b1f1 100755 > --- a/tools/testing/selftests/drivers/net/hw/ethtool_extended_state.sh > +++ b/tools/testing/selftests/drivers/net/hw/ethtool_extended_state.sh > @@ -9,6 +9,22 @@ ALL_TESTS=" > > NUM_NETIFS=2 > lib_dir=$(dirname "$0") > + > +# The test needs a device capable of reporting an extended link state. > +# Where no real interfaces are configured, lib.sh makes a veth pair > +# instead, which cannot, and every case then fails on something the > +# kernel correctly refuses. Check this before sourcing lib.sh: it > +# creates that pair as it is sourced, so exiting afterwards leaves the > +# devices behind, and the next test that wants one of those names cannot > +# create it. > + > +: "${NETIF_CREATE:=yes}" > +: "${NETIF_TYPE:=veth}" > +if [[ "$NETIF_CREATE" = yes && "$NETIF_TYPE" = veth ]]; then > + echo "SKIP: needs a real interface, set NETIFS in forwarding.config" > + exit 4 # ksft_skip, lib.sh is not sourced yet > +fi > + > source "$lib_dir"/../../../net/forwarding/lib.sh > source ethtool_lib.sh > > diff --git a/tools/testing/selftests/drivers/net/hw/hw_stats_l3.sh b/tools/testing/selftests/drivers/net/hw/hw_stats_l3.sh > index 67fafefc80be..1776a4954601 100755 > --- a/tools/testing/selftests/drivers/net/hw/hw_stats_l3.sh > +++ b/tools/testing/selftests/drivers/net/hw/hw_stats_l3.sh > @@ -49,6 +49,22 @@ ALL_TESTS=" > " > NUM_NETIFS=4 > lib_dir=$(dirname "$0") > + > +# The test needs a device capable of offloading L3 statistics. Where no > +# real interfaces are configured, lib.sh makes a veth pair instead, > +# which cannot, and every case then fails on something the kernel > +# correctly refuses. Check this before sourcing lib.sh: it creates that > +# pair as it is sourced, so exiting afterwards leaves the devices > +# behind, and the next test that wants one of those names cannot create > +# it. > + > +: "${NETIF_CREATE:=yes}" > +: "${NETIF_TYPE:=veth}" > +if [[ "$NETIF_CREATE" = yes && "$NETIF_TYPE" = veth ]]; then > + echo "SKIP: needs a real interface, set NETIFS in forwarding.config" > + exit 4 # ksft_skip, lib.sh is not sourced yet > +fi > + > source "$lib_dir"/../../../net/forwarding/lib.sh > source "$lib_dir"/../../../net/forwarding/tc_common.sh > > diff --git a/tools/testing/selftests/drivers/net/hw/hw_stats_l3_gre.sh b/tools/testing/selftests/drivers/net/hw/hw_stats_l3_gre.sh > index a94d92e1abce..2cbc2682f7b7 100755 > --- a/tools/testing/selftests/drivers/net/hw/hw_stats_l3_gre.sh > +++ b/tools/testing/selftests/drivers/net/hw/hw_stats_l3_gre.sh > @@ -13,6 +13,22 @@ ALL_TESTS=" > " > NUM_NETIFS=6 > lib_dir=$(dirname "$0") > + > +# The test needs a device capable of offloading L3 statistics. Where no > +# real interfaces are configured, lib.sh makes a veth pair instead, > +# which cannot, and every case then fails on something the kernel > +# correctly refuses. Check this before sourcing lib.sh: it creates that > +# pair as it is sourced, so exiting afterwards leaves the devices > +# behind, and the next test that wants one of those names cannot create > +# it. > + > +: "${NETIF_CREATE:=yes}" > +: "${NETIF_TYPE:=veth}" > +if [[ "$NETIF_CREATE" = yes && "$NETIF_TYPE" = veth ]]; then > + echo "SKIP: needs a real interface, set NETIFS in forwarding.config" > + exit 4 # ksft_skip, lib.sh is not sourced yet > +fi > + > source "$lib_dir"/../../../net/forwarding/lib.sh > source "$lib_dir"/../../../net/forwarding/ipip_lib.sh > source "$lib_dir"/../../../net/forwarding/tc_common.sh _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel