Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1317453ybh; Thu, 16 Jul 2020 08:54:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzepu6ke4sON+KXfmuXQUH817k9h6vxMborQekjw6jSdiBzYssWQNiTc8gCgPiZgMa49TFU X-Received: by 2002:aa7:c2d7:: with SMTP id m23mr5094472edp.216.1594914839827; Thu, 16 Jul 2020 08:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594914839; cv=none; d=google.com; s=arc-20160816; b=uFRn1DDL0LvY1jk2PuIKt/T/TteUPRSqgWOrQONUbOeHFSztSs+AZfrtIHeNgRJUBR FvEYZhZR9fE8HuZ+UpGF3flelfTlbCOEjk5QGnnjnLc+n7pa6FjHcJM/IJVO+veAClt5 b90C2UtwbGzENoo88Q8yF3fceLMcYLhyXnKAD51esr1XvKDC9UA60M9Zcht+6wFPqmiJ +vKjPwLK/IQyaK0lLOA4AG5+o9La4nx21yaJYTWgx/2qkMOOUcEvajoQyB+DfvFIl0kP QRO+8vaUy5G4vdohahbeUnSChhniRkjxly9DZ7cHHFQl4p0cjriJWy16lgqPME1iJmXI duxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=It6mSj7jiSe9IZWz010eMxRD2yyQ9vcbYojVWMP2fN0=; b=FBvxHQm4a5vmFZqfVMusIuSSXS+2/xDtWfLI61LGWKTXVVgctsQnNp+z7IGH7rhjXm MfZyycvAaIqTIjfKJHFOw/lHp1i9YxUBG/t3LNV4DwCwRYuuQKiBl8D0lmv+0goQwW3W 1zxq6lr/zrMA31L8hV8RA4pAorRVyjHDRXt3W7mKgYaMtRsvLHmZWu3Q0nsv68XTEeQ/ wnEf4PkHdT+48eMB1MTnaQBVnTvJsIMAo3F0lhZoRHAE6rON6oFXJ4cC2eZ32pzvLZkv iLa5cBkeuRS/6Q/zzhDZk7OMejNk2S1mh3dWfz7bW3CRhtxF2QRUC+cuDjfGJGORSPcT Qklg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bq8si1420718ejb.320.2020.07.16.08.53.25; Thu, 16 Jul 2020 08:53:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729203AbgGPPvS (ORCPT + 99 others); Thu, 16 Jul 2020 11:51:18 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:60445 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728126AbgGPPvR (ORCPT ); Thu, 16 Jul 2020 11:51:17 -0400 Received: from 1.general.ppisati.uk.vpn ([10.172.193.134] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jw6AE-0006Pi-NC; Thu, 16 Jul 2020 15:51:14 +0000 From: Paolo Pisati To: "David S . Miller" , Jakub Kicinski , Shuah Khan Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] selftests: net: ip_defrag: modprobe missing nf_defrag_ipv6 support Date: Thu, 16 Jul 2020 17:51:14 +0200 Message-Id: <20200716155114.72625-1-paolo.pisati@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix ip_defrag.sh when CONFIG_NF_DEFRAG_IPV6=m: $ sudo ./ip_defrag.sh + set -e + mktemp -u XXXXXX + readonly NETNS=ns-rGlXcw + trap cleanup EXIT + setup + ip netns add ns-rGlXcw + ip -netns ns-rGlXcw link set lo up + ip netns exec ns-rGlXcw sysctl -w net.ipv4.ipfrag_high_thresh=9000000 + ip netns exec ns-rGlXcw sysctl -w net.ipv4.ipfrag_low_thresh=7000000 + ip netns exec ns-rGlXcw sysctl -w net.ipv4.ipfrag_time=1 + ip netns exec ns-rGlXcw sysctl -w net.ipv6.ip6frag_high_thresh=9000000 + ip netns exec ns-rGlXcw sysctl -w net.ipv6.ip6frag_low_thresh=7000000 + ip netns exec ns-rGlXcw sysctl -w net.ipv6.ip6frag_time=1 + ip netns exec ns-rGlXcw sysctl -w net.netfilter.nf_conntrack_frag6_high_thresh=9000000 + cleanup + ip netns del ns-rGlXcw $ ls -la /proc/sys/net/netfilter/nf_conntrack_frag6_high_thresh ls: cannot access '/proc/sys/net/netfilter/nf_conntrack_frag6_high_thresh': No such file or directory $ sudo modprobe nf_defrag_ipv6 $ ls -la /proc/sys/net/netfilter/nf_conntrack_frag6_high_thresh -rw-r--r-- 1 root root 0 Jul 14 12:34 /proc/sys/net/netfilter/nf_conntrack_frag6_high_thresh Signed-off-by: Paolo Pisati --- tools/testing/selftests/net/ip_defrag.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/net/ip_defrag.sh b/tools/testing/selftests/net/ip_defrag.sh index 15d3489ecd9c..ceb7ad4dbd94 100755 --- a/tools/testing/selftests/net/ip_defrag.sh +++ b/tools/testing/selftests/net/ip_defrag.sh @@ -6,6 +6,8 @@ set +x set -e +modprobe -q nf_defrag_ipv6 + readonly NETNS="ns-$(mktemp -u XXXXXX)" setup() { -- 2.25.1