Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1249032lqb; Thu, 30 May 2024 05:10:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9e6OXELtAQ/jAZpvvAl+9mSF1jlgR+c8WaYoYfne9/+YyiIfGg6Jsevt0c8fUQKlQ96Pl4zlhpbXXZd4jZTuIFV0eRfht0+Q/WJWREg== X-Google-Smtp-Source: AGHT+IEWcckRYv3+W8DKsqsi3/56uSedgNQADgdrZ9lk2J7V4rFaSBdicoEH5CxUNNGZEfGFuyDW X-Received: by 2002:a05:6102:4a04:b0:48b:aa85:a6eb with SMTP id ada2fe7eead31-48bae99ce5amr2048834137.17.1717071051701; Thu, 30 May 2024 05:10:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717071051; cv=pass; d=google.com; s=arc-20160816; b=1El8KefbB7znJQagu3QGf8MHxpf/pV/I+bz7Eflv/mNyRLaFEt3XzSP4Y81BW1PG8p Zi5YU/Cp0hm0hmewoSbgsmk5DY/cABLthkEUphGYLUPvvRw2aImqo0qNg0TLaCZLWkrD bXbuu2RG+aXdntN/5ttohyQwNSUsRDeh7oMbeoVsAhwOHhv5W09g66SlbbozwOpkg4Mg oRA5Y3wCJtmEoTl+6h/LpUU1GQldYri+3OPXMwC1zBNVMASzhjwlx/BWEEysQnoQk1KS +E62uQZC6vMbzemRDmoKx62241bkgSJuCQP8ec6D0JgZQxNG+w8Na5VIteh0kz7riL5F 44rw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=vn5DeFOwNHbs9/RCnEd5ReZXwUcap9a3NbSMJIIwBVg=; fh=E7q369k54U9VDSg1U+sczswAUTpUEjneeNTZprK73pQ=; b=udRs5PqjQvs5b54hF0F4h/FrIiG4k3r2r37r4k9fNLenrCVd49JNPQgcG8qcsUFVOz WkHTzZtqFdJ/tOBJRqb3qp28D0sK07YYBOSNRnUSoxaPhbCTMCbUJtWy50DYQnb7o2zh /aHkRY7T+wmidwCH0CYviwGKeWMyengtT/q6B1wU37nLEQd1JcnGD9y3dgMO7HxGV7Xx pH9rdJz9nKW13wFxRRWis6n9fwLbWhwfXt8PJ5E0r+uca/EufOq/fGeqI0LJZmmtiwbM /AyeyP0DAQ8I+UZtJ4TTNusvERptFl7yjFsPRQBUkrjOoKBs4te2+4oLqMIYrTEWKXbs DYOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-195344-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195344-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ada2fe7eead31-48bb4f4e2e7si76307137.259.2024.05.30.05.10.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 05:10:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195344-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-195344-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195344-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6B6161C23063 for ; Thu, 30 May 2024 12:10:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C030B1822EF; Thu, 30 May 2024 12:10:42 +0000 (UTC) Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7AD4C176183; Thu, 30 May 2024 12:10:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717071042; cv=none; b=G1upMTVIg/w3+Wh/tFbehLvwJqtN9RpNgWoCLqCrkkHxS9VwH0VmJCfKTfPtoyuGC4jPkiTO0Bqt+HB/vZbtPuwA+bt4H8DkRffuwLR7GY4MJpHQl/0vQJYigNXB5bkJHtyy/BN2eh2P0V/e0Hpiehfn5DyNxOtk3vycKVz2KuE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717071042; c=relaxed/simple; bh=P0RD5wePROwgM93a13nPt0ORKlo981rKnfcaHC63to8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SkdbQGZfkYn4/AsOgz5f468bwu8wf/iTPeFoEcJvEOfGDR++cPSq0e5Jz4E02T7e07IUY0F9hU3lVc2bdtbkHxxq0BaU8RRurGIrIIXZxAQ1SvsPgp/D3E5+yoVfFAymI2pjFNcroRgEGsT2WmtmHcPnKu+bbXFtoYzCnulq1MA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a6302bdb54aso88117966b.0; Thu, 30 May 2024 05:10:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717071039; x=1717675839; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=vn5DeFOwNHbs9/RCnEd5ReZXwUcap9a3NbSMJIIwBVg=; b=J4DX342m5zqywde/HVqj1vu0YSQCb16JDV/G3RWrSMkuy4BQH/jdwON8iQ+rMOBmZK OHbwxMhD74AfqZVCfnSosqrD4lgKHONQUvlFVa1yUxsYA91l43DTND7pyBk5kegYeKdR RUKxeBweh1PWHmchI/hGDUU6l+6xgUKTf5U6GJnKDY8rTCSQ6Azka2ukLIbM3TJ5JGoc rOqo9MW9i8NBPOxC3yveBPcXRz0EhCzeOnJTBD1leuhPORuhkL8KG7JRAnUVXm8TIO6X Jl1x4NYX1xGkSR7H6Wf7iGaXw4pNxwWByRxDeO/R/qA5czPHvoG+Um+TSx4j7Tw03Chk oYWg== X-Forwarded-Encrypted: i=1; AJvYcCXdX6xNkrvT2PGzRWIREfgVLMj01q0qXCPYOvTMSjOwqx5zAhbNGMwqNseizavqcROtrWPp52M04TJChK6s9uvP5/tuFBYJG7Te6nXG4gtjC4YT/xGAW4K150hT6+35uYOwmi94jEpLMnjzVPCH X-Gm-Message-State: AOJu0Yw5OTRJZDwMu+P8FTzkpcB1VSNXvCAp29WMFrAtavOCstYEJycr ic+c8gXhldqKJCn/GUnsWnnsDvX8OhauTw8JmJmqhdy+Cx/S5pYU X-Received: by 2002:a17:906:b245:b0:a5a:4705:ad36 with SMTP id a640c23a62f3a-a65e8e34e38mr121799766b.16.1717071038446; Thu, 30 May 2024 05:10:38 -0700 (PDT) Received: from gmail.com (fwdproxy-lla-006.fbsv.net. [2a03:2880:30ff:6::face:b00c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626cda6cdcsm810394166b.209.2024.05.30.05.10.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 05:10:37 -0700 (PDT) Date: Thu, 30 May 2024 05:10:35 -0700 From: Breno Leitao To: Matteo Croce Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Shakeel Butt , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH net-next 2/2] selftests: net: tests net.core.{r,w}mem_{default,max} sysctls in a netns Message-ID: References: <20240528121139.38035-1-teknoraver@meta.com> <20240528121139.38035-3-teknoraver@meta.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240528121139.38035-3-teknoraver@meta.com> On Tue, May 28, 2024 at 02:11:39PM +0200, Matteo Croce wrote: > Add a selftest which checks that the sysctl is present in a netns, > that the value is read from the init one, and that it's readonly. > > Signed-off-by: Matteo Croce > --- > tools/testing/selftests/net/Makefile | 1 + > tools/testing/selftests/net/netns-sysctl.sh | 15 +++++++++++++++ > 2 files changed, 16 insertions(+) > create mode 100755 tools/testing/selftests/net/netns-sysctl.sh > > diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/net/Makefile > index bd01e4a0be2c..6da63d1831c1 100644 > --- a/tools/testing/selftests/net/Makefile > +++ b/tools/testing/selftests/net/Makefile > @@ -53,6 +53,7 @@ TEST_PROGS += bind_bhash.sh > TEST_PROGS += ip_local_port_range.sh > TEST_PROGS += rps_default_mask.sh > TEST_PROGS += big_tcp.sh > +TEST_PROGS += netns-sysctl.sh > TEST_PROGS_EXTENDED := toeplitz_client.sh toeplitz.sh > TEST_GEN_FILES = socket nettest > TEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy reuseport_addr_any > diff --git a/tools/testing/selftests/net/netns-sysctl.sh b/tools/testing/selftests/net/netns-sysctl.sh > new file mode 100755 > index 000000000000..b948ba67b13a > --- /dev/null > +++ b/tools/testing/selftests/net/netns-sysctl.sh > @@ -0,0 +1,15 @@ > +#!/bin/bash -e Don't you need to add the SPDX license header?