RDMA/rxe: Use sizeof instead of hard code number
authorzhenwei pi <pizhenwei@bytedance.com>
Thu, 22 Aug 2024 06:52:21 +0000 (14:52 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 23 Aug 2024 14:42:38 +0000 (11:42 -0300)
commitc87c5f47ff72a14001c982d3bc58d7b98ca746c3
tree3bfecf8dc93141e5ace8792df136d55600874a77
parentae46d3fc17f960dc2d1399acdc488e27638a71a7
RDMA/rxe: Use sizeof instead of hard code number

Use 'sizeof(union rdma_network_hdr)' instead of hard code GRH length
for GSI and UD.

Link: https://patch.msgid.link/r/20240822065223.1117056-2-pizhenwei@bytedance.com
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_resp.c