Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp212903pxx; Wed, 28 Oct 2020 03:00:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySVC+wHQkS5NCQTMu3pDGILaJHkQyT9npmfFvvVSm9gpOTl5ItzJlWNmX6ovOFwDT3ClMT X-Received: by 2002:a17:906:b0d6:: with SMTP id bk22mr6553125ejb.153.1603879249911; Wed, 28 Oct 2020 03:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603879249; cv=none; d=google.com; s=arc-20160816; b=K3QAD1hX9JwIWsp64uQKwBLsRHGA8b08xxIwyXqtNXux7a+nrxoy9VE7QUTQnzKpZ4 aofcDEXbW/T+73hDoD91X2EfcgUeNzpADlkZkJgA2AEw4+mooTUjGZk6X8X2a+NP0Hfd lkgeQfcSm0XaFyEbT/E3U3AMpKlRIA431exXpxzi8gxYb70QYZVbENv0swOqwrdQIqp7 jhmnmwJkgTFIP3mLAzi9tmGaBRnQdhBoDsSc+2b1Ko5f5APGlvREEjvN/PDW80nFiehy vP2iyaEuw/7ov2v+ZH3OMSLdZcWHmVcmRH/QHPOmucLAoz1zWxsaz988uIQhn+ON74b1 M0mg== 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=BIzDdxTw4aGIYxebr3EX5/agg+xxAYbyxe7v50GCqVs=; b=cqmegx/S783lOGiiZAT3ZDMEiM5GZnPDCkuoPQMJfMx0SCvgkIcMLZxDgGPi2k5Act K1RoJITVOBxvM6g/LDo76RjRlERnKfVA5/tPEFT+pICTmX4QsWb+0hFyDupsXnAwdShr fsU6LdNDLe7zgMdede1sMXH/ioCPu60eVv4Vx8oM3gCMTrr/Rqb/u0J3F8+Ky5b4ZECm BRjUpHlR3QBtiDDDN7oXYmxEWvw2/thA2m87EePQcySiNnPb62tRAES2E5/XG1amIuhy KBobrD2SryHU6FItLu1KYF/Oy42twEji9G3Zfc4yveCPUGZYrmKvz3gUADlwqvhnH37z X6OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cXhQQa3W; 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 q18si2524555edb.466.2020.10.28.03.00.27; Wed, 28 Oct 2020 03:00:49 -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=cXhQQa3W; 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 S2902166AbgJ0ObL (ORCPT + 99 others); Tue, 27 Oct 2020 10:31:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:56648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2902120AbgJ0O37 (ORCPT ); Tue, 27 Oct 2020 10:29:59 -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 7FF0620780; Tue, 27 Oct 2020 14:29:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603808999; bh=hX2WUAyvCksc83K2AAtiZEm+2c35fX3H9SIA3/IBEp0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cXhQQa3WahjmkZxH4rHJlfHo/YlH2Kq78nwEjVaOr0pPi7a6g2WWi6BWJi2xLE5/c TjGzo7EXzbu4sGzQ1n0mhMkmXjNGojjKsgOrOmXyKB+cJypR0vE4Awmp2KieLJ38rU YvuaB+Z4JbeJpXt3ywl2gxkMINDOpBn+w4m2aZQs= 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.4 038/408] selftests: rtnetlink: load fou module for kci_test_encap_fou() test Date: Tue, 27 Oct 2020 14:49:36 +0100 Message-Id: <20201027135456.849351447@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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 @@ -29,3 +29,4 @@ CONFIG_NET_SCH_FQ=m CONFIG_NET_SCH_ETF=m 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 @@ -521,6 +521,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"