Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp2915869ybj; Mon, 23 Sep 2019 11:29:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKkV5Z7JmTj3QVp/fdW/09ljeEd41MJH0KWeOFPfieQK7carIuq8vf7XEd5UVExA/iSl6t X-Received: by 2002:a50:baab:: with SMTP id x40mr1633157ede.60.1569263385707; Mon, 23 Sep 2019 11:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569263385; cv=none; d=google.com; s=arc-20160816; b=lUOdV/tlkoEXGgHEp9BJYzzrAdXR6PbJu1Ow537L5a89vAPR5MNob9n+jbkn2kSoOO YXQIv6Up0i+b3R1y5vMXVVzZLPKUsi0AyfkMjae92Fv5nNhemb0P0DlrItWUQR/fG3PD OegXIaJdetghWZ+afsel+qXubL5A7VY8uuOMvIOVwGCoB9t/ok0MYiBd0bC//Nd9AIF/ r1Ph23Pv7IRWwWm48CY7n0Bs3w+QPvo1EKvhBw3ksZDiJaw1o7uqeLqkISfR5EYikwFZ anqh+iGj+loj1buzy9+z6A5aMKfxuspU+Yu9DokmGlTOm/yt9y2U8lw/UCEuWtOoxohY WAfQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Ca0BexsVcZcmm9gvFqk8fJSkqGSbeqkyRNPHBixBZZI=; b=MfNnOD6aMi8KmVO2t72/LAGfzcHKj5jAsqzps5Wkyx7wTNl1c9mpV2lEqFjolZWJIP MPOzAm/RNZFQLiV8Iwnwah9sBuDNW0M7cZPlH+wngA8kbE12VITDMzHMlpRotNk//URD 62rB+Que+fxVO4yCA4vxPYCjobDDxgQqBC8PSv5rEUmyPZPUibKlzq5xJvzXFjmr+k2N bTzOChp4ymcJnGUUI5ph1uSyV4Q/mDxcpL5nj3KD1aAzwTyFHLa+V56CaUvelkpAXUtu Lpuwh4NhILh+YZLuh7Q4EQoQINeGc6L3BMuWxua5PiYukDNX10Mx0xSqhSXW4XDSTrfb zKkA== ARC-Authentication-Results: i=1; mx.google.com; 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 a36si7611297edf.123.2019.09.23.11.29.22; Mon, 23 Sep 2019 11:29:45 -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; 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 S1727539AbfIVFWO (ORCPT + 99 others); Sun, 22 Sep 2019 01:22:14 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:49470 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727501AbfIVFWO (ORCPT ); Sun, 22 Sep 2019 01:22:14 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 07A87247729FEC1F7A8F; Sun, 22 Sep 2019 13:22:08 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Sun, 22 Sep 2019 13:21:59 +0800 From: Mao Wenan To: , , , CC: , , , Mao Wenan Subject: [PATCH v2 net] net: ena: Select DIMLIB for ENA_ETHERNET Date: Sun, 22 Sep 2019 13:38:08 +0800 Message-ID: <20190922053808.117965-1-maowenan@huawei.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190921200741.1c3289e8@cakuba.netronome.com> References: <20190921200741.1c3289e8@cakuba.netronome.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- v2: change subject of patch, use the "select" keyword instead of "depends". drivers/net/ethernet/amazon/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/amazon/Kconfig b/drivers/net/ethernet/amazon/Kconfig index 69ca99d8ac26..cca72a75f551 100644 --- a/drivers/net/ethernet/amazon/Kconfig +++ b/drivers/net/ethernet/amazon/Kconfig @@ -19,6 +19,7 @@ if NET_VENDOR_AMAZON config ENA_ETHERNET tristate "Elastic Network Adapter (ENA) support" depends on PCI_MSI && !CPU_BIG_ENDIAN + select DIMLIB ---help--- This driver supports Elastic Network Adapter (ENA)" -- 2.20.1