All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-next] RDMA/hns: Set the unsupported wr opcode
@ 2020-09-17 13:50 Lijun Ou
  2020-09-18 15:58 ` Jason Gunthorpe
  0 siblings, 1 reply; 2+ messages in thread
From: Lijun Ou @ 2020-09-17 13:50 UTC (permalink / raw)
  To: dledford, jgg; +Cc: leon, linux-rdma

Because hip06 is not supported for local invalidate operation,
here should set the ps_opcode of the hardware to invalid
value.

Fixes: 9a4435375cd1 ("IB/hns: Add driver files for hns RoCE driver")
Fixes: a2f3d4479fe9 ("RDMA/hns: Avoid unncessary initialization")

Signed-off-by: Lijun Ou <oulijun@huawei.com>
---
 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 96c14e5..1a545e2 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:
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH for-next] RDMA/hns: Set the unsupported wr opcode
  2020-09-17 13:50 [PATCH for-next] RDMA/hns: Set the unsupported wr opcode Lijun Ou
@ 2020-09-18 15:58 ` Jason Gunthorpe
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2020-09-18 15:58 UTC (permalink / raw)
  To: Lijun Ou; +Cc: dledford, leon, linux-rdma

On Thu, Sep 17, 2020 at 09:50:15PM +0800, Lijun Ou wrote:
> Because hip06 is not supported for local invalidate operation,
> here should set the ps_opcode of the hardware to invalid
> value.
> 
> Fixes: 9a4435375cd1 ("IB/hns: Add driver files for hns RoCE driver")
> Fixes: a2f3d4479fe9 ("RDMA/hns: Avoid unncessary initialization")
> 
> Signed-off-by: Lijun Ou <oulijun@huawei.com>
> ---
>  drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 1 -
>  1 file changed, 1 deletion(-)

Applied to for-next, thanks

Jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-18 15:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17 13:50 [PATCH for-next] RDMA/hns: Set the unsupported wr opcode Lijun Ou
2020-09-18 15:58 ` Jason Gunthorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.