Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3240038rwl; Tue, 27 Dec 2022 06:24:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXvotLlub7FOPnw2asUGf5CKIdKdKr7QvY+R1SF89C29LzOJG3/1VkAZZbWIS4IB/G2PH692 X-Received: by 2002:a05:6402:2b89:b0:461:ca30:653 with SMTP id fj9-20020a0564022b8900b00461ca300653mr25329355edb.31.1672151099168; Tue, 27 Dec 2022 06:24:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672151099; cv=none; d=google.com; s=arc-20160816; b=QQcHNLSOMWgceuPh6IESBWswS5W2OKvSN2SZhQIkK7meaA8Zi44q2v8rBtrtYSxoPW LRs9q46Hfhb2ZXo4ACxokjURtODHJ784aWHFIiTfQmeJ8yV1cyFGBfSZUcdUVvCcEktm BnVZx17AtsJQIewRdxvUIc94n+gvdq0Yjcvl5accQ0yGBgjHb96KCidV4191Ju+vacea J6dSuw8xjyPkGiUFBmCsztt6MAToEBMUIP9lsKq9LQTOwUHIGdTc9fAgtq3wZvLVR2iH KhWVi8e+kjwI2PTGqM6Di+78Bh4fO9DufOsqoAJPcPrjGCRmmY//HlARLa0CA9SgOAYe FBuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PkAV2iv1XVV57P/1Vz2NLkDklEegOgnCvZEbRFTGtBw=; b=yqWtiV6MahWglEvDun/IGeKoJAtG+p80Le+5pPAOkf4l7FSIqLDRbMsb1Aom516wZk /iRIDZJcAOim/Z5dz69svHlj8kOi3DvUDRHiPNIMwUiwCXSAZrSjuCGbvTMAzuM4gbXt JQos/j2fHckwYglysZmLMRexoB/Ip0GVIuLpoWuXh7xG/Pe5RfzrARLpEotbzL7HBPEr +p2IpqY0oz24690g9I85RVo9lvNE0jx+U8pwIfjQpkIj7gX98IuHrELbeoGrJvoz/QXw LUd7D9izA70Y1y+lmtGHJZLsjJ8nD2mq21YsmkbtzneL1UOHzKtM+KnqwAOiKH85TnKQ mVDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fnn4FmXd; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w14-20020a056402268e00b0046bf4a2db94si11871140edd.491.2022.12.27.06.24.43; Tue, 27 Dec 2022 06:24:59 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=fnn4FmXd; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231611AbiL0NpT (ORCPT + 66 others); Tue, 27 Dec 2022 08:45:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231417AbiL0NpQ (ORCPT ); Tue, 27 Dec 2022 08:45:16 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AE22DFD; Tue, 27 Dec 2022 05:45:16 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B6562B8103C; Tue, 27 Dec 2022 13:45:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDD26C433F0; Tue, 27 Dec 2022 13:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672148713; bh=KiCA2W+XpN64cUp/hRLYPjjOV94LCqlswnrr+5HjFa0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fnn4FmXduKhYf8KFQWIJra/llhpOgiLJJr5CnY9WBHT0D0Ikm5Z37P2iIAWJwcy8Y kuT3aJPzHvDWJcqZAO8fjlyXK/rckBzRTmogJV9MePBLMD+Zvf/LDoBmTaxmIcmR16 sztfDc/jGeh7dmCAUukUA5DH9xrmT/U5cRLb8zzs5xv6SeC3z8vLYdTULxLjVMgIk9 voYVXR3WiYZF/1WdZNzTvJ44asVfyHeZ1dTpUL8a6q1gw/Lo8rPZyZCjxfLxuJ5mw8 h2/PasBLzhcUPQzePXBQdllJx4ToR+7yY8Rg7Yf7SScFy25D0AO3Zz1bP0aFhEZEkq 6jsP9TW7SG5xA== Date: Tue, 27 Dec 2022 15:45:09 +0200 From: Leon Romanovsky To: Paul Gazzillo Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Randy Dunlap , Zheng Bin , Yang Yingliang , Suman Ghosh , Subbaraya Sundeep , Sunil Goutham , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] octeontx2_pf: Select NET_DEVLINK when enabling OCTEONTX2_PF Message-ID: References: <20221219171149.833822-1-paul@pgazz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221219171149.833822-1-paul@pgazz.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Mon, Dec 19, 2022 at 12:11:28PM -0500, Paul Gazzillo wrote: > When using COMPILE_TEST, the driver controlled by OCTEONTX2_PF does > not select NET_DEVLINK while the related OCTEONTX2_AF driver does. > This means that when OCTEONTX2_PF is enabled from a default > configuration, linker errors will occur due to undefined references to > code controlled by NET_DEVLINK. > > 1. make.cross ARCH=x86_64 defconfig > 2. make.cross ARCH=x86_64 menuconfig > 3. Enable COMPILE_TEST > General setup ---> > Compile also drivers which will not load > 4. Enable OCTEONTX2_PF > Device Drivers ---> > Network device support ---> > Ethernet driver support ---> > Marvell OcteonTX2 NIC Physical Function driver > 5. Exit and save configuration. NET_DEVLINK will still be disabled. > 6. make.cross ARCH=x86_64 several linker errors, for example, > ld: drivers/net/ethernet/marvell/octeontx2/nic/otx2_devlink.o: > in function `otx2_register_dl': > otx2_devlink.c:(.text+0x142): undefined reference to `devlink_alloc_ns' > > This fix adds "select NET_DEVLINK" link to OCTEONTX2_PF's Kconfig > specification to match OCTEONTX2_AF. > > Fixes: 2da489432747 ("octeontx2-pf: devlink params support to set mcam entry count") > Signed-off-by: Paul Gazzillo > --- > v1 -> v2: Added the fixes tag > > drivers/net/ethernet/marvell/octeontx2/Kconfig | 1 + > 1 file changed, 1 insertion(+) > Thanks, Reviewed-by: Leon Romanovsky