Skip to content

Commit

Permalink
verbs: Set default MTU for the xsrq ping-pong to be 1024
Browse files Browse the repository at this point in the history
According to Annex 16 (RoCE), the Rate and MTU values are obtained using
Ethernet management practices. The default MTU for the Ethernet is 1500,
so let's change the default MTU for ibv_xsrq_pingpong to be consistent
with Ethernet practices.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
  • Loading branch information
Leon Romanovsky authored and yishaih committed Aug 17, 2017
1 parent b802919 commit 0f93a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libibverbs/examples/xsrq_pingpong.c
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ static void init(void)
ctx.ib_port = 1;
ctx.num_clients = 1;
ctx.num_tests = 5;
ctx.mtu = IBV_MTU_2048;
ctx.mtu = IBV_MTU_1024;
ctx.sl = 0;
ctx.gidx = -1;
}
Expand Down

0 comments on commit 0f93a15

Please sign in to comment.