Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2013 07:46:30 +0000
From:      Alex Liptsin <alexl@mellanox.com>
To:        Garrett Cooper <yanegomi@gmail.com>
Cc:        "freebsd-infiniband@freebsd.org" <freebsd-infiniband@freebsd.org>, Jeff Roberson <jeff@freebsd.org>, Xin LI <delphij@delphij.net>, Regev Lev <regevl@mellanox.com>
Subject:   RE: How can I create 'pkey' on mellanox IB port?
Message-ID:  <64DAB3164E410447932305F50F896D8D6AF65E71@MTLDAG01.mtl.com>
In-Reply-To: <CAGH67wQ6jOxO2%2BJ8SnOFeQvh3cUdjns9COn3isipAm1=hp1FHQ@mail.gmail.com>
References:  <64DAB3164E410447932305F50F896D8D6AF65A9A@MTLDAG01.mtl.com> <CAGH67wQ6jOxO2%2BJ8SnOFeQvh3cUdjns9COn3isipAm1=hp1FHQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Garrett.

Thanks a lot.
Where can I download the updated "sysfs.h" file?

Regards,
Alex Liptsin

From: Garrett Cooper [mailto:yanegomi@gmail.com]
Sent: Tuesday, May 28, 2013 6:45 PM
To: Alex Liptsin
Cc: freebsd-infiniband@freebsd.org; Jeff Roberson; Xin LI
Subject: Re: How can I create 'pkey' on mellanox IB port?

On Tue, May 28, 2013 at 5:10 AM, Alex Liptsin <alexl@mellanox.com<mailto:al=
exl@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=3D0x028000 card=3D0x005015b3 chip=3D0x100315b=
3 rev=3D0x00 hdr=3D0x00
    vendor     =3D 'Mellanox Technologies'
    device     =3D 'MT27500 Family [ConnectX-3]'
    class      =3D 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" d=
irectory.

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>=3D0x800c and it shoul=
d achieve the same thing as setting the sysfs node.
    Please note that you must be the patch attached to http://www.freebsd.o=
rg/cgi/query-pr.cgi?pr=3Dkern/174213 in order for things to function proper=
ly as the sysfs handling code is still broken on HEAD. I've CCed Jeff Rober=
son about it a few times, and asked for assistance from Xin as well as I ha=
ven'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?64DAB3164E410447932305F50F896D8D6AF65E71>