* Re: [PATCH][RFC/v1][11/12] Add InfiniBand Documentation files
[not found] ` <20041122714.AyIOvRY195EGFTaO@topspin.com>
@ 2004-11-22 15:31 ` Christoph Hellwig
2004-11-22 15:41 ` Roland Dreier
2004-11-23 8:49 ` Eric W. Biederman
0 siblings, 2 replies; 3+ messages in thread
From: Christoph Hellwig @ 2004-11-22 15:31 UTC (permalink / raw)
To: Roland Dreier; +Cc: netdev, linux-kernel, openib-general
> + When the IPoIB driver is loaded, it creates one interface for each
> + port using the P_Key at index 0. To create an interface with a
> + different P_Key, write the desired P_Key into the main interface's
> + /sys/class/net/<intf name>/create_child file. For example:
> +
> + echo 0x8001 > /sys/class/net/ib0/create_child
> +
> + This will create an interface named ib0.8001 with P_Key 0x8001. To
> + remove a subinterface, use the "delete_child" file:
> +
> + echo 0x8001 > /sys/class/net/ib0/delete_child
> +
> + The P_Key for any interface is given by the "pkey" file, and the
> + main interface for a subinterface is in "parent."
Any reason this doesn't use an interface similar to the normal vlan code?
And what is a P_Key?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH][RFC/v1][11/12] Add InfiniBand Documentation files
2004-11-22 15:31 ` [PATCH][RFC/v1][11/12] Add InfiniBand Documentation files Christoph Hellwig
@ 2004-11-22 15:41 ` Roland Dreier
2004-11-23 8:49 ` Eric W. Biederman
1 sibling, 0 replies; 3+ messages in thread
From: Roland Dreier @ 2004-11-22 15:41 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: netdev, linux-kernel, openib-general
Christoph> Any reason this doesn't use an interface similar to the
Christoph> normal vlan code?
The normal vlan code uses an ioctl(). I thought a simple sysfs
interface would be more palatable than a new socket ioctl.
Christoph> And what is a P_Key?
It is a 16-bit identifier carried by IB packets that says which
partition the packet is in. End ports have P_Key tables that list
which partitions they are members of (a port can be a member of one or
more partitions, and can only receive packets from that partition).
- Roland
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Re: [PATCH][RFC/v1][11/12] Add InfiniBand Documentation files
2004-11-22 15:31 ` [PATCH][RFC/v1][11/12] Add InfiniBand Documentation files Christoph Hellwig
2004-11-22 15:41 ` Roland Dreier
@ 2004-11-23 8:49 ` Eric W. Biederman
1 sibling, 0 replies; 3+ messages in thread
From: Eric W. Biederman @ 2004-11-23 8:49 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: netdev, linux-kernel, openib-general
Christoph Hellwig <hch@infradead.org> writes:
> > + When the IPoIB driver is loaded, it creates one interface for each
> > + port using the P_Key at index 0. To create an interface with a
> > + different P_Key, write the desired P_Key into the main interface's
> > + /sys/class/net/<intf name>/create_child file. For example:
> > +
> > + echo 0x8001 > /sys/class/net/ib0/create_child
> > +
> > + This will create an interface named ib0.8001 with P_Key 0x8001. To
> > + remove a subinterface, use the "delete_child" file:
> > +
> > + echo 0x8001 > /sys/class/net/ib0/delete_child
> > +
> > + The P_Key for any interface is given by the "pkey" file, and the
> > + main interface for a subinterface is in "parent."
>
> Any reason this doesn't use an interface similar to the normal vlan code?
>
> And what is a P_Key?
IB version of a vlan identifier.
Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-11-23 8:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20041122714.taTI3zcdWo5JfuMd@topspin.com>
[not found] ` <20041122714.AyIOvRY195EGFTaO@topspin.com>
2004-11-22 15:31 ` [PATCH][RFC/v1][11/12] Add InfiniBand Documentation files Christoph Hellwig
2004-11-22 15:41 ` Roland Dreier
2004-11-23 8:49 ` Eric W. Biederman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).