Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10029873ybi; Wed, 10 Jul 2019 22:09:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIPf1UV/GFTUeevfmUMk0WD/OpUJzUiTjgQSCjxBqUqcTAp0NpWq+Sm4tiXc/sLrodZAG7 X-Received: by 2002:a63:6cc9:: with SMTP id h192mr2252009pgc.339.1562821792894; Wed, 10 Jul 2019 22:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562821792; cv=none; d=google.com; s=arc-20160816; b=Iq6Lh5coD4HeixnasKcV7Ygc3dWJ3US2kZK36YRXt3tQ9cQty21xba/34wHACbwyiD 0P7JgL2dQi4/ZZsTs0EootRM5nyrwPZgYPUTHyo7rQsrp89eUhqUNzHL9M8YXcnlY3Sk OewRzzVdTtYCv1UOx70szcT6V2TuDC7TKW037JdnL140jma0L/2WlsSd8uRdey59lP7d omFM6QNdfvGUd6CKv6yFTW04XhVFT17oIhebHRtnRzlkwZxwoRHDGfTm8BXMScOPrnzx jzu+/DhoAOP6HZ/4heVXkOzOLB8ICbD62dSZuFayXMoitJnBSoIPwTB1ebwtqBomtkNo 6SWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6jRCkzFLYjyJ6X5g3ewnp6mfnb6gNJiKbFQr06/RqCA=; b=tH9iWfuG20f8F3xds7Cah/aE4fGNlbgNil/L01T7nMl5FLO7cxQivGA3rTEAD+Nctm xmOGAK4dUQvfJy7Ect4FqZehwCeBWTZLLs4aoyD1aZqQSvgVRz9XPOinhNw2gF91819C gB+pRxzzB1rztV8BYAY0fWXtlvgXDGYnddqFA2v4i5pEUuex98yI1+LRWPHRSNQg82He 6bHnw4Z3jy1iat820xUVvstdmjWRG7Rd/qeGDXxgkuXvXUzOg7P6Q3ly5kGVn2UU96dS n9/NGQTqVt5WOV+hAgKGiR74/hX10gAGwd8PxKNQXcYI6wJ9DLMuUXgxLr2e5C6QaGD3 m3cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dev-mellanox-co-il.20150623.gappssmtp.com header.s=20150623 header.b=RWonoSpy; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.co.il Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x16si3928405plr.214.2019.07.10.22.09.36; Wed, 10 Jul 2019 22:09:52 -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=@dev-mellanox-co-il.20150623.gappssmtp.com header.s=20150623 header.b=RWonoSpy; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.co.il Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727470AbfGKFHX (ORCPT + 99 others); Thu, 11 Jul 2019 01:07:23 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:34150 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726119AbfGKFHW (ORCPT ); Thu, 11 Jul 2019 01:07:22 -0400 Received: by mail-lf1-f68.google.com with SMTP id b29so3139199lfq.1 for ; Wed, 10 Jul 2019 22:07:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev-mellanox-co-il.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6jRCkzFLYjyJ6X5g3ewnp6mfnb6gNJiKbFQr06/RqCA=; b=RWonoSpyfsKOKFzSyn7qbthOrCYR6Lq+MKk+bt2ZdZEOydQDZU5kzpX2VaTo+FFsd3 9i2G5BURZS7Tgql+yjq5CMwdgkGKnak0B8WISX9kle588nx0WGGtmb+9zcOoAf/Ce2Q1 F5kceZJRBdX4e60TF0X5oSkWG+WCHNngVeaAeWOgPxOJM9GxlIF3wa40niTD0ootIkAJ xcvqWHLJv31/vKvAdUsHmnF0Ee11uGiE3Fu1isZv6+6KemXLcixXSpiAs4yFFqTwTw/L 1dSup7BHLFOQ2LjRJPYFOJBDIC6/gJcBruA+kMHUa5uvbkwCbdfOER1a7glaKVm5Q2AA CbKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6jRCkzFLYjyJ6X5g3ewnp6mfnb6gNJiKbFQr06/RqCA=; b=WkGw5ryYAtaOIUff2O32sv0sGC5Vy/oBhUbwJ4eGYfoznCOJ302VUD7sbfEIFfJe9R Hp/D8vqRrmDfb3eNBVFNbc+GvP+RZUBHyg9E9qx/koyD7BXa6PL8uUEu0mw9x/lK4G+t r0BZqRwsnt2zl9ytGUXIvcJEqkJZmedO+RSF/kRVg/zQxS99ps4r2Q3vMAste8/cHcX8 JobjmVpp7zc5e/AVLyFqOr9wi78HZs7Z4B05du82TXHxmJByhYCNgJtXxuDKnROW+EYE aGo6rovDyRlXI1+kMp8IKtpI5QsOrOMw0Rn1KFc6WgvXnaj2F7XexUQmXDXlS0pHwn45 OmxQ== X-Gm-Message-State: APjAAAXglbII53NTwLJAulDdUX4W49PPguBnAUdOZmqIq3SRiwWCVdbu 2mRz4aQCDS9qAdmI/5C7LC09J3bQgETsF8iDeqE= X-Received: by 2002:a19:914c:: with SMTP id y12mr700422lfj.108.1562821640777; Wed, 10 Jul 2019 22:07:20 -0700 (PDT) MIME-Version: 1.0 References: <20190710093852.34549-1-maowenan@huawei.com> In-Reply-To: <20190710093852.34549-1-maowenan@huawei.com> From: Saeed Mahameed Date: Wed, 10 Jul 2019 22:07:09 -0700 Message-ID: Subject: Re: [PATCH net-next] net: mlx5: Fix compiling error in tls.c To: Mao Wenan Cc: "David S. Miller" , Saeed Mahameed , Linux Netdev List , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 10, 2019 at 2:33 AM Mao Wenan wrote: > > There are some errors while compiling tls.c if > CONFIG_MLX5_FPGA_TLS is not obvious on. > > drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c: In function mlx5e_tls_set_ipv4_flow: > ./include/linux/mlx5/device.h:61:39: error: invalid application of sizeof to incomplete type struct mlx5_ifc_tls_flow_bits > #define __mlx5_st_sz_bits(typ) sizeof(struct mlx5_ifc_##typ##_bits) > ^ > ./include/linux/compiler.h:330:9: note: in definition of macro __compiletime_assert > if (!(condition)) \ > ^~~~~~~~~ > ... > > drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c: In function mlx5e_tls_build_netdev: > drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c:202:13: error: MLX5_ACCEL_TLS_TX undeclared (first use in this function); did you mean __MLX5_ACCEL_TLS_H__? > if (caps & MLX5_ACCEL_TLS_TX) { > ^~~~~~~~~~~~~~~~~ > __MLX5_ACCEL_TLS_H__ > drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c:207:13: error: MLX5_ACCEL_TLS_RX undeclared (first use in this function); did you mean MLX5_ACCEL_TLS_TX? > if (caps & MLX5_ACCEL_TLS_RX) { > ^~~~~~~~~~~~~~~~~ > MLX5_ACCEL_TLS_TX > drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c:212:15: error: MLX5_ACCEL_TLS_LRO undeclared (first use in this function); did you mean MLX5_ACCEL_TLS_RX? > if (!(caps & MLX5_ACCEL_TLS_LRO)) { > ^~~~~~~~~~~~~~~~~~ > MLX5_ACCEL_TLS_RX > make[5]: *** [drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.o] Error 1 > make[5]: *** Waiting for unfinished jobs.... > make[4]: *** [drivers/net/ethernet/mellanox/mlx5/core] Error 2 > make[3]: *** [drivers/net/ethernet/mellanox] Error 2 > make[3]: *** Waiting for unfinished jobs.... > make[2]: *** [drivers/net/ethernet] Error 2 > make[2]: *** Waiting for unfinished jobs.... > make[1]: *** [drivers/net] Error 2 > make[1]: *** Waiting for unfinished jobs.... > make: *** [drivers] Error 2 > make: *** Waiting for unfinished jobs.... > > this patch is to fix this error using 'depends on MLX5_FPGA_TLS' when MLX5_TLS is set. > Hi Mao, Thanks for the patch. sorry for the delayed response, I was out of office. Actually MLX5_TLS doesn't depend on MLX5_FPGA_TLS anymore. Tariq prepared a patch to fix this, we will submit it this week. > Fixes: e2869fb2068b ("net/mlx5: Kconfig, Better organize compilation flags") > > Signed-off-by: Mao Wenan > --- > drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig > index 37fef8c..1da2770 100644 > --- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig > +++ b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig > @@ -139,6 +139,7 @@ config MLX5_TLS > depends on MLX5_CORE_EN > depends on TLS_DEVICE > depends on TLS=y || MLX5_CORE=m > + depends on MLX5_FPGA_TLS > select MLX5_ACCEL > default n > help > -- > 2.7.4 >