From patchwork Tue Sep 19 01:06:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 112959 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4321375qgf; Mon, 18 Sep 2017 18:07:54 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBaBkgsz6C/nyEMYwi8U0XNU8lqNxRzL36i3c+dcxpI/TzsyPm98te6d3qER18xyYio5MdZ X-Received: by 10.84.132.34 with SMTP id 31mr388881ple.225.1505783273987; Mon, 18 Sep 2017 18:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505783273; cv=none; d=google.com; s=arc-20160816; b=VIjTZElLdQGH3WvuhnccQIdWJi0YAcrgp2vPTPgPOvbAq1UMMtfNf0PJcg3KhjPPc0 e6HQn4P2rt+5++hdJ4Usju8/Ycc1mrK4/XO6z9giFeKPAt55cOeoGJdodfzUriZmGiaG q0z/tlsJKTCILnXBwCJsyt5WZ19Y1Z7oXVvyB1NHclTtHz6/x038FkcE6jNAzB2U+X6J kLKZ0BiUSpN9Kk9oGm2XDQcMVSH37dIF1uPQ2ThR3tM7PBmHO+6WKwCxkavb7urGbvTC U+Jk/dU2fvCX3F/QZI4fTS+r284DqPXJxOHHi2UWPxg7nhuwmMN6zCIrhoS50WnLUfiC GdVA== 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=6SzVnQpyaH83H7IPuUA2YfeFd3VvKf5XA2dQK/KpwGQ=; b=vFS624+8n1xU2iWvfaYjHNLE1VwS9aFQdt8J4kpu7ks34KJg1uALlu3oPLttjKz+qd kH+a3/AdMdOtcA9h+JE0xlv7/pm74nKXFBigUA0t+vT2XKE55IYe1hPqR1qdPPrBfhOY 3vMORdnu1njKpZiTbhuW1yZeAYJ7u3suFGOJ83y4iIYQwxDrQPQwuNXWR+u/dJl0MYcg CM8/rbzdFOhD8pdcxm6Wiy/8RIST0FvOfm534Vaue/IL1B7iqiXUfpGYDH341S+GiTrX pgvJSwcaXXwJT3fAN/26o5ehjTYLnNfyRWR7lmgpkdZwvfvSKqk8gRUDJeSD4OsgU4eh JIMA== 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 k190si470031pfc.298.2017.09.18.18.07.53; Mon, 18 Sep 2017 18:07:53 -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 S1751687AbdISBHv (ORCPT + 26 others); Mon, 18 Sep 2017 21:07:51 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6488 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751609AbdISBHq (ORCPT ); Mon, 18 Sep 2017 21:07:46 -0400 Received: from 172.30.72.58 (EHLO DGGEMS411-HUB.china.huawei.com) ([172.30.72.58]) by dggrg04-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DHM20743; Tue, 19 Sep 2017 09:07:23 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.47.92.71) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.301.0; Tue, 19 Sep 2017 09:07:14 +0800 From: Salil Mehta To: CC: , , , , , , , Subject: [PATCH net 2/7] net: hns3: fix the command used to unmap ring from vector Date: Tue, 19 Sep 2017 02:06:23 +0100 Message-ID: <20170919010628.175732-3-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20170919010628.175732-1-salil.mehta@huawei.com> References: <20170919010628.175732-1-salil.mehta@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.47.92.71] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020204.59C06DDD.01BC, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 3d5bbc83020cb00ec7d2b30e8c99cd20 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lipeng When unmap ring from vector, it use wrong command, this will cause error if the unmap action need multi command description. This patch fix the error. Signed-off-by: Lipeng Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index db4e07dac29a..e324bc6e9f4f 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -2779,7 +2779,7 @@ static int hclge_unmap_ring_from_vector( } i = 0; hclge_cmd_setup_basic_desc(&desc, - HCLGE_OPC_ADD_RING_TO_VECTOR, + HCLGE_OPC_DEL_RING_TO_VECTOR, false); req->int_vector_id = vector_id; }