From patchwork Sat Jul 1 04:41:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_D=C3=ADaz?= X-Patchwork-Id: 698897 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CAEB2EB64DC for ; Sat, 1 Jul 2023 04:42:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229668AbjGAEmF (ORCPT ); Sat, 1 Jul 2023 00:42:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjGAEmE (ORCPT ); Sat, 1 Jul 2023 00:42:04 -0400 Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9364C4201 for ; Fri, 30 Jun 2023 21:42:02 -0700 (PDT) Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-1b13ae3a731so2138545fac.0 for ; Fri, 30 Jun 2023 21:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688186522; x=1690778522; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=glUJU/oOKrBNGBc22+2Ww5Sx0+TjKtU0nzbR4VOU8SA=; b=QmqDPHCEUSoUu5s30XOCaTgNt7Yc3GCoJ/YVLie6b77szDED466REqzsweKWJVMZ4r cJjx+07YWrs6cYhT8JoWOP45AheV3Y8mM26J3dcmy77n4SO89wbt6r8JPdpH4uJnBL50 J5bF6xUs/tEyEhrHA0PvW3AdhODhZWo8i4jbNNBWN9om2vGHR8Hr7opserUvhsRzpkW1 BTnEIXmgf6fA4lYA1n+KPU9ssKWEW/U54+TtJRcuEFuQZoDip0jmNv32enf/TR/we2Hs xFF1nqPk0/q1Wn/k6xLe7dXj/lc45hRnED3fl/UNg5gJqVeWTebHIQayr3xSJPbafZGc KXvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688186522; x=1690778522; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=glUJU/oOKrBNGBc22+2Ww5Sx0+TjKtU0nzbR4VOU8SA=; b=Ph4tAw8E/B00J52iUbJzBOcDrrDJ0KVrrz7flo4ZL0aBSBW+atKgW82RRRX5bWNLhu krL8Qst4pnl9G/R9M+qE3w2psPIDwsAh7ITGjI8NXUAV7cVbvIby9PunAmbff4XAIDCM Uw2EYlrlnJx6yP73n0zKGLTA7hxri7ih1ASzaXQsGa6RNAEWEy8HYHAegYzwYMSFQo2u BeT60WaxT1LeCeXnaTHhCa4mIVH+Sq849q6B4tpjeBGmdnTDjmGfbSrH8UA6vxOh+ym5 6sIFcygXWdPcxcE/FZDHA5i2Yg9sDEUpBj8ifQqSEyB1C5bLk2Qjmmx5JuYuS5bCCGz6 dDLw== X-Gm-Message-State: ABy/qLa8Jbf0dEm+sxH3TK2OoqNMd7SdabqawMaLU3CTi/0I6GG2RPzH p6zsPnTI2p3/kg1nLcEtvw4LNQ== X-Google-Smtp-Source: ACHHUZ5L8GGkhWrsQ4euNp9T1B+i+sOcGT0A3QPEV75aDTuRpCijOTvpXE+5DCJTF63xUupdu69GQg== X-Received: by 2002:a05:6870:6a90:b0:1b0:3a8c:a807 with SMTP id mv16-20020a0568706a9000b001b03a8ca807mr6512550oab.14.1688186521915; Fri, 30 Jun 2023 21:42:01 -0700 (PDT) Received: from armada.cortijodelrio.net ([149.19.169.76]) by smtp.googlemail.com with ESMTPSA id w19-20020a9d6393000000b006b74a5a2712sm5667081otk.15.2023.06.30.21.42.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 21:42:01 -0700 (PDT) From: =?utf-8?q?Daniel_D=C3=ADaz?= To: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: =?utf-8?q?Daniel_D=C3=ADaz?= , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , netdev@vger.kernel.org (open list:NETWORKING [GENERAL]) Subject: [PATCH] selftests/net: Add xt_policy config for xfrm_policy test Date: Fri, 30 Jun 2023 22:41:03 -0600 Message-Id: <20230701044103.1096039-1-daniel.diaz@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org When running Kselftests with the current selftests/net/config the following problem can be seen with the net:xfrm_policy.sh selftest: # selftests: net: xfrm_policy.sh [ 41.076721] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 41.094787] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 41.107635] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready # modprobe: FATAL: Module ip_tables not found in directory /lib/modules/6.1.36 # iptables v1.8.7 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?) # Perhaps iptables or your kernel needs to be upgraded. # modprobe: FATAL: Module ip_tables not found in directory /lib/modules/6.1.36 # iptables v1.8.7 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?) # Perhaps iptables or your kernel needs to be upgraded. # SKIP: Could not insert iptables rule ok 1 selftests: net: xfrm_policy.sh # SKIP This is because IPsec "policy" match support is not available to the kernel. This patch adds CONFIG_NETFILTER_XT_MATCH_POLICY as a module to the selftests/net/config file, so that `make kselftest-merge` can take this into consideration. Signed-off-by: Daniel Díaz --- tools/testing/selftests/net/config | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/net/config b/tools/testing/selftests/net/config index d1d421ec10a3..cd3cc52c59b4 100644 --- a/tools/testing/selftests/net/config +++ b/tools/testing/selftests/net/config @@ -50,3 +50,4 @@ CONFIG_CRYPTO_SM4_GENERIC=y CONFIG_AMT=m CONFIG_VXLAN=m CONFIG_IP_SCTP=m +CONFIG_NETFILTER_XT_MATCH_POLICY=m