Received: by 2002:a25:730a:0:0:0:0:0 with SMTP id o10csp958354ybc; Tue, 24 Sep 2019 17:05:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXRo1x/90UcQ/0BxMkrJmBFRRPgDq5dgxT6uxzR0unl1UNmitxXll8URbkmHMdDUjFMNJu X-Received: by 2002:adf:fb11:: with SMTP id c17mr5855463wrr.0.1569369919571; Tue, 24 Sep 2019 17:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569369919; cv=none; d=google.com; s=arc-20160816; b=mGF66VYHwErKs+4VIKJdnYZy1GcFBNDSMRLCqu7eVrjxmsi99N4LwR8rgvn6cTBAVo abqYgoCbGjZrewNh/oV2XBORBh4xKAPdLEmG8Ld5+7crX469oNMGMcARtODwKAYku/FD d4PW30d0duNBc7AzbTWAt2SvTg4z0y9XsQc/Outn3TdQGbQcRbBOGcjSLCNUg0VkKApw Wj/6CbBuG5Hm2kW19egpQC2ot1mv3/dWwwr6Sm9DVj4qtI8mPEuxLp6hcjFS9tFt6Dgx nSd59Ld7kiGZ6FIkoqLmphZo326zcg1mf6BlvBDZuGgku9y9EIsrD2t+7mF7RicczaFh 1i8A== 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=N02DuWV6Ls3abVLlI8h6X8K21ukMEFlJkO/0aLsDK0s=; b=v+R5BD64wJukv5HxAdO1E/EHJoLNuI7+SwEjWDMB8erTNGaNXtm5Xob6+NMbUHNVzq zceFOuScNhggv1i2b36DkEXzfeliXWRGnfgNx50DRfXNwxpNssGAjbvKlyE8I+2LthEP AzZXacSSqJbl/Nt474zu7QPZKFk0FFv1oXYeGTvBcOfYV/7UL3HGhnkFRzBXGQMdQoIO glwz6Axfir5N0ppd4suLkDsszXAtUe6xf989W/tYPBZ2Lk7e5RNsEm85FzMVtP4hUyLl ksnySQITDD/P2kYFfoWKV06a/g5lnA6w5nTir11R2mn46KXGy3DnR31x0Vxse0iQaMiX Y+tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=LbRVKPEY; 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 y50si2527600edd.237.2019.09.24.17.04.55; Tue, 24 Sep 2019 17:05:19 -0700 (PDT) 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=LbRVKPEY; 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 S2392884AbfIVVIF (ORCPT + 99 others); Sun, 22 Sep 2019 17:08:05 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35067 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388917AbfIVVIF (ORCPT ); Sun, 22 Sep 2019 17:08:05 -0400 Received: by mail-pg1-f194.google.com with SMTP id a24so6774341pgj.2 for ; Sun, 22 Sep 2019 14:08:04 -0700 (PDT) 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=N02DuWV6Ls3abVLlI8h6X8K21ukMEFlJkO/0aLsDK0s=; b=LbRVKPEYYOO6psE0Yw77Hs/lDLbvbwH8YrMPHyagr9mucUEr8xFECka9eq2nyTNqDj a01yizLfeFS4nTPCHzjwVPFNOChkR8WPwpuz83J2MC5xiB5b2DOSHWMlIuH7lUOjQVh6 z1W45WY0YU4bYw3QLcti59jEjmLmgof1zWm8FEgvA12KWoVeJO+xw4jKEhK2U67gf98x aREdIF8OzVfEb4hQRkRH1LAwKHRwskSZcaieRFNpofR3iAG9G6hCD4z4jyuc7OnS08es XsE4V/hOPFetMFiq7GLLhuaojYQPvel27pFMUIV8fZsgqpU/95X6LqqeO8tgkRGNoIMf CR0g== 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=N02DuWV6Ls3abVLlI8h6X8K21ukMEFlJkO/0aLsDK0s=; b=rCgAzHX1Jx1OPx2O9DRPIT7vOT46XPTLpO7zKX6zv7SnXnSr0YB+qS0gWtDdeTmxPZ ay84FpUSN7cpiAchDWfr3w6tyLaPTwiUDN1smoFZ/ScFmDnPjbjIitUHHdsWYi9bw3yl 8XUb4mVRmCZkP2OscSdeczlgJuS7+mSyzrU4duwnL0HqXQarIKujtcQ+QcgScgxvsIQQ B6Q/RWpWZivf8Y49d8tsnGvDnnNhmijRgx1A+fWp5MucLvRtt6Pw40K2V4syYDp2hERP ezKsWlUPlw3t4/VChdQJw7YC7RWjBLZEwSwfuuHAXS7WK1mZdz00DxPOx1jRDrcfCsuB h3YA== X-Gm-Message-State: APjAAAWaYIGZWwwHuIC6nweRGipjHiOuSxkXyoUpJ1BfhoR3juG7LX4p vsB0qAs9IzNs88+bfCqlCb40Pg== X-Received: by 2002:a62:3687:: with SMTP id d129mr30557925pfa.199.1569186484473; Sun, 22 Sep 2019 14:08:04 -0700 (PDT) Received: from cakuba.netronome.com (c-73-202-202-92.hsd1.ca.comcast.net. [73.202.202.92]) by smtp.gmail.com with ESMTPSA id k95sm9971958pje.10.2019.09.22.14.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2019 14:08:04 -0700 (PDT) Date: Sun, 22 Sep 2019 14:08:00 -0700 From: Jakub Kicinski To: Mao Wenan Cc: , , , , , , Subject: Re: [PATCH v2 net] net: ena: Select DIMLIB for ENA_ETHERNET Message-ID: <20190922140800.6b1ed695@cakuba.netronome.com> In-Reply-To: <20190922053808.117965-1-maowenan@huawei.com> References: <20190921200741.1c3289e8@cakuba.netronome.com> <20190922053808.117965-1-maowenan@huawei.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 Sun, 22 Sep 2019 13:38:08 +0800, Mao Wenan wrote: > If CONFIG_ENA_ETHERNET=y and CONFIG_DIMLIB=n, > below erros can be found: > drivers/net/ethernet/amazon/ena/ena_netdev.o: In function `ena_dim_work': > ena_netdev.c:(.text+0x21cc): undefined reference to `net_dim_get_rx_moderation' > ena_netdev.c:(.text+0x21cc): relocation truncated to > fit: R_AARCH64_CALL26 against undefined symbol `net_dim_get_rx_moderation' > drivers/net/ethernet/amazon/ena/ena_netdev.o: In function `ena_io_poll': > ena_netdev.c:(.text+0x7bd4): undefined reference to `net_dim' > ena_netdev.c:(.text+0x7bd4): relocation truncated to fit: > R_AARCH64_CALL26 against undefined symbol `net_dim' > > After commit 282faf61a053 ("net: ena: switch to dim algorithm for rx adaptive > interrupt moderation"), it introduces dim algorithm, which configured by CONFIG_DIMLIB. > So, this patch is to select DIMLIB for ENA_ETHERNET. > > Fixes: 282faf61a053 ("net: ena: switch to dim algorithm for rx adaptive interrupt moderation") > Signed-off-by: Mao Wenan Applied, thank you!