Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp307579pxx; Wed, 28 Oct 2020 05:33:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2RgGgP7WTdwvR6iqeSu58DFrWhn+8jzedSOEjJM2IVRkVNQSN3S/odWFVweE0WLboSF/h X-Received: by 2002:a50:cd51:: with SMTP id d17mr7171983edj.93.1603888397299; Wed, 28 Oct 2020 05:33:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603888397; cv=none; d=google.com; s=arc-20160816; b=Xk/d+BC0VYaz2GJ8TihWfSOoR7Z26qCXV1zabSi65Fdwt/gb10IT3CEUGk5hZJdWgB RnMzKbYSxEBWf1lFuVEiU3eyW3icT7FiCBCNoTcYVZ5o+VNkfxBuUIYmDEVS+XUTtmGn KWNuOyKzT6NwKdCNwDHckY5oSzbUTvJ42N5o02mthrQuCybg4bPD3RQbTXZPNJD2bcZL IX0yAVtHS38NMSpaEP8shFfu75ZrO0HWDArK+f3zlaUzgDA6oApgfCjq7q9qn/y+/4CI ivd2N8VZ374cago24DaJOL8vyEQFY7diqnMCaBnHFA1m5zeYpxN9nkBLqrBYxqg3d/MS FF+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4i9PJLm1wa4Nnid2uODlShd33dEshpja0oRszMEpyIg=; b=I9wZjLwpMBm27+0YkFrV9OQT0us3rf0NUbF8BVi+5spc7LgnRsRFr0MvyZSIZVLaGZ UHzf6PtCxpheTGLZQgPhWG0RJkFvX4k1eEYzBQdJdLjU3Ab4u+cvbHimOeN7VSpRnBIn hm3wvH1e+upiK5ejHbWRQEbMlh3KulIGQ6nBdDSzZwMDN5+ORn5YfxvQiJeFnXqm+15W oRKM5b6A6KhFyW/w06N5So1kyCtklWWbmTycKvl5+YKI+/CJtMeEgxM+WkLNm2Id4JrY iCOVhko+9wdxLwXzAM0iYx0HDznZw/Vb9E0IwX/IyAkKluCNEATKzSKK4HUwHufTWexN UWlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ndBHN7/u"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gf17si2900638ejb.226.2020.10.28.05.32.54; Wed, 28 Oct 2020 05:33:17 -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; dkim=pass header.i=@kernel.org header.s=default header.b="ndBHN7/u"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1797196AbgJ0PWJ (ORCPT + 99 others); Tue, 27 Oct 2020 11:22:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:58832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1796584AbgJ0PTl (ORCPT ); Tue, 27 Oct 2020 11:19:41 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C33262064B; Tue, 27 Oct 2020 15:19:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811980; bh=Z/3rtfX5Ltxz0JpRyl/qIIMlY2WluXROD8P2KkLPdig=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ndBHN7/uoZkIjTFsOotPv9iKM89M+rtg6YkOMdb8LdwHDF+Lbq+BWhrJXSTEhMTrS HyHmj5fCVB8zI3T2jPatp3092RXSCJu4rXBvKtoIV6E9HCzpqLR7c+xLzKy5+dPnZ8 QOaqx5AS4DofdXSAETREn9NOl5ljOXH0xvmm/OfU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Po-Hsu Lin , Jakub Kicinski Subject: [PATCH 5.9 051/757] selftests: rtnetlink: load fou module for kci_test_encap_fou() test Date: Tue, 27 Oct 2020 14:45:01 +0100 Message-Id: <20201027135452.948114545@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135450.497324313@linuxfoundation.org> References: <20201027135450.497324313@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Po-Hsu Lin [ Upstream commit 26ebd6fed9bb3aa480c7c0f147ac0e7b11000f65 ] The kci_test_encap_fou() test from kci_test_encap() in rtnetlink.sh needs the fou module to work. Otherwise it will fail with: $ ip netns exec "$testns" ip fou add port 7777 ipproto 47 RTNETLINK answers: No such file or directory Error talking to the kernel Add the CONFIG_NET_FOU into the config file as well. Which needs at least to be set as a loadable module. Fixes: 6227efc1a20b ("selftests: rtnetlink.sh: add vxlan and fou test cases") Signed-off-by: Po-Hsu Lin Link: https://lore.kernel.org/r/20201019030928.9859-1-po-hsu.lin@canonical.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/net/config | 1 + tools/testing/selftests/net/rtnetlink.sh | 5 +++++ 2 files changed, 6 insertions(+) --- a/tools/testing/selftests/net/config +++ b/tools/testing/selftests/net/config @@ -31,3 +31,4 @@ CONFIG_NET_SCH_ETF=m CONFIG_NET_SCH_NETEM=y CONFIG_TEST_BLACKHOLE_DEV=m CONFIG_KALLSYMS=y +CONFIG_NET_FOU=m --- a/tools/testing/selftests/net/rtnetlink.sh +++ b/tools/testing/selftests/net/rtnetlink.sh @@ -520,6 +520,11 @@ kci_test_encap_fou() return $ksft_skip fi + if ! /sbin/modprobe -q -n fou; then + echo "SKIP: module fou is not found" + return $ksft_skip + fi + /sbin/modprobe -q fou ip -netns "$testns" fou add port 7777 ipproto 47 2>/dev/null if [ $? -ne 0 ];then echo "FAIL: can't add fou port 7777, skipping test"