Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp814178ybl; Wed, 8 Jan 2020 06:21:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzcwfwJQnkfuL42TNfAPPATCdgnbi/ek+RMDbjdEP8xpHCU5U1cBuDw2o2pRXD06edk2SmU X-Received: by 2002:aca:be57:: with SMTP id o84mr3314610oif.138.1578493275644; Wed, 08 Jan 2020 06:21:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578493275; cv=none; d=google.com; s=arc-20160816; b=CW7C4NaSQTzh4zPQRE5lKYE1MWlyf911HIVb3mqMjhcrkNQPyzRif3HI8ER7zlutzy h0gFJtoX1eJQ4kyke9Xv58HTj/eOaEiJK+Np05I6N/cFL55QAa4Tlviqf6Lud8p2qri4 R1vrx7lSe0kX+2i0qlhVeZTraJKkdsnIkaNLRYWah0jADcE7u1eB0UszQSpXQyUIOEyw X6tOa99/HP+9typQpwTVr2I0ijFmyMXR3365npA6TiksLpBwth3HI/0oxRkVQqeqFsXH W4pX1xIK4k3VNeke0d4DTChiquoJrok2VeCZwHoJGvIvcRuiVvj/DeKo96XBr2OHse1p Bg8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=T1UOaKySeFJ0zKePKXqAI7V9b9QgvGnZL/Q3FtxcxRw=; b=r7O7EWy8EcqwT2qiVZWBsglZrf5j+yBQ2FYs4qcs2NigW658jozkyHNyv0ZPgl9Txn EaLu+UI/7ORYSjHhmNsdxHpuGMooG6c7l6/R2oI4Nkbas8KEza0OV7BKhlFZ3DeVz/vy wSrm/Pb2IQhLAmyGSSisGa6wFIX4S1SDRBaFsHVeVjfK8katqhTDH6HhXllAhBEbgD3a 50k396fHYj4UqT7GJiDuUjB82O7Wdwo9ckLVj5T1DOKi8MplznzWinTDMECYAfFRsLIj ro/wWtBrp1atPSlAoRDt37jLiOHvw/XF4jEibkNT6jttjk8S+XFG96sMRNRAqTBp9+TK 7FPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=hooMOcE6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p186si1890623oih.172.2020.01.08.06.21.03; Wed, 08 Jan 2020 06:21:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=hooMOcE6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727283AbgAHNJS (ORCPT + 99 others); Wed, 8 Jan 2020 08:09:18 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:39885 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbgAHNJS (ORCPT ); Wed, 8 Jan 2020 08:09:18 -0500 Received: by mail-qk1-f196.google.com with SMTP id c16so2517508qko.6 for ; Wed, 08 Jan 2020 05:09:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=T1UOaKySeFJ0zKePKXqAI7V9b9QgvGnZL/Q3FtxcxRw=; b=hooMOcE6opMbVdDJ7nmkFDN8Zp6CmRzc5r5pztAQmfT0T6Q1tdPnQ46RLDwiG02Day Glb6+fWlPHqMGE9GXQWAQomFlk35zPedNaVupcNKQiNjMJXS4GUA/zJybWpFVHH9EkVZ ixPvXakHhWguyTMogEGL06x+MLJtSPzn0mPEzm4240ZDFOvhNWXEK/XwxfZqgJz4G6gn MlvgbeGwRwSubDfzRhlgQrFwi64Bhyo45xPY6tHjw9N8RDxY57R4G3aeOW/v7JfFqicR pAbN58Z5EtHvqqLRPKnlkje8EyXgzlNToN4DZjPiMXLCH/G5TR3xSJDJv4JZMqrEACj3 V3rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=T1UOaKySeFJ0zKePKXqAI7V9b9QgvGnZL/Q3FtxcxRw=; b=fI+VrrqGTVDzxzL/v0x6pC4VQU8ZqPydUgL7E7eil/a64F8wUDVNoWybvmlZKC/KY7 ETthRTPNUNWLFgVRX5siF8YXLCvpGMXfyksH524UHBOgxFNNS7iodG3YRotmLv2VHq6u kjVTgvuQCEJL0GAKqwNDzIFXSXP8Kn5skeQ/KFdzhecu2x28PF1q/BmCmSiSI9/D0Uzz irb30urty684a4xkC+CGL/slPZ2z0FjPoHCYWHDv2sc0jxdchMX+UTO3f7XKXQ09kVyo d3MDj34qM2H6hBizYC3L+AG69YOviDbjxjW+ifHq0yY3QlXXrAOJx+bQjLMFS56mc4l5 aEqg== X-Gm-Message-State: APjAAAWQbEIgUULvQfG6mmJ0N+lnlJo1J309ZjJElT+RtMZN5+/PPBQB Iq/oxk3UGLU4QLGKorCVgKMVRw== X-Received: by 2002:a37:66c2:: with SMTP id a185mr4060253qkc.211.1578488957243; Wed, 08 Jan 2020 05:09:17 -0800 (PST) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id s11sm1325512qkg.99.2020.01.08.05.09.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 05:09:17 -0800 (PST) Date: Wed, 8 Jan 2020 05:09:12 -0800 From: Jakub Kicinski To: Arnd Bergmann Cc: "David S. Miller" , Simon Horman , John Hurley , Jiri Pirko , Florian Fainelli , oss-drivers@netronome.com, Networking , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] netronome: fix ipv6 link error Message-ID: <20200108050912.6a07008b@cakuba.netronome.com> In-Reply-To: References: <20200107200659.3538375-1-arnd@arndb.de> <20200107124417.5239a6cf@cakuba.netronome.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Jan 2020 23:01:50 +0100, Arnd Bergmann wrote: > On Tue, Jan 7, 2020 at 9:44 PM Jakub Kicinski wrote: > > On Tue, 7 Jan 2020 21:06:40 +0100, Arnd Bergmann wrote: > > > When the driver is built-in but ipv6 is a module, the flower > > > support produces a link error: > > > > > > drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.o: In function `nfp_tunnel_keep_alive_v6': > > > tunnel_conf.c:(.text+0x2aa8): undefined reference to `nd_tbl' > > > > Damn, I guess the v2 of that patch set did not solve _all_ v6 linking > > issues :/ Thanks for the patch. > > > > > Add a Kconfig dependency to avoid that configuration. > > > > > > Fixes: 9ea9bfa12240 ("nfp: flower: support ipv6 tunnel keep-alive messages from fw") > > > Signed-off-by: Arnd Bergmann > > > --- > > > drivers/net/ethernet/netronome/Kconfig | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/net/ethernet/netronome/Kconfig b/drivers/net/ethernet/netronome/Kconfig > > > index bac5be4d4f43..dcb02ce28460 100644 > > > --- a/drivers/net/ethernet/netronome/Kconfig > > > +++ b/drivers/net/ethernet/netronome/Kconfig > > > @@ -31,6 +31,7 @@ config NFP_APP_FLOWER > > > bool "NFP4000/NFP6000 TC Flower offload support" > > > depends on NFP > > > depends on NET_SWITCHDEV > > > + depends on IPV6 != m || NFP =m > > > > Could we perhaps do the more standard: > > > > depends on IPV6 || IPV6=n > > That would have to be on CONFIG_NFP instead of CONFIG_NFP_APP_FLOWER > then, making the entire driver a module if IPV6=m but always allowing > CONFIG_NFP_APP_FLOWER. Ah, indeed. > > The whitespace around = and != seems a little random as is.. > > Yep, my mistake. I can send a fixed version, please let me know which > version you want, or fix it up yourself if you find that easier. Adding the dependency just to NFP_APP_FLOWER seems clean, please just fix the whitespace and feel free to add my Acked-by to v2.