Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6173009rwd; Mon, 19 Jun 2023 03:33:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6TW0WSrdgmxtxsoQh0/Bqec0yg2h0e2ZDohPhXRn1JWBH8+dnknWLpPtI997TM5g+gHeb8 X-Received: by 2002:a05:6358:705e:b0:12b:df68:2cfb with SMTP id 30-20020a056358705e00b0012bdf682cfbmr5709112rwp.19.1687170816887; Mon, 19 Jun 2023 03:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687170816; cv=none; d=google.com; s=arc-20160816; b=F123f7d2U29bLEys/XCSMk4hpOlQB3ygNkF8Sp8059W8vPgnhIlBJhfcs1CJWkxEPh eUIUWtq9Jz8iFT588p1+B8oYsAxp3Czo5W2F7QtCsOFTRE9PiUGurBD2k5VCm4xDASV1 Kh8jSAQmnjxH4p6Hbmro3Ss0zpwswI2OjUQ6clUQy+oo9lhz2nI1oMzIGUP+prB1gC/6 mKNVLG21CtNcGmbrer6t8iFog+A7vFVmK3qaNbZXFl82FO+dy0HsCR6bOwpTHimE8Lkx 88URQjIqSGgUsxKs2F+PokJb/X53O8r6X0J4gHnkQV+fzP6+JpouOSZ8tqMuAKCcc/yL OzJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=zm6Cc0Xss4W5//0ZUjHiKCDlCfy0uqiGU3h1YW8MZmA=; b=MuywUt+qOI/A1jrxvNSDOIkswGBiuU5f2g1WmEcuV65eKSCxajuqs/hkdIOKQWfESy susJGmFTBiUspVbESBDgHcoCe45qeU04IIRDHkHHx2co1mDv759bJw9knWknNMDhSnAZ EH5nLKD+JrZDJRSSZizKgcDY6CSQ85tW0MHW+RRPk9Q3CDeRbjAT2n2XJAErYPt8dacq fV/X40Ap0k315rPuZ5d6066ixI/JXz+yNrp9ixI2Xs53nYN6A9Xwb0f/Iw7oXLiSbkGb vsH1NEfIzFVOQ3Zhp90dqKhmbrmhbezxenq+D1ezuCeHURzQS7PIMzDEJeJwJgEtlCfH ajlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=BIRA7Agk; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z20-20020aa79f94000000b00666689cbbfasi10716827pfr.248.2023.06.19.03.33.22; Mon, 19 Jun 2023 03:33:36 -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=@gmail.com header.s=20221208 header.b=BIRA7Agk; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229894AbjFSKFb (ORCPT + 99 others); Mon, 19 Jun 2023 06:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231972AbjFSKE7 (ORCPT ); Mon, 19 Jun 2023 06:04:59 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A27A6B2; Mon, 19 Jun 2023 03:04:58 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-31122c346f4so3647838f8f.3; Mon, 19 Jun 2023 03:04:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687169097; x=1689761097; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=zm6Cc0Xss4W5//0ZUjHiKCDlCfy0uqiGU3h1YW8MZmA=; b=BIRA7Agk086POUiuAEZ0sF2Wftvy/CH+EyMwtcjvrDy/6f/A6+S1sO8E1lMLdJlmL9 ZzoMKnprlQw7dOFc0Xc6/kIuz6qzl2MZEr/+F9HzbPDnxhnqOIRWmQyAEuxMlg8SKT6U 7H9TlKK6Hf4Sxxqv0yBzHyI95PKIOWPE+GQFCigAJlWRdGRaKXjA11u4noj8F8umUrwl asShwh2UDZOF96NPKmW8sp/18VGSgcW0xsp84Haqy+kWOJRunRXxNzj92JGjNGZ9qvib dyuaGZNsyQuiwVyLYZxS7k5p5iLK5qqyzL9Ow58TfC9PR5ECZ8KZPfoSdXNAEmbFnP2x csYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687169097; x=1689761097; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zm6Cc0Xss4W5//0ZUjHiKCDlCfy0uqiGU3h1YW8MZmA=; b=JPX/XinH6YF6PXSOtKBqV8oEej20/cGcRrXxTwR8FsO9Mi/iYD/81kdNm0PufcCxaZ gwE07IApdI9ERxuqTG7/quR7Q+8PaPMJLTjrB95j8FPyFDi4mPx9TamKCb+q/Ec/sewT ko0L08SR28xrOLUyDaIco0jh8T49sL7Zv03uO1Ug2JoT5JO5KdVkfXaqKz5Bmdmsee7D yEODyL3NV0j+lJXEKjqsnsn9fLaGeqd0uYFjUZSojg3B0WoPzoO4rZF+uQnrhHhK9eAe hfQz9uCiuyGfJ+DKmj1l1t5qRdJFL00AcwFD+Ccq+GDP2h3kCI72xc9AxjxI1Y+Wkx4A ZW4w== X-Gm-Message-State: AC+VfDzlgLCmxjN+x2CtL3yo4VnLdSgfX23tVvpYVPTOyFqwp93CVqtY 3SaEQnvECOIPPI3we3v5z66bKoZXh4g= X-Received: by 2002:a5d:6452:0:b0:307:7ae6:fe98 with SMTP id d18-20020a5d6452000000b003077ae6fe98mr8372048wrw.22.1687169097006; Mon, 19 Jun 2023 03:04:57 -0700 (PDT) Received: from [192.168.1.122] (cpc159313-cmbg20-2-0-cust161.5-4.cable.virginm.net. [82.0.78.162]) by smtp.gmail.com with ESMTPSA id v18-20020a5d6112000000b003112dbc3257sm6081956wrt.90.2023.06.19.03.04.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Jun 2023 03:04:56 -0700 (PDT) Subject: Re: [PATCH 1/3] [v2] sfc: add CONFIG_INET dependency for TC offload To: Arnd Bergmann , Martin Habets , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Pieter Jansen van Vuuren Cc: Arnd Bergmann , Jiri Pirko , Alejandro Lucero , netdev@vger.kernel.org, linux-net-drivers@amd.com, linux-kernel@vger.kernel.org References: <20230619091215.2731541-1-arnd@kernel.org> From: Edward Cree Message-ID: <4a249806-cfdf-9634-cfe6-6263c38ed0a3@gmail.com> Date: Mon, 19 Jun 2023 11:04:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20230619091215.2731541-1-arnd@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 19/06/2023 10:12, Arnd Bergmann wrote: > From: Arnd Bergmann > > The driver now fails to link when CONFIG_INET is disabled, so > add an explicit Kconfig dependency: > > ld.lld: error: undefined symbol: ip_route_output_flow >>>> referenced by tc_encap_actions.c >>>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_flower_create_encap_md) in archive vmlinux.a > > ld.lld: error: undefined symbol: ip_send_check >>>> referenced by tc_encap_actions.c >>>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_gen_encap_header) in archive vmlinux.a >>>> referenced by tc_encap_actions.c >>>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_gen_encap_header) in archive vmlinux.a > > ld.lld: error: undefined symbol: arp_tbl >>>> referenced by tc_encap_actions.c >>>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_netevent_event) in archive vmlinux.a >>>> referenced by tc_encap_actions.c >>>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_netevent_event) in archive vmlinux.a > > Fixes: a1e82162af0b8 ("sfc: generate encap headers for TC offload") > Reviewed-by: Edward Cree > Reviewed-by: Simon Horman > Closes: https://lore.kernel.org/oe-kbuild-all/202306151656.yttECVTP-lkp@intel.com/ > Signed-off-by: Arnd Bergmann Additionally Fixes: 7e5e7d800011 ("sfc: neighbour lookup for TC encap action offload") The subject line doesn't specify a target tree; this should be for net-next. > --- > v2: add Fixes and Closes tags > --- > drivers/net/ethernet/sfc/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/sfc/Kconfig b/drivers/net/ethernet/sfc/Kconfig > index 4af36ba8906ba..3eb55dcfa8a61 100644 > --- a/drivers/net/ethernet/sfc/Kconfig > +++ b/drivers/net/ethernet/sfc/Kconfig > @@ -50,6 +50,7 @@ config SFC_MCDI_MON > config SFC_SRIOV > bool "Solarflare SFC9100-family SR-IOV support" > depends on SFC && PCI_IOV > + depends on INET > default y > help > This enables support for the Single Root I/O Virtualization >