On Wed, Mar 2, 2022 at 10:11 PM Chengguang Xu <cgxu519@xxxxxxxxxxxx> wrote: > > 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@xxxxxxxxxxxx> Thanks. Acked-by: Zhu Yanjun <zyjzyj2000@xxxxxxxxx> Zhu Yanjun > --- > 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 > >