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: 114946 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10835150vqr; Fri, 30 Jun 2023 22:05:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5FBH1XxKmDtQSfJuVU0lvBeNiYfZSzNaR0Y3Qkn3nbrT0VPS8rjFpSd/9eFkyXvFfUK2Yb X-Received: by 2002:a05:620a:4113:b0:765:59d8:d421 with SMTP id j19-20020a05620a411300b0076559d8d421mr6032830qko.1.1688187903699; Fri, 30 Jun 2023 22:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688187903; cv=none; d=google.com; s=arc-20160816; b=Elyht1k4B4UjwnCb6SvfRYNwGpEfRVdmGkP3Ubhlxw4NSnp1jfx+HpFmD7hXC2sFUV jVQ3KG4GSj7btrMIs6+/BoWpwD2fc1wvfoeIVOfHRkGtgbwQiih0W+XFkT2Q5qrDHIS0 Td6XLMKrJ2qONmKhQQpa9AsS2gPsSgkXqtWlRflLB+CERgNoiJBYM96fxT/mZ41xrQVR B/pTRYSirY4gUqcpmRO0wgMfM+bGZLczefohH40VTY7ixm+UoMoywC+xeYLokNRpvJyw xJkOu51Yy8WYywBEKhKaJJir0yw4LE7cKX9mqe65kW2I2tFi16wzs+rR/j022pIPp4cW jZaw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=glUJU/oOKrBNGBc22+2Ww5Sx0+TjKtU0nzbR4VOU8SA=; fh=BRKxJvvKqOuVqSc6qLkZ7IG81tnsy2DkJCaoMUr4HiI=; b=rhy8KzKdrHCqIo5F+IqAiDypKDZAHU54GQ5W0OXcp/BQ8fhxjxSI6MN97wcTGOIQ8d AYJ74apDSHHG0SISMAvAo4oINcjh0TF3ntznwWp0wMk+dyipOoFKELiHv3gsznynQiBi nUDtaXyeFAU69EWYsxzb7iWlSHFZ/VDjaiW0cwl1Q01tPielpR7xoekrMDfShcy2cud4 n8hykjlEaQHzTdjEiCO534SiUYktyTBcsIUOK8RFiErPMO4RGLgFL/lTJbDBbr6xDIgn ZdzemuUee8QtmzgeESvy/OYxZBbA9ZisDMlZX49YqSeWp/afMiXhkEkH4TQt/wCgQJLs tRZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QmqDPHCE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 64-20020a630243000000b0055725f4e0a7si14182023pgc.679.2023.06.30.22.04.42; Fri, 30 Jun 2023 22:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QmqDPHCE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229695AbjGAEmG (ORCPT + 99 others); Sat, 1 Jul 2023 00:42:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbjGAEmE (ORCPT ); Sat, 1 Jul 2023 00:42:04 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D23BE4205 for ; Fri, 30 Jun 2023 21:42:02 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6b7541d885cso2244699a34.3 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=E7Pewc6FYpNN3NtHmCDaHdlQIx5TfyeZZIVw0S72JT6x8b3W1oFIhi2oojAjQBzjwp o6ctLMKg94TC5lLJHHSz/tYWjUmSBtxaOHC91MVdlYs/uxY7i+BKTksjh2oybUzY7rY5 csYBjBY6vABd1xJmYc+QitQ9PtA2pWsa7MAizMWdmhC9IP83px7DIhRy2HcssSAwfDFt JIhSovq8fC+nSpBiWQlEV0/vjtH6TWMdn/pnvoetEDXlyH4pZv++oeVqFdYL0LEQBSYt eAUZEJeUKP47F3vhcquDz43fPZQ3yGXa64PoqXN9ZgeNkdTibDydyoFvnnK50qKnnp6/ dkMg== X-Gm-Message-State: ABy/qLaTYTOmb9s7m/FhtQdmseHu+BqtIQ4qVGnxXvgpaGTkr/G4e0z+ ziIClhB16yvy6P+oYO8JHgHkjPR9aOLsIheLEN3HUg== 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770193319337539881?= X-GMAIL-MSGID: =?utf-8?q?1770193319337539881?= 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