From patchwork Sun Jan 8 15:45:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Nault X-Patchwork-Id: 13092526 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B2D8C54EBD for ; Sun, 8 Jan 2023 15:46:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233071AbjAHPqd (ORCPT ); Sun, 8 Jan 2023 10:46:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233192AbjAHPqY (ORCPT ); Sun, 8 Jan 2023 10:46:24 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39FB710048 for ; Sun, 8 Jan 2023 07:45:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673192739; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=mBUPsllV7S0PFvOHT8nwAOJJCxWYHkxwaycDYQO5qZs=; b=Q7MuMZZ8tSxJho9112S/WoTnivYVJERm7HjeUfZdDTw8haXX6LHNsD+uUn0Pdscyh3Bu2G l3VeDW2f0Uyt7QTTTJ5ylph+SmHtCuXWIGvTg8pVZkyWVYbr7smMuonfn/+zSyb/KLb4yb nOlaZrohcp7QGOqiv8CLGQ3IYzB8Xs8= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-10-rs0n3ZVkPJGuTrjuB7Upgg-1; Sun, 08 Jan 2023 10:45:37 -0500 X-MC-Unique: rs0n3ZVkPJGuTrjuB7Upgg-1 Received: by mail-qv1-f70.google.com with SMTP id c10-20020a05621401ea00b004c72d0e92bcso3925712qvu.12 for ; Sun, 08 Jan 2023 07:45:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mBUPsllV7S0PFvOHT8nwAOJJCxWYHkxwaycDYQO5qZs=; b=TQrlIMhXmyx/8gIwh9Y/qA/szCc0H3r3YXdNPe7RWt8Y8seOQToaP7VF4gPQKLiCOZ XFHcS3kYkO72WfDh5a3lDieD7Up//JpPr9x2Jq2VFqULqh3QE8XZyCd+NmEB+Ion+nxx nNmcp7gUD03fOCFiiTnnQ/vudcQsAplpTXS9HgTa2i1FBV2G/Q30RqQupmZr/ioT1+wB SY88abrLFPJ1CMQC8JlBDYVyXIRXxd1h9jNV5pNP/h1WNdEy0rEmf5EAbnb7JCLSmV6q m1T+1yIlm0G/VIo6lv2Mn5WGym9XkN211CIa7N+yKafNMdzrcHBiWppRywgVZEQgnQSo TbPA== X-Gm-Message-State: AFqh2kqA//zKEsEkExzj4MpsbEFHFbqPMuuunAMY41pumv/6Qo0Uwr5Y 6SelHIC071kDAL/NgXwwBz3XMXIgJgN45ZI9Qyen4wSaLO6Sh3KKJwtLidAXR4mdQ1/cNvKK1RM lAqdgeCHOwto0MiOfPPt7x6uDlaIK X-Received: by 2002:a05:6214:c6c:b0:4c6:fcf7:9aea with SMTP id t12-20020a0562140c6c00b004c6fcf79aeamr113843012qvj.49.1673192737391; Sun, 08 Jan 2023 07:45:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXuPuNPqKiPcbcSTUSOcOvyUfZX//mmtaUg5y3+sN2P0QdNm6wotBczBPXa+bMRlEDm04TvPNw== X-Received: by 2002:a05:6214:c6c:b0:4c6:fcf7:9aea with SMTP id t12-20020a0562140c6c00b004c6fcf79aeamr113842838qvj.49.1673192735159; Sun, 08 Jan 2023 07:45:35 -0800 (PST) Received: from debian (2a01cb058918ce0098fed9113971adae.ipv6.abo.wanadoo.fr. [2a01:cb05:8918:ce00:98fe:d911:3971:adae]) by smtp.gmail.com with ESMTPSA id t7-20020a05620a034700b007054a238bf2sm3842200qkm.126.2023.01.08.07.45.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Jan 2023 07:45:34 -0800 (PST) Date: Sun, 8 Jan 2023 16:45:31 +0100 From: Guillaume Nault To: David Miller , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: netdev@vger.kernel.org, Shuah Khan , Matthias May , linux-kselftest@vger.kernel.org, Mirsad Goran Todorovac Subject: [PATCH net 0/3] selftests/net: Isolate l2_tos_ttl_inherit.sh in its own netns. Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org l2_tos_ttl_inherit.sh uses a veth pair to run its tests, but only one of the veth interfaces runs in a dedicated netns. The other one remains in the initial namespace where the existing network configuration can interfere with the setup used for the tests. Isolate both veth devices in their own netns and ensure everything gets cleaned up when the script exits. Link: https://lore.kernel.org/netdev/924f1062-ab59-9b88-3b43-c44e73a30387@alu.unizg.hr/ Guillaume Nault (3): selftests/net: l2_tos_ttl_inherit.sh: Set IPv6 addresses with "nodad". selftests/net: l2_tos_ttl_inherit.sh: Run tests in their own netns. selftests/net: l2_tos_ttl_inherit.sh: Ensure environment cleanup on failure. .../selftests/net/l2_tos_ttl_inherit.sh | 202 +++++++++++------- 1 file changed, 129 insertions(+), 73 deletions(-)