]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
ib/ipoib: support multiple devices on the same partition
authorRolf Manderscheid <rvm@obsidianresearch.com>
Tue, 11 Dec 2007 17:12:03 +0000 (09:12 -0800)
committerSean Hefty <sean.hefty@intel.com>
Tue, 11 Dec 2007 17:12:03 +0000 (09:12 -0800)
commiteae4bccba7342a0f64597e79edd1ccfa3c0a9ed6
tree7de66026138f5bf2da89b1c6e8900f22d7e4d669
parentce4904ec52d845e790b693440ce8d03e41f031a6
ib/ipoib: support multiple devices on the same partition

Multiple devices can coexist in a partition provided they have
different scopes.  This patch adds an optional scope argument to
the create_child / delete_child attributes.  Created child devices
are still named the same way as before, so in order to create
multiple child devices in the same partition, an interface name
change will be necessary to make room for subsequent children, eg:

echo 0xffff 0xe > /sys/class/net/ib0/create_child
ip link set ib0.ffff name ib0.global

Signed-off-by: Rolf Manderscheid <rvm@obsidianresearch.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_vlan.c