From owner-freebsd-infiniband@freebsd.org Sun Nov 13 14:22:36 2016 Return-Path: Delivered-To: freebsd-infiniband@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 607D6C3F22E for ; Sun, 13 Nov 2016 14:22:36 +0000 (UTC) (envelope-from justin@postgresql.org) Received: from meldrar.postgresql.org (meldrar.postgresql.org [IPv6:2a02:c0:301:0:ffff::31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.postgresql.org", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2392A14DE for ; Sun, 13 Nov 2016 14:22:35 +0000 (UTC) (envelope-from justin@postgresql.org) Received: from 82-69-92-196.dsl.in-addr.zen.co.uk ([82.69.92.196] helo=mac-mini-server.lan) by meldrar.postgresql.org with esmtpsa (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c5vfy-00054N-3y; Sun, 13 Nov 2016 14:22:32 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Device hints to put mlx4 on IB mode From: Justin Clift In-Reply-To: Date: Sun, 13 Nov 2016 14:22:26 +0000 Cc: =?utf-8?Q?Vin=C3=ADcius_Ferr=C3=A3o?= , "freebsd-infiniband@freebsd.org" , Mark Bloch , Yuval Bason , Hans Petter Selasky Content-Transfer-Encoding: quoted-printable Message-Id: <5391E407-3C0B-4BD8-990F-4985C18C077A@postgresql.org> References: To: Meny Yossefi X-Mailer: Apple Mail (2.3124) X-Pg-Spam-Score: -2.9 (--) X-BeenThere: freebsd-infiniband@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Infiniband on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2016 14:22:36 -0000 On 13 Nov 2016, at 13:42, Meny Yossefi wrote: >=20 > Hi,=20 >=20 > There's a tool called 'mlxconfig' which can change port's type, but I = think it requires the driver to be loaded, so no real help here. > You can try contacting our support team (support@mellanox.com) about = the tool. >=20 > Which kernel version are you using?=20 > In recent versions, we added a patch the forces port type to come up = as ETH.=20 > In that case, changing it to IB will just be a one liner to maintain.=20= Another option may be to add a new sysctl. Something to change "all the = ports" instead of changing them one-by-one. Maybe named like: sys.device.mlx4_core0.mlx4_ports=3D"ib" If that would be acceptable for the main FreeBSD source, it wouldn't = have to be manually applied to every build. + Justin -- "My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there." - Indira Gandhi