From owner-freebsd-questions@FreeBSD.ORG Tue Jun 11 07:05:23 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 80B14736; Tue, 11 Jun 2013 07:05:23 +0000 (UTC) (envelope-from alexl@mellanox.com) Received: from eu1sys200aog101.obsmtp.com (eu1sys200aog101.obsmtp.com [207.126.144.111]) by mx1.freebsd.org (Postfix) with ESMTP id 3B50B1F71; Tue, 11 Jun 2013 07:05:21 +0000 (UTC) Received: from MTLCAS02.mtl.com ([193.47.165.155]) (using TLSv1) by eu1sys200aob101.postini.com ([207.126.147.11]) with SMTP ID DSNKUbbMKrrMAf1CZCUEgY8J+pXsyxkqIF38@postini.com; Tue, 11 Jun 2013 07:05:22 UTC Received: from MTLDAG01.mtl.com ([10.0.8.75]) by MTLCAS02.mtl.com ([10.0.8.72]) with mapi id 14.03.0123.003; Tue, 11 Jun 2013 10:05:13 +0300 From: Alex Liptsin To: John Baldwin , "freebsd-net@freebsd.org" Subject: RE: How to switch Datgram/Connected mtu modes? Thread-Topic: How to switch Datgram/Connected mtu modes? Thread-Index: Ac5aBjoH5e0b3u1XTvyAlDGQDXzaKQCc1AwAAn3391A= Date: Tue, 11 Jun 2013 07:05:12 +0000 Message-ID: <64DAB3164E410447932305F50F896D8D6AF6DBCA@MTLDAG01.mtl.com> References: <64DAB3164E410447932305F50F896D8D6AF651AD@MTLDAG01.mtl.com> <201305291333.52607.jhb@freebsd.org> In-Reply-To: <201305291333.52607.jhb@freebsd.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.13.1] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Oded Shanoon , "freebsd-questions@freebsd.org" , Regev Lev X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jun 2013 07:05:23 -0000 Hi. Yes. There is no such entry. The only way I found is to compile inside the kernel " options IPOIB_CM ". Can I do it manually without compiling the kernel each time I want to switc= h between the modes? Maybe add it somehow to sysctl or loader.conf? =20 Regards, Alex Liptsin Software Quality Assurance Engineer | Mellanox Technologies Ltd. Office: +972 (74) 7236141 Mobile: +972(54) 7833986 Fax: +972(74) 7236161=20 Email: alexl@mellanox.com Mellanox, Tel-Hai Industrial Park. Building 7, M.P. Upper Galilee 12100 Isr= ael -----Original Message----- From: John Baldwin [mailto:jhb@freebsd.org]=20 Sent: Wednesday, May 29, 2013 9:17 PM To: freebsd-net@freebsd.org Cc: Alex Liptsin; freebsd-questions@freebsd.org Subject: Re: How to switch Datgram/Connected mtu modes? On Sunday, May 26, 2013 7:43:29 am Alex Liptsin wrote: > Hello. >=20 > I work with FreeBSD 9.1 and Mellanox devices. >=20 > How can I configure MTU in connected mode on FreeBSD 9.1? > In Linux to enable connected mode for interface ib0, I enter: >=20 > echo connected > /sys/class/net/ib0/mode >=20 >=20 >=20 > Switching between CM and UD mode can be done in run time: >=20 > echo datagram > /sys/class/net/ib0/mode sets the mode of ib0 to UD >=20 > echo connected > /sys/class/net/ib0/mode sets the mode ib0 to CM >=20 > There is no such directories at FreeBSD. Wat shall I do? Have you tried looking for dev.ib.0 sysctls? It looks like the OFED bits i= n FreeBSD map Linux sysfs entries to sysctl nodes, but I don't have a box w= ith IB handy to see what it looks like at runtime. -- John Baldwin