diff mbox

[rdma-core] verbs: Set default MTU for the xsrq ping-pong to be 1024

Message ID 1502977348-22485-1-git-send-email-yishaih@mellanox.com (mailing list archive)
State Accepted
Headers show

Commit Message

Yishai Hadas Aug. 17, 2017, 1:42 p.m. UTC
From: Leon Romanovsky <leonro@mellanox.com>

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>
---
Pull request was sent:
https://github.com/linux-rdma/rdma-core/pull/185

 libibverbs/examples/xsrq_pingpong.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libibverbs/examples/xsrq_pingpong.c b/libibverbs/examples/xsrq_pingpong.c
index 46f59a6..bfab2b8 100644
--- a/libibverbs/examples/xsrq_pingpong.c
+++ b/libibverbs/examples/xsrq_pingpong.c
@@ -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;
 }