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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Leon Romanovsky <leonro@xxxxxxxxxxxx>

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@xxxxxxxxxxxx>
Reviewed-by: Yishai Hadas <yishaih@xxxxxxxxxxxx>
---
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 --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;
 }
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux