Skip to content

Commit 8da807d

Browse files
author
Simon Raviv
committed
Fixed ToS(Type of Service) variable size issue
Signed-off-by: Simon Raviv <[email protected]>
1 parent cd9fc9d commit 8da807d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/perftest_communication.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,7 @@ int rdma_cm_address_handler(struct pingpong_context *ctx,
20232023

20242024
if (user_param->tos != DEF_TOS) {
20252025
rc = rdma_set_option(cma_id, RDMA_OPTION_ID,
2026-
RDMA_OPTION_ID_TOS, &user_param->tos, sizeof(user_param->tos));
2026+
RDMA_OPTION_ID_TOS, &user_param->tos, sizeof(uint8_t));
20272027
if (rc) {
20282028
error_message = \
20292029
"Failed to set ToS(Type of Service) option for RDMA "

0 commit comments

Comments
 (0)