Date: Tue, 28 May 2013 08:45:22 -0700 From: Garrett Cooper <yanegomi@gmail.com> To: Alex Liptsin <alexl@mellanox.com> Cc: "freebsd-infiniband@freebsd.org" <freebsd-infiniband@freebsd.org>, Jeff Roberson <jeff@freebsd.org>, Xin LI <delphij@delphij.net> Subject: Re: How can I create 'pkey' on mellanox IB port? Message-ID: <CAGH67wQ6jOxO2%2BJ8SnOFeQvh3cUdjns9COn3isipAm1=hp1FHQ@mail.gmail.com> In-Reply-To: <64DAB3164E410447932305F50F896D8D6AF65A9A@MTLDAG01.mtl.com> References: <64DAB3164E410447932305F50F896D8D6AF65A9A@MTLDAG01.mtl.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 28, 2013 at 5:10 AM, Alex Liptsin <alexl@mellanox.com> wrote: > Hello. > > I have FreeBSD 9.1 installed. > There is mellanox adapter inside. > > [root@qa-h-vrt-030-006 ~]# pciconf -lv |grep mlx4 -A 3 > mlx4_core0@pci0:0:5:0: class=0x028000 card=0x005015b3 chip=0x100315b3 > rev=0x00 hdr=0x00 > vendor = 'Mellanox Technologies' > device = 'MT27500 Family [ConnectX-3]' > class = network > > > OFED support is already compiled. > > I try to add pkeys on ib0 port. > > Usually in Linux I did: > > echo 0x800c > /sys/class/net/ib0/create_child > > ifconfig -a > To Make sure you see a new interface: ib0.800c > > How can I do it on FreeBSD? There is no "/sys/class/net/ib0/create_child" > directory. > Hi Alex! For all sysfs entries there *should* be a corresponding sysctl for it. Do sysctl -Na | grep create_child and you might find the node that you seek. After that all you need to do is call sysctl <node>=0x800c and it should achieve the same thing as setting the sysfs node. Please note that you must be the patch attached to http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/174213 in order for things to function properly as the sysfs handling code is still broken on HEAD. I've CCed Jeff Roberson about it a few times, and asked for assistance from Xin as well as I haven't gotten any feedback from Jeff. Thanks, -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wQ6jOxO2%2BJ8SnOFeQvh3cUdjns9COn3isipAm1=hp1FHQ>