From owner-freebsd-net@FreeBSD.ORG Thu May 23 18:36:32 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BF6A372D for ; Thu, 23 May 2013 18:36:32 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-oa0-f42.google.com (mail-oa0-f42.google.com [209.85.219.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8EA6096C for ; Thu, 23 May 2013 18:36:32 +0000 (UTC) Received: by mail-oa0-f42.google.com with SMTP id i10so5006617oag.29 for ; Thu, 23 May 2013 11:36:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JUPSAxMbZA3HwDoH9MIKDs5Muz3SQl8sebgxUch4coA=; b=Pq0Osf6HYmL3iKUYPdHLlJcTap8Cp9bNFs4lHOfVdv9aDIHrMln9srCM1tFmtfxpfg VCyfOGSegtnR5ctIJGHrnDKfg0CLiElUp7q/PNE02ESLoatNTpccaot7SbpkUNHmpY0s +F1ZWK8wP77uwrpqo1LIBiYThl9S6h+pa5rjd3+zLKRjAf7SjOPQvJOGuWCktnBijGS1 bK+TUk3R4FfnmN5nOHFTYx3CeX9BJGIgM5HbbATe1nGERJa+VBWfKig48oNFeDeVn7Qm 3qGREQCHqXr3O0Wz07YqLYm0Hg/ss+fW+dghddtrqMTRQUDeb0f1aoS5Tty2rVn6dcgL kJ8w== MIME-Version: 1.0 X-Received: by 10.60.155.209 with SMTP id vy17mr9627534oeb.83.1369334185834; Thu, 23 May 2013 11:36:25 -0700 (PDT) Received: by 10.76.90.10 with HTTP; Thu, 23 May 2013 11:36:25 -0700 (PDT) In-Reply-To: <64DAB3164E410447932305F50F896D8D6AF63DB3@MTLDAG01.mtl.com> References: <64DAB3164E410447932305F50F896D8D6AF63DB3@MTLDAG01.mtl.com> Date: Thu, 23 May 2013 14:36:25 -0400 Message-ID: Subject: Re: Create pkey on FreeBSD 9.1 From: Ryan Stone To: Alex Liptsin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 May 2013 18:36:32 -0000 On Thu, May 23, 2013 at 4:32 AM, Alex Liptsin 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).