Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp227369pxx; Wed, 28 Oct 2020 03:25:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8+m8cLQa1+F273A1nqukJtCa9y2kWVZtzzUfHGUbhO5lNkuL4Au66yxlLEaFFmJIPMizI X-Received: by 2002:a17:906:3ada:: with SMTP id z26mr6643444ejd.151.1603880731931; Wed, 28 Oct 2020 03:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603880731; cv=none; d=google.com; s=arc-20160816; b=CIjpgvVOziyeTGLBhanN6RTj8Y34UPkGdVVv/fsf2b6XOHD8xu6J5eLBHvRclzdszz Wh7pFQNXHUDkZ3PkCADJXbEAQXxnwP+9N9PasnbSPhZGV6KmuFNCEFxCy3J/2J2Xha4L Z8rVIlMTzHftc1O9O62xH1YKacf08S4VK+6EGRlR6N9szSaQ8ogfpXe032Ofu/6LLapE MGrgwtVbe54aXobwxQP19x/f9xc3SBZ6Fi+ssJQ/YkdWj0C1CA6dAVnNKB4A+g5jB740 GPu/O+OvCUsaao1lIIFrFdPc3Wg0Kz/ZO464XF4cR+Ln0ev903OQHkfWS7krKyq5FDda SpPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XH+ojFiJRbbQJVr0TkRI8oi23C/YbHrTCP5PMwG3n5g=; b=0/R1/LtuNlPZGmlmvbPXlQXo1+SrSAyiZ8r+hg9G5ARaptE8S3BULJ/OBGUKg1wbxt HvyjpUoUOthkgoItItmkwsNGHk51Q/rUJrPMRlReAFfas2o/YZrlKnPYhyjuzxEdQsTt jyWtArftJy4Qf4F116PapOkXgZIXcF1yZuPRU5XKYvtvqcBdfVhsJcsuYZYxMh+uCjix W35TALsv5XxpUnylCYhQjcLgdBSER2LWQ6si6kS290nXEDR6+/Be8+163Z+kXLvymH/7 SYAg0nnIqDIhm7WN7DHJyjSfQRsyMp5guCXjYrfkXSweWc7fcw2MSucxTXRB8+JIffTv ZRcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=USj3zPiy; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x26si2664388eds.99.2020.10.28.03.25.10; Wed, 28 Oct 2020 03:25:31 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=USj3zPiy; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761351AbgJ0OjB (ORCPT + 99 others); Tue, 27 Oct 2020 10:39:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:38310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761336AbgJ0Oi7 (ORCPT ); Tue, 27 Oct 2020 10:38:59 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0EC6322258; Tue, 27 Oct 2020 14:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809538; bh=pFoRo+XhZ8c4NATs0JdXzsDmbHlsoyZczm1nf9VD/oE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=USj3zPiyJgyjKUFm5NQ7xjwezxERRKmPHEfYo9Nct5n24spHd2bcYOmRZDreJmhoV N4Hu0YAjYEf2op+TDyOsTUJdwXeSfS3r8Uu/w8Ba4Tjv35kQ4nv3VRGc9KGnhjadhh Ngw+kXu4yB5zH/X5xl43/FJW+0NPb7f7gNzm6wC8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lijun Ou , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.4 232/408] RDMA/hns: Set the unsupported wr opcode Date: Tue, 27 Oct 2020 14:52:50 +0100 Message-Id: <20201027135505.822298905@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lijun Ou [ Upstream commit 22d3e1ed2cc837af87f76c3c8a4ccf4455e225c5 ] hip06 does not support IB_WR_LOCAL_INV, so the ps_opcode should be set to an invalid value instead of being left uninitialized. Fixes: 9a4435375cd1 ("IB/hns: Add driver files for hns RoCE driver") Fixes: a2f3d4479fe9 ("RDMA/hns: Avoid unncessary initialization") Link: https://lore.kernel.org/r/1600350615-115217-1-git-send-email-oulijun@huawei.com Signed-off-by: Lijun Ou Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c index a79fa67df8715..a405c64d2a82b 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c @@ -271,7 +271,6 @@ static int hns_roce_v1_post_send(struct ib_qp *ibqp, ps_opcode = HNS_ROCE_WQE_OPCODE_SEND; break; case IB_WR_LOCAL_INV: - break; case IB_WR_ATOMIC_CMP_AND_SWP: case IB_WR_ATOMIC_FETCH_AND_ADD: case IB_WR_LSO: -- 2.25.1