diff mbox series

[04/28] lnet: o2ib: Fix compilation with Linux 5.8

Message ID 1655560330-30743-5-git-send-email-jsimmons@infradead.org (mailing list archive)
State Not Applicable
Headers show
Series lustre: sync to OpenSFS June 15, 2022 | expand

Commit Message

James Simmons June 18, 2022, 1:51 p.m. UTC
From: Sergey Gorenko <sergeygo@mellanox.com>

A new argument was added to rdma_reject() in Linux 5.8

WC-bug-id: https://jira.whamcloud.com/browse/LU-13761
Lustre-commit: 956deb0fe8195c7a0 ("LU-13761 o2ib: Fix compilation with MOFED 5.1")
Signed-off-by: Sergey Gorenko <sergeygo@mellanox.com>
Reviewed-on: https://review.whamcloud.com/39323
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
---
 net/lnet/klnds/o2iblnd/o2iblnd_cb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/net/lnet/klnds/o2iblnd/o2iblnd_cb.c b/net/lnet/klnds/o2iblnd/o2iblnd_cb.c
index a88939e7..cb96282 100644
--- a/net/lnet/klnds/o2iblnd/o2iblnd_cb.c
+++ b/net/lnet/klnds/o2iblnd/o2iblnd_cb.c
@@ -2323,8 +2323,7 @@  static int kiblnd_map_tx(struct lnet_ni *ni, struct kib_tx *tx,
 {
 	int rc;
 
-	rc = rdma_reject(cmid, rej, sizeof(*rej));
-
+	rc = rdma_reject(cmid, rej, sizeof(*rej), IB_CM_REJ_CONSUMER_DEFINED);
 	if (rc)
 		CWARN("Error %d sending reject\n", rc);
 }