From patchwork Tue Sep 19 16:17:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 113040 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp5106520qgf; Tue, 19 Sep 2017 09:19:47 -0700 (PDT) X-Google-Smtp-Source: AOwi7QB7rpF2rVDyp1A02rxQOMjer6bbtg36TW+bsywWgMDKWPye5JDbee01ZOHrt9AyHhi0r4jO X-Received: by 10.101.93.65 with SMTP id e1mr1856638pgt.150.1505837987352; Tue, 19 Sep 2017 09:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505837987; cv=none; d=google.com; s=arc-20160816; b=ksmGf2xyfsXTRotnxMci3vLJnCadN1a8QTPg6axmRT4xZv+mP605WW6pcJ9ZALWdHv B95dhfDutrgN3ZI3f4Chs4vH3f73+OUUK2mUdOo7lzJuSdg6P+Y3fX8k2uKK4oSCpH/O ChNfsE2iHG+KzaZzSFCxvFQyX/HLOYq4Fyy5t6e0q0jGk1z1Mss0frUX5IvFud7OLAO5 UJTWg32Pyhfn2tDQ37RzA/76pRoOlCG80XKFx682iMAq0Vc+yJZ0F1b3t1/NMBcCh/g5 TCD6wUx4D+f9e/Bq665uE1X/NTgk8bB7JuatAAip5R91fDoRqivbFLP0zSyOhQvjEX7O mB0Q== 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=SZ/QI8nZxpZeYU6YsmPo5O1H801I3QufMicJfqU12s4=; b=rIOu/QqDkbCOEiJLIoa500b4QqfbX8PIYFNiLMn4vAvFj8kJJmsEpu532OlUctaKyg xY35AsMHaKerxvK2cJ4eRJtoFQhpYCrvAJ+sYaaldYs9AmBWMFsK23+Nx0M7lVc+Aqp7 EZKU7KyIUy9MQJHRDyM8qvuPkGdFZ0Mj5aqdtwGk9xUBL68EMxd36t3fInwBuPPl4GXV y4M4dP+6n0TuqJL59hlI6+s6SKyu5WyYbg5MGY5UeSnuWg+L9XnLrnSqCCfdDlLZ3Pgd b40H8pzqFCiB1Tsf7iaD6O3LXgTS7XOGOiy2iKdv+Bm76z5NkYCXzPfOfCtFHlNJ/Ek+ a4cg== 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 g16si6767890pli.684.2017.09.19.09.19.47; Tue, 19 Sep 2017 09:19:47 -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 S1751876AbdISQSO (ORCPT + 26 others); Tue, 19 Sep 2017 12:18:14 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:6516 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751823AbdISQSK (ORCPT ); Tue, 19 Sep 2017 12:18:10 -0400 Received: from 172.30.72.58 (EHLO DGGEMS414-HUB.china.huawei.com) ([172.30.72.58]) by dggrg05-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DHQ42777; Wed, 20 Sep 2017 00:18:07 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.203.181.154) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.301.0; Wed, 20 Sep 2017 00:17:56 +0800 From: Salil Mehta To: CC: , , , , , , , Subject: [PATCH V2 net 2/7] net: hns3: Fixes the command used to unmap ring from vector Date: Tue, 19 Sep 2017 17:17:11 +0100 Message-ID: <20170919161716.92680-3-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20170919161716.92680-1-salil.mehta@huawei.com> References: <20170919161716.92680-1-salil.mehta@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.203.181.154] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.59C1433F.021C, 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: 9f5bea2a9474651a55669a91d34c8dd1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lipeng This patch fixes the IMP command being used to unmap the vector from the corresponding ring. Fixes: 6427264ef330 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") 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.7.4 diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index db4e07d..e324bc6 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; }