Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1718653ybh; Tue, 14 Jul 2020 05:41:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtnSWhbDa0P98hCVg+CZ9rjzYofwCgaJXHY+as9mRqH6u0Xz5HFgptTb9I5RL0t2c+kPiQ X-Received: by 2002:a17:906:2296:: with SMTP id p22mr4190178eja.510.1594730511010; Tue, 14 Jul 2020 05:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594730511; cv=none; d=google.com; s=arc-20160816; b=MwNx+EVWCMbYHuz7V2Giso/0XcH6wliO32wPuUnTAjBG5Gpf5J65MlttKL1L1EK8o0 eC9PpysFIaB2fTu45XVVV7UKoccMJTwupmx8ZYBul02Ik4U8ppQ06BIG+Q+r7pRtiGOf YKqtju8P+X5+Gd+Luaelb5K+rBitbeQMfu5Xi6gI4DdFlwteF9gWT6+HVQ+HX76h6/8Q eaRNJVaEfV8LCSwLrMB15rfP9zXD07hgRl01nfa5QFPsHUzaYKybGDLzDOK2chxiI3st +FhZcY2/q8MmoK3vCaHJGtj7B6j5b590QpJRCxfcb9YVxuZC8TaQLc4ZBAqE5/r48l6u d9Mg== 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=nz9dy6RugGJflTBF3VIcCnm7heF0Hp0yoqlUeWjGOoU=; b=AFyxNsLkVlsi2VmDL4PZzKTBY83rmzz57wuCzeaa8cC97aKTE4mZRsZoHFGuJke2w+ 0WODk1uIEUxudjJK8oW/s7NscyLKBxRo0Vgaju5aP8h30wvA19do7PmB+I6b7jjKocJ3 XRlgSr5cea/SXCHy4WfhfwAtGDiugF9d/JdWBEo8ZnnMJGcIV5+BTj9yl7LxY6SryyWB cbvmfG7p3qOx+U674O4R8zyhNr4WiUh+yzUySeLUc1VublfaafCNmKo464d3a2Owr5yd i0pCVvI6kpRdm+INWkrdVQ6xcp2xtWXODywbYq0abtquD18sOm6qSYLjQ7pbVPBdjkTq 22VQ== 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 f1si10533200eje.610.2020.07.14.05.41.27; Tue, 14 Jul 2020 05:41:50 -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 S1728300AbgGNMki (ORCPT + 99 others); Tue, 14 Jul 2020 08:40:38 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:34397 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbgGNMkh (ORCPT ); Tue, 14 Jul 2020 08:40:37 -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 1jvKEb-0001KX-1E; Tue, 14 Jul 2020 12:40:33 +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] selftests: net: ip_defrag: modprobe missing nf_defrag_ipv6 support Date: Tue, 14 Jul 2020 14:40:32 +0200 Message-Id: <20200714124032.49133-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..6919afe47e0a 100755 --- a/tools/testing/selftests/net/ip_defrag.sh +++ b/tools/testing/selftests/net/ip_defrag.sh @@ -3,6 +3,8 @@ # # Run a couple of IP defragmentation tests. +modprobe -q nf_defrag_ipv6 + set +x set -e -- 2.25.1