Received: by 10.213.65.68 with SMTP id h4csp887899imn; Fri, 23 Mar 2018 20:03:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELvv0be+THdSdXKXjwlIa0O7jwhp2QrHi7VR8luZ6UptYU9MrCqSWQsDWuex5KDl5spP15Ju X-Received: by 10.99.183.15 with SMTP id t15mr23145961pgf.416.1521860618367; Fri, 23 Mar 2018 20:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521860618; cv=none; d=google.com; s=arc-20160816; b=aY7iwjNMsuynaGHmFVrOInpqUInOzHZ65uREQGCxTGIkF8GMSgrtWxnrV04dz9LYvT BGwKqe6k85K7UBViZJAl+tpgVLSQUv1QYLpKZIT/UPAZyJoNK0Th4Xbpyy8XB3vhh+KY Al4xKHjr0YMfLhHg1q8lqvExQbiooQL1g8cnFwzUdeE57GgKNIp9D8zAnttBZK3aJGFP N/ptXt7JHynGyrpBdR0jrbQZvHecxiNCrruODDeXBM+3CNRMweZCkRWDgEeSXuOgRy4b PjD4DdplK8FPa3nS3R2pqTV1M8EwJW/8gYwpGYHGXd0GKqGnajJCuUV1TOMytSdi8LMc s57Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=q0VB2iJn2aailPJU6ranXXeKn4ZpeShRtjVyf/kSLb0=; b=NNLSJ4fudlzmYwZz9noV4ZdjI3RNdiVDrNPZXMaSvezrto+IzQUZQvl7AQ266PlEjU SyvmPeK2OkWIIpT3HNm6bxGo+Kk18EgRr0IIfkQl1sYbcYt8E0UWAQEbseQ8e/tKCY9s JHsnBHTJc82c2es/WcQcIR6uMtPV2ukM7oDzYdaIJOllNWxStGwugvFiYB90Y9z1pNHs CPqRyP4TBCtTzCkTlf5t5Kym4/zzAqJaIV8YgUYZwm8YGRPPHMMCvlHIBaDY/6S01Nkv KoBTPeE6lYAlTtHcR8rESsVt2QR/rUjhiNRmrmFgwATJ/1j20zzIpebg5AFW/KXRFwuI Jfvw== 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 66si7747649pfo.231.2018.03.23.20.03.03; Fri, 23 Mar 2018 20:03:38 -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 S1752219AbeCXDBR (ORCPT + 99 others); Fri, 23 Mar 2018 23:01:17 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:6698 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752066AbeCXDBN (ORCPT ); Fri, 23 Mar 2018 23:01:13 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 3A746A9924B0B; Sat, 24 Mar 2018 11:00:59 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.361.1; Sat, 24 Mar 2018 11:00:52 +0800 From: Peng Li To: CC: , , , , Subject: [PATCH net-next 3/5] net: hns3: fix for the wrong shift problem in hns3_set_txbd_baseinfo Date: Sat, 24 Mar 2018 11:32:45 +0800 Message-ID: <1521862367-111399-4-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521862367-111399-1-git-send-email-lipeng321@huawei.com> References: <1521862367-111399-1-git-send-email-lipeng321@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fuyun Liang Third parameter of hnae_set_field is shift, But a mask is given. This patch fixes it by replacing HNS3_TXD_BDTYPE_M with HNS3_TXD_BDTYPE_S. Signed-off-by: Fuyun Liang Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 40a3eb7..a31b4ad 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -764,7 +764,7 @@ static void hns3_set_txbd_baseinfo(u16 *bdtp_fe_sc_vld_ra_ri, int frag_end) { /* Config bd buffer end */ hnae_set_field(*bdtp_fe_sc_vld_ra_ri, HNS3_TXD_BDTYPE_M, - HNS3_TXD_BDTYPE_M, 0); + HNS3_TXD_BDTYPE_S, 0); hnae_set_bit(*bdtp_fe_sc_vld_ra_ri, HNS3_TXD_FE_B, !!frag_end); hnae_set_bit(*bdtp_fe_sc_vld_ra_ri, HNS3_TXD_VLD_B, 1); hnae_set_field(*bdtp_fe_sc_vld_ra_ri, HNS3_TXD_SC_M, HNS3_TXD_SC_S, 0); -- 2.9.3