From patchwork Mon Oct 26 05:46:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Po-Hsu Lin X-Patchwork-Id: 1387458 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CKP3J5W4Bz9sTf; Mon, 26 Oct 2020 16:46:35 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1kWvKt-0008GH-2h; Mon, 26 Oct 2020 05:46:27 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kWvKr-0008Fw-Hn for kernel-team@lists.ubuntu.com; Mon, 26 Oct 2020 05:46:25 +0000 Received: from mail-pg1-f198.google.com ([209.85.215.198]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kWvKr-0000xw-5H for kernel-team@lists.ubuntu.com; Mon, 26 Oct 2020 05:46:25 +0000 Received: by mail-pg1-f198.google.com with SMTP id m11so4837911pgq.7 for ; Sun, 25 Oct 2020 22:46:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=ObGlPCroIyr3vkIfLqmJB6Btww1qqFEnPihkXZAc+P0=; b=umL8dGo/xSUGOamQZNDPBwRn7mZiqqg0N8RMIKD5Y/Su8kG+6oNGKI+z9jZ96kwa3M rri7DYm9blFRqnpNAkjcMP33y5m1yOQtDSCFIZq+owMWmNOerme1AzPlkKtM3KYuq9ff V9rj2ZIxl5OSEGSiUt5X4gGB5CmbynVfTn+lHTf8v841Ddl0USsc/o65pax7BVXqx9eU 62MVBkmB/l6LSn/zEsxxkMzf3VjI2+V7QQz7dDynCf9LCCZHg9+88Apu3hAi4f2TuoTG rsePqSgJcTW8/R4GqA8DQ4l1I3ThTu7SkSSqGjlSOaz8zRyeY9vBRGzTtaZQUJuPyrnF bi/w== X-Gm-Message-State: AOAM5307zZN0Qvz3ap1lwIB5fUaW1KnGjogMkNVZ6HSQ3/kmjssk2K+F Fddv5FFQO5rLoMZy+BEcoiXVPSZ6B0KQ0mtLW/AnprKkweFeAiSrpUu4jBVWdbM+1y/0W4yTiWn ERcjmfqsoTTJ6GXcfcGS97octkVd37gddPs0Y8qJm X-Received: by 2002:a63:7a1b:: with SMTP id v27mr12632101pgc.176.1603691183423; Sun, 25 Oct 2020 22:46:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjECcPkBd1I8qykGduI4Bu6MoZSZP5h46Lo5G5mHKHYOvurFVLVQxhd24Yg1C0TDEbUXxzvA== X-Received: by 2002:a63:7a1b:: with SMTP id v27mr12632094pgc.176.1603691183158; Sun, 25 Oct 2020 22:46:23 -0700 (PDT) Received: from Leggiero.taipei.internal (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id g17sm10368099pfu.130.2020.10.25.22.46.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Oct 2020 22:46:22 -0700 (PDT) From: Po-Hsu Lin To: kernel-team@lists.ubuntu.com Subject: [B][SRU][PATCH 1/1] selftests: rtnetlink: load fou module for kci_test_encap_fou() test Date: Mon, 26 Oct 2020 13:46:10 +0800 Message-Id: <20201026054614.17114-2-po-hsu.lin@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201026054614.17114-1-po-hsu.lin@canonical.com> References: <20201026054614.17114-1-po-hsu.lin@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1891421 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 (backported from commit 26ebd6fed9bb3aa480c7c0f147ac0e7b11000f65) Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/config | 1 + tools/testing/selftests/net/rtnetlink.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/tools/testing/selftests/net/config b/tools/testing/selftests/net/config index 28b5020..defbecb 100644 --- a/tools/testing/selftests/net/config +++ b/tools/testing/selftests/net/config @@ -3,3 +3,4 @@ CONFIG_BPF_SYSCALL=y CONFIG_TEST_BPF=m CONFIG_NUMA=y CONFIG_KALLSYMS=y +CONFIG_NET_FOU=m diff --git a/tools/testing/selftests/net/rtnetlink.sh b/tools/testing/selftests/net/rtnetlink.sh index d2ce7ec..cd858a8 100755 --- a/tools/testing/selftests/net/rtnetlink.sh +++ b/tools/testing/selftests/net/rtnetlink.sh @@ -434,6 +434,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 exec "$testns" ip fou add port 7777 ipproto 47 2>/dev/null if [ $? -ne 0 ];then echo "FAIL: can't add fou port 7777, skipping test"