Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp240429pxx; Wed, 28 Oct 2020 03:50:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgvJzWA+IpicAuc2V2V9HZvdLrYs8O3sjSxTnV8tNJKcctvmX1G3xwhlwx7D5oXutgEkY1 X-Received: by 2002:a05:6402:1148:: with SMTP id g8mr7249733edw.271.1603882230654; Wed, 28 Oct 2020 03:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603882230; cv=none; d=google.com; s=arc-20160816; b=Yaj3flX/HEteudrKihGYxOS6fS3cKeEbjN/5wmlJn1S4jYZ65mkJbR/Kx/++3wYSVu ev9r/f8AZ0UCae8qSalwhuSm3tW8cOoyOTDRsx+q3FQYb7Jq1pwaFEk2RX0rKQXmJ60k dUYTqx8vmMQ8C/oeblW5BSUdzGOnrz7uqD8UCfOsaJvlLSnhUnmJ32m84sqeX8rme/sY IitB5dykyYOUOuNeMwyFEA+2hLBwoK2HzRVwhJV0pqpPH4qAAipSFw6YiPxIidKdGsrE GdqBkFFax+1ZwMM5o/PHUvYZQ6heOl1UbiCYuIsWZORzsH2jsmABQMF3m7gbFD1dH6zG +Mqg== 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=eX/1KwlCHc9bhTO7OjgKdF5sCp4SnVrueVx/32blomM=; b=r7Cdr+Z2b8ysH0mXrtCKr76IGfn4IyN3Jyy4A85wXSnioh3z7DtHHDkFq2j5IR0tNK nBu9PZpQMKq8zc3MwEzu0HspniKy2ULwEIUW8XhHZlbptTZdwH7jijSgS9raEMLqf96o /ovikpO/Fr1R+vXxGdExqM09B/AOfSvjbuL89Y3NF5adyz9ybhctiFNW35v7v9j8H6ZJ fHZnDCoREni0vybUgArjODw9H0hPD6GtJhC7jlYcx+8a84P7r2TWlLaBaOt5qmCToFM0 3gr65exMBeciQE9VpsmhFOuqSqYxqOthmnFXZleaC8HW9+b7bkC5WlGoXw2ODjdKupjF eYSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t3+BmoNS; 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 bs17si3022913ejb.543.2020.10.28.03.50.08; Wed, 28 Oct 2020 03:50:30 -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=t3+BmoNS; 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 S1776211AbgJ0Oxb (ORCPT + 99 others); Tue, 27 Oct 2020 10:53:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:49824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1768928AbgJ0Otp (ORCPT ); Tue, 27 Oct 2020 10:49:45 -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 1A2A3206E5; Tue, 27 Oct 2020 14:49:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810184; bh=ABDJk1IgEQkgZTjKItFkQe7nMQHUcwiBYX3QUIwfmrY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t3+BmoNSo19n1xMQO7frOV4GkuxAW9lzK9Be3AMELSfc511jASq/ZE7fRxktw/z/1 snIT2Gmk43eCdldSxMkz2qXpnw1woJPSPo8IN0+sLmby83BnvgpqHV7booQRXxBAq1 i3ZR9WcdL/CZbznK2+piW3LEnXsBpNphKPzLXBuU= 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.8 051/633] selftests: rtnetlink: load fou module for kci_test_encap_fou() test Date: Tue, 27 Oct 2020 14:46:34 +0100 Message-Id: <20201027135525.093652953@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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 @@ -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"