Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1866589pxu; Fri, 27 Nov 2020 18:08:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOJQwtUrhCWE76g0Z6cmOO6s7LCN10zV34Mo9Yh45GOhSXHEtm5lUuJm7Up4793eMoBlEm X-Received: by 2002:a50:9d04:: with SMTP id v4mr11099175ede.363.1606529281945; Fri, 27 Nov 2020 18:08:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606529281; cv=none; d=google.com; s=arc-20160816; b=vYJRnAXm+2dOfCQH1bmtk7v2Xjvpq6R3gVzuG4DaY3hepQmCExHTjMJOlC8dsupFZZ XCsAmUfPVmE5ytA3byBC9OynWoBhv+2Px7NpCDq2aiGuyUfmZCVSGNTS4J9BNjCNsd3I JNGEONBzSMTexMo41F/UfVCyfCClPyT6EHwJyAOKmLcPqaYH89RCffd0VYefihkVM9/F +Gk055302y2uHIQhlCoa4nt5HU0KbTfZioKHMKZX7rx/YbNhHODI3XVyhzdpKud5n9N2 VLbCnSqg6w9EEF/C0sGsgwtBmX9S39l+cqmm437FREF+Xi+Wi0sAC8bc22aQtMSaoFsd QZZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=VRzU4p5ah/pCR1tZ96T5PsKsZ/J9+fNzuTq0vdaTol8=; b=dxLwcmYKf2AJxs/QzAHqXRSuBJAhmrkBNYB/Wjj7S8crg1oBHL3/QzRsSNyOo4+h6s j1/DKn8X/WUXJkndI1ImXqGrSfNxigwYlRfvIge7ta8rjwzfE/7GMmfdDqw60HE9gpbh GPcJstGwJRpUMojrRS4t8DCtNPMLavkrKMH9emIiLqawa7whJHJK3xA4ipbV+87MLV5Q KtdadybN9pHxlPWfg4ePJc7HwzZrytZaj1iIvnFlHeOx2KfZfNw+xISBJfGAJRvsvzEk Ars6+akb7YrrI/LRfiNn7v3U2BmB2tQx7iC3I77RhsqUi/w+6O/fevA0TDLoT7Evbbtf xMEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o21si3656019ejc.176.2020.11.27.18.07.39; Fri, 27 Nov 2020 18:08:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731810AbgK1CDb (ORCPT + 99 others); Fri, 27 Nov 2020 21:03:31 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:8054 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729604AbgK1CAQ (ORCPT ); Fri, 27 Nov 2020 21:00:16 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CjZRw5C3RzhfxG; Sat, 28 Nov 2020 09:59:24 +0800 (CST) Received: from [127.0.0.1] (10.74.149.191) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Sat, 28 Nov 2020 09:59:40 +0800 Subject: Re: [PATCH net-next 1/7] net: hns3: add support for RX completion checksum To: Jakub Kicinski CC: , , , , , References: <1606466842-57749-1-git-send-email-tanhuazhong@huawei.com> <1606466842-57749-2-git-send-email-tanhuazhong@huawei.com> <20201127125251.7d25bb1a@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com> From: tanhuazhong Message-ID: <69e4cf6d-2f87-02c2-af0b-b7c7ba45ebd3@huawei.com> Date: Sat, 28 Nov 2020 09:59:40 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20201127125251.7d25bb1a@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.149.191] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/28 4:52, Jakub Kicinski wrote: > On Fri, 27 Nov 2020 16:47:16 +0800 Huazhong Tan wrote: >> In some cases (for example ip fragment), hardware will >> calculate the checksum of whole packet in RX, and setup >> the HNS3_RXD_L2_CSUM_B flag in the descriptor, so add >> support to utilize this checksum. >> >> Signed-off-by: Huazhong Tan > > drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:2810:14: warning: incorrect type in assignment (different base types) > drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:2810:14: expected restricted __sum16 [usertype] csum > drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:2810:14: got unsigned int > drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:2812:14: warning: invalid assignment: |= > drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:2812:14: left side has type restricted __sum16 > drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:2812:14: right side has type unsigned int > Will fix it, thanks. > . >