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 E7C3AC433F5 for ; Tue, 11 Oct 2022 09:00:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229541AbiJKJAh (ORCPT ); Tue, 11 Oct 2022 05:00:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbiJKJAg (ORCPT ); Tue, 11 Oct 2022 05:00:36 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58F4852452 for ; Tue, 11 Oct 2022 02:00:35 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 4B2BD3200918; Tue, 11 Oct 2022 05:00:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 11 Oct 2022 05:00:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1665478830; x=1665565230; bh=0IvO0UcJSJiexYy2qNtH+WkfUbkn 7xXLWJ78GlWZfs4=; b=LcDSz+9KASF5ii4s1LO2Db3xeGeJdcpOoV32MkmD0kH7 zN3BCD7JqQoG2SyQoLfPZCIkHAiN8ozi1/fFS2S6ozKk4NVs4pdWCWwr1GDT+/sk UjZuusu2LJvcjo5un/KCUtIFoiu+0IwKsL7wx1MEABf33IC3bs+o7a6s6xrJAh3m LKhzl9S4Ju5F45CJx2h+Tj8II8i+V0QQHYb+qJ5FsjI0/w/bSodB3GHwQIVbzU+A brOhrOHgXuXzm+PAEB61fB8uINfcSG0asB9KN2/RbfI5joSY2cklnR8LwE9Yl9Jj 3AgVcVQKD5HBlDYKUmtXnZb7PEThpTzR0nK+D+vi5A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeejiedgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepkfguohcu ufgthhhimhhmvghluceoihguohhstghhsehiughoshgthhdrohhrgheqnecuggftrfgrth htvghrnhepvddufeevkeehueegfedtvdevfefgudeifeduieefgfelkeehgeelgeejjeeg gefhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepih guohhstghhsehiughoshgthhdrohhrgh X-ME-Proxy: Feedback-ID: i494840e7:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Oct 2022 05:00:28 -0400 (EDT) Date: Tue, 11 Oct 2022 12:00:24 +0300 From: Ido Schimmel To: Eyal Birger Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, steffen.klassert@secunet.com, herbert@gondor.apana.org.au, dsahern@kernel.org, contact@proelbtn.com, pablo@netfilter.org, nicolas.dichtel@6wind.com, razor@blackwall.org, daniel@iogearbox.net, netdev@vger.kernel.org Subject: Re: [PATCH ipsec] xfrm: lwtunnel: squelch kernel warning in case XFRM encap type is not available Message-ID: References: <20221011080137.440419-1-eyal.birger@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221011080137.440419-1-eyal.birger@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, Oct 11, 2022 at 11:01:37AM +0300, Eyal Birger wrote: > Ido reported that a kernel warning [1] can be triggered from > user space when the kernel is compiled with CONFIG_MODULES=y and > CONFIG_XFRM=n when adding an xfrm encap type route, e.g: > > $ ip route add 198.51.100.0/24 dev dummy1 encap xfrm if_id 1 > Error: lwt encapsulation type not supported. > > The reason for the warning is that the LWT infrastructure has an > autoloading feature which is meant only for encap types that don't > use a net device, which is not the case in xfrm encap. > > Mute this warning for xfrm encap as there's no encap module to autoload > in this case. [...] > > Reported-by: Ido Schimmel > Fixes: 2c2493b9da91 ("xfrm: lwtunnel: add lwtunnel support for xfrm interfaces in collect_md mode") > Signed-off-by: Eyal Birger Tested-by: Ido Schimmel Thanks