Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* [PATCH] RDMA/rxe: change payload type to u32 from int
@ 2022-03-02 14:10 Chengguang Xu
  2022-03-03  2:26 ` Zhu Yanjun
  2022-03-03 18:04 ` Leon Romanovsky
  0 siblings, 2 replies; 6+ messages in thread
From: Chengguang Xu @ 2022-03-02 14:10 UTC (permalink / raw)
  To: zyjzyj2000, jgg; +Cc: linux-rdma, Chengguang Xu

The type of wqe length is u32 so change variable payload
to type u32 to avoid overflow on large wqe length.

Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
---
 drivers/infiniband/sw/rxe/rxe_req.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c
index 5eb89052dd66..e989ee3a2033 100644
--- a/drivers/infiniband/sw/rxe/rxe_req.c
+++ b/drivers/infiniband/sw/rxe/rxe_req.c
@@ -612,7 +612,7 @@ int rxe_requester(void *arg)
 	struct sk_buff *skb;
 	struct rxe_send_wqe *wqe;
 	enum rxe_hdr_mask mask;
-	int payload;
+	u32 payload;
 	int mtu;
 	int opcode;
 	int ret;
-- 
2.27.0



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

end of thread, other threads:[~2022-03-04  7:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-02 14:10 [PATCH] RDMA/rxe: change payload type to u32 from int Chengguang Xu
2022-03-03  2:26 ` Zhu Yanjun
2022-03-03 18:04 ` Leon Romanovsky
2022-03-04  2:08   ` Chengguang Xu
2022-03-04  7:10     ` Leon Romanovsky
2022-03-04  7:20       ` Chengguang Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox