Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7804119imu; Thu, 15 Nov 2018 01:38:37 -0800 (PST) X-Google-Smtp-Source: AJdET5fT3JNAIq5m20bSVosTaOTRTaSoP1STDByBXf1sDr6fgYWInpVBASbozF17UBWDu6fE3V/7 X-Received: by 2002:a62:4194:: with SMTP id g20-v6mr1622686pfd.44.1542274717030; Thu, 15 Nov 2018 01:38:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542274717; cv=none; d=google.com; s=arc-20160816; b=QB75abD9YkGUUBt1zK4wn/W5mKPTIR49ewEtVuJz3CF+Ajje2SmFfqx9d4O3JrxXY6 KaJmvT6cMHR8bB71E8hm1z8UXlaX5enarwL0K9ka10Ueq2lwY/X8/kP+QMxKUUeTklxs agkydfH7ikKPx/y85iwlUHW0py0gP8HmFrGkD75GBnNedKyjJCtXErQ7g+95YCEtiBQy Nkg/vCbAEVaZqJOLupP9l3cMQsF80pXny7jWQVi3d6c0KNISONVVMVC1Jm6coFTwjqn7 kILoAdumbSkjfgoPtdn4TkG6Qv+yhHyFr0esHBl6POMxR+pmZ+IAcwAokWtNuL3O+Qru Jpig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=EPYWvm+XIqNI9LpdA4wJvDu/kw1rsT/brqBY8FY1Sxw=; b=zMeeB1HHnkMLagoUyhi5tlF2K7u1PqZjV9TYcoXzFtWCAebHdBFoMfM9XMO7wn8Cwl mkYsi/hJVdZNqqpd91bV6mPWsAKhsjVg9+iZWQb/C8mx1uwkV9L1icuXeqkdBdFwzGxg RUtCy0w25tR+tOBrFiIcoSV759HwxOn5RPNaXmaoIfy+dw5L3yQs9XFQEBemg44UBIxN NYlF5uZu2xsyiWlNYQZ//j8H3Pns+IU7apsneCpsl00NikT6muqCGS15LirAgyClWLD+ JxDa6OqGHWKblcZ9wr1LWV+4MzHn0VjdgzpXk8Zno6QNd9XzRTwDr79Y+xltBmMmDVpJ EpOQ== 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 e39-v6si29191327plb.369.2018.11.15.01.38.22; Thu, 15 Nov 2018 01:38:36 -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; 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 S2388329AbeKOTnW convert rfc822-to-8bit (ORCPT + 99 others); Thu, 15 Nov 2018 14:43:22 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:32772 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728887AbeKOTnW (ORCPT ); Thu, 15 Nov 2018 14:43:22 -0500 Received: from lhreml701-cah.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id 018FEA423ECD6; Thu, 15 Nov 2018 09:36:16 +0000 (GMT) Received: from FRAEMA702-CHM.china.huawei.com (10.206.14.51) by lhreml701-cah.china.huawei.com (10.201.108.42) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 15 Nov 2018 09:36:17 +0000 Received: from FRAEML521-MBX.china.huawei.com ([169.254.1.76]) by FRAEMA702-CHM.china.huawei.com ([169.254.2.148]) with mapi id 14.03.0415.000; Thu, 15 Nov 2018 10:36:10 +0100 From: Salil Mehta To: Leon Romanovsky CC: "davem@davemloft.net" , "Zhuangyuzeng (Yisen)" , "lipeng (Y)" , "mehta.salil@opnsrc.net" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" , Linuxarm Subject: RE: [PATCH net-next 1/5] net: hns3: Enable HW GRO for Rev B(=0x21) HNS3 hardware Thread-Topic: [PATCH net-next 1/5] net: hns3: Enable HW GRO for Rev B(=0x21) HNS3 hardware Thread-Index: AQHUezmnt+3C9Q8AW0CD0gBKHyEzqqVNf78AgAMVqvA= Date: Thu, 15 Nov 2018 09:36:10 +0000 Message-ID: References: <20181113101307.6020-1-salil.mehta@huawei.com> <20181113101307.6020-2-salil.mehta@huawei.com> <20181113112446.GC3759@mtr-leonro.mtl.com> In-Reply-To: <20181113112446.GC3759@mtr-leonro.mtl.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.47.88.106] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Leon Romanovsky [mailto:leon@kernel.org] > Sent: Tuesday, November 13, 2018 11:25 AM > To: Salil Mehta > Cc: davem@davemloft.net; Zhuangyuzeng (Yisen) ; > lipeng (Y) ; mehta.salil@opnsrc.net; > netdev@vger.kernel.org; linux-kernel@vger.kernel.org; linux- > rdma@vger.kernel.org; Linuxarm > Subject: Re: [PATCH net-next 1/5] net: hns3: Enable HW GRO for Rev > B(=0x21) HNS3 hardware > > On Tue, Nov 13, 2018 at 10:13:03AM +0000, Salil Mehta wrote: > > From: Peng Li > > > > HNS3 hardware Revision B(=0x21) supports Hardware GRO feature. This > > patch enables this feature in the HNS3 PF/VF driver. > > > > Signed-off-by: Peng Li > > Signed-off-by: Salil Mehta > > > > + ret = hclge_config_gro(hdev, true); > > + if (ret) { > > + dev_err(&pdev->dev, > > + "Failed to enable GRO in hardware, ret =%d\n", ret); > > You already printed an error in the hclge_config_gro(). sure. thanks. > > > + goto err_mdiobus_unreg; > > + } > > + > > ret = hclge_init_vlan_config(hdev); > > if (ret) { > > dev_err(&pdev->dev, "VLAN init fail, ret =%d\n", ret); > > @@ -7221,6 +7250,13 @@ static int hclge_reset_ae_dev(struct hnae3_ae_dev *ae_dev) > > return ret; > > } > > > > + ret = hclge_config_gro(hdev, true); > > + if (ret) { > > + dev_err(&pdev->dev, > > + "Failed to enable GRO in hardware, ret =%d\n", ret); > > Ditto ok. > > static int hclgevf_rss_init_hw(struct hclgevf_dev *hdev) > > { > > struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; > > @@ -2122,6 +2145,13 @@ static int hclgevf_reset_hdev(struct > hclgevf_dev *hdev) > > return ret; > > } > > > > + ret = hclgevf_config_gro(hdev, true); > > + if (ret) { > > + dev_err(&pdev->dev, > > + "failed to enable VF GRO in hardware, ret =%d\n", > ret); > > + return ret; > > Ditto sure. > > > + } > > + > > ret = hclgevf_init_vlan_config(hdev); > > if (ret) { > > dev_err(&hdev->pdev->dev, > > @@ -2199,6 +2229,13 @@ static int hclgevf_init_hdev(struct hclgevf_dev > *hdev) > > goto err_config; > > } > > > > + ret = hclgevf_config_gro(hdev, true); > > + if (ret) { > > + dev_err(&pdev->dev, > > + "Failed to enable VF GRO in hardware, ret =%d\n", > ret); > > Ditto Fixed in V2. Thanks Leon. Best regards Salil.