Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2013 13:21:08 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-net@freebsd.org
Cc:        Alex Liptsin <alexl@mellanox.com>, Ryan Stone <rysto32@gmail.com>
Subject:   Re: Create pkey on FreeBSD 9.1
Message-ID:  <201305291321.08657.jhb@freebsd.org>
In-Reply-To: <CAFMmRNzaKbQqZNXODtF%2BLNk5y%2B%2B9Ky1B0VaAZpGLmQcyTwRM3Q@mail.gmail.com>
References:  <64DAB3164E410447932305F50F896D8D6AF63DB3@MTLDAG01.mtl.com> <CAFMmRNzaKbQqZNXODtF%2BLNk5y%2B%2B9Ky1B0VaAZpGLmQcyTwRM3Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, May 23, 2013 2:36:25 pm Ryan Stone wrote:
> On Thu, May 23, 2013 at 4:32 AM, Alex Liptsin <alexl@mellanox.com> wrote:
> 
> > Hello.
> >
> > I have FreeBSD 9.1 installed.
> > There is mellanox adapter inside.
> > OFED support is already installed.
> >
> > 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.
> >
> > Regards,
> > Alex Liptsin
> >
> > _______________________________________________
> > freebsd-net@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-net
> > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
> >
> 
> From reading the source it looks like this is done by attaching a vlan
> interface to the interface.  So try:
> 
> ifconfig vlan create vlandev ib0 vlan 0xc
> 
> This will create a new vlanX interface (ifconfig will its precise name with
> its unit number to stdout).

Simpler though is just 'ifconfig ib0.12 create' (and how most folks
expect subinterfaces to be named).

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305291321.08657.jhb>