From patchwork Thu Aug 17 13:42:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yishai Hadas X-Patchwork-Id: 9906355 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B135860386 for ; Thu, 17 Aug 2017 13:43:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4DEC28AAB for ; Thu, 17 Aug 2017 13:43:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9843D28AAE; Thu, 17 Aug 2017 13:43:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15BB028AAB for ; Thu, 17 Aug 2017 13:43:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752567AbdHQNnM (ORCPT ); Thu, 17 Aug 2017 09:43:12 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:48811 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752555AbdHQNnK (ORCPT ); Thu, 17 Aug 2017 09:43:10 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from yishaih@mellanox.com) with ESMTPS (AES256-SHA encrypted); 17 Aug 2017 16:42:50 +0300 Received: from vnc17.mtl.labs.mlnx (vnc17.mtl.labs.mlnx [10.7.2.17]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v7HDgovk024069; Thu, 17 Aug 2017 16:42:50 +0300 Received: from vnc17.mtl.labs.mlnx (vnc17.mtl.labs.mlnx [127.0.0.1]) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8) with ESMTP id v7HDgodo022548; Thu, 17 Aug 2017 16:42:50 +0300 Received: (from yishaih@localhost) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8/Submit) id v7HDgouP022547; Thu, 17 Aug 2017 16:42:50 +0300 From: Yishai Hadas To: linux-rdma@vger.kernel.org Cc: yishaih@mellanox.com, leonro@mellanox.com, majd@mellanox.com Subject: [PATCH rdma-core] verbs: Set default MTU for the xsrq ping-pong to be 1024 Date: Thu, 17 Aug 2017 16:42:28 +0300 Message-Id: <1502977348-22485-1-git-send-email-yishaih@mellanox.com> X-Mailer: git-send-email 1.8.2.3 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Leon Romanovsky 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 Reviewed-by: Yishai Hadas --- 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; }