Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2525192rwd; Fri, 16 Jun 2023 05:04:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4q6fukXoRssjijOMTL8kpm3v4KWq7QGsxCmFIfR/ZrbD0SasyK/lmkREj6yqp5wVP8+BTn X-Received: by 2002:a05:6a20:3d82:b0:10b:d70d:f971 with SMTP id s2-20020a056a203d8200b0010bd70df971mr2948872pzi.3.1686917045634; Fri, 16 Jun 2023 05:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686917045; cv=none; d=google.com; s=arc-20160816; b=0LLw3z6lGROq5WwE78n1QJsGfOzQO937d3kdSseAc/Veh4P/JndSRNgY6NaBifv6e/ Nq167yPyBoTA344o0o6IZoFFgamOsdPD6qQLmfjM3T/4TTZGrZ9u1yMDzCb8kE5Tt1Ck UOuUK9xff7O3SU/2YRKaRY6Wpmq21/7LcP89EbOxI0pnLYCi+JX5Na7osqUeb0NwSeKM go+bI/KcJv8cf6uoUE1y7h0O3vK+TYhLyeFWD2rRcu316cU1AhsjK1CbkloTkMi/Th/F hIw3pMlTlqayLWQhJGL1zEreLP1Bwq5qsHeAfotbyJoiN1U4RNHgNK7BHcA0fr8F57d+ 1jLw== 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=+HsF8RgsrNQZ4KBY+cF3uOkWXNRFDW/Y+5wfIoYhuBc=; b=eYMd4KI5lLxPkoJmfiOYk6Qkjdt7Pk73d6+JaWRtfkaqQ3HjveEfggzPEJK1o9FIt7 e3QDP4wVuBg/P9XMjttAoTCEYtBjFnnLbg98pjdx+mcllJfmUZvlyHZmHHstKVrZnF7c X1GRsH6Nf6RBhkpbFOxL054QpzMBnofv+qE55LSnuHY+F8019VGBrsp25wm6gkRunxnp spvwCb4pO66XT2kw3vp1oQVGb3K41yuIyfC8OWzwu0Nx/U1FLh69eNuypoZHWRXDvsD4 bVClASMlZNzdKyJsicEFXRU33gbfMKuNjq8jAQVq5g5tkWHBeeebyLeXjongA6dqExUD WSIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=h+dp9cYr; 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 b73-20020a63344c000000b00542a44c077fsi14348150pga.902.2023.06.16.05.03.53; Fri, 16 Jun 2023 05:04:05 -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=h+dp9cYr; 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 S1343956AbjFPLkF (ORCPT + 99 others); Fri, 16 Jun 2023 07:40:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244952AbjFPLjp (ORCPT ); Fri, 16 Jun 2023 07:39:45 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DEA42D5D; Fri, 16 Jun 2023 04:39:44 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-30adc51b65cso441186f8f.0; Fri, 16 Jun 2023 04:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686915583; x=1689507583; 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=+HsF8RgsrNQZ4KBY+cF3uOkWXNRFDW/Y+5wfIoYhuBc=; b=h+dp9cYrtIAB6w3LprJ4on7eTSjRzY9dDwel2ciFQhsWL2traVr08k9PFJh8jgLuPG W+LNqS0ug7++7NPXqC0eVDAWo7ONCc6X4Cco3zsdrramRYlu44B4Bxb5X0FVv1/DnM2S Bgi241DovJs8xSSD4cP9iGkecKnJJ4zLH6jl3igUtMtdUdRoKPSnf/+zqyy8tzPu9oa8 xc+Ofw1V7hytnPPXKAzO32e7L0R0kNivqAlSzPV3xym6W+WvrYXjMQ6o+uYNAvK9e2ws 6cBhU8VOECEVTTO4FwdbaboCYD9JXQpG+WQT+rcV95B5R0GreOQXFAzCmpV0+0DqMiWG Ephg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686915583; x=1689507583; 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=+HsF8RgsrNQZ4KBY+cF3uOkWXNRFDW/Y+5wfIoYhuBc=; b=SuPy6gWfQYk3qiw2dGh4hNidFDcr67PxIV8ADGyMqSfjj6i70K9pu2qSpq4w8MrzaQ N3bVj5xr9hGOjIVpuPAfP24y+1eJHbLMq5yZSy4T1bRqoyzyIMkHaydKZIuT7NIn2YV8 /8pUGvfbDL5dHyHI68YJlWeNsYl44QNzotQyMwTG/DFgUjn7o2DUjdN5lRy1CxEP+3+W dClhpDNRqEYZ2Ne215+6t2nYzNdkVPwZNWaa4vu6ZZMBlidZuyIA2YSlwQa00f5Exzeg EnuhwT22dI04LQXBVjM1uelJEXfBaHW8nstbCSuElvepz4+91dsZvkYco0JX2kdy+wWW povw== X-Gm-Message-State: AC+VfDyPqzliLAmgmVHCPAlNRY/RSVe2yzh9g9E4tLElHM9ThFjoRct3 P27KztEeMBfBFyvteSNITU+4MRlVH50= X-Received: by 2002:adf:f601:0:b0:311:d9f:46b4 with SMTP id t1-20020adff601000000b003110d9f46b4mr1243833wrp.14.1686915582775; Fri, 16 Jun 2023 04:39:42 -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 t12-20020adfeb8c000000b0030ae6432504sm23470331wrn.38.2023.06.16.04.39.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Jun 2023 04:39:42 -0700 (PDT) Subject: Re: [PATCH 2/2] sfc: add CONFIG_INET dependency for TC offload To: Arnd Bergmann , Martin Habets , Jakub Kicinski Cc: Arnd Bergmann , "David S. Miller" , Eric Dumazet , Paolo Abeni , Alejandro Lucero , Jiri Pirko , Pieter Jansen van Vuuren , Simon Horman , netdev@vger.kernel.org, linux-net-drivers@amd.com, linux-kernel@vger.kernel.org References: <20230616090844.2677815-1-arnd@kernel.org> <20230616090844.2677815-2-arnd@kernel.org> From: Edward Cree Message-ID: <2fa7c4a5-79cb-b504-2381-08cb629d473d@gmail.com> Date: Fri, 16 Jun 2023 12:39:41 +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: <20230616090844.2677815-2-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 16/06/2023 10:08, 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") > Signed-off-by: Arnd Bergmann Reviewed-by: Edward Cree and I think you also need Fixes: 7e5e7d800011 ("sfc: neighbour lookup for TC encap action offload") since that added the references to ip_route_output_flow and arp_tbl (the commit in your Fixes: added the ip_send_check reference on top of that). You also might want to add the Closes: tag from [1], I don't know how that works but I assume it'll make someone's regression-bot happy. -ed [1] https://lore.kernel.org/oe-kbuild-all/202306151656.yttECVTP-lkp@intel.com/ > --- > 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 >