]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
ib/ipoib: improve IPv4/IPv6 mcast mapping functions
authorRolf Manderscheid <rvm@obsidianresearch.com>
Tue, 11 Dec 2007 17:10:33 +0000 (09:10 -0800)
committerSean Hefty <sean.hefty@intel.com>
Tue, 11 Dec 2007 17:10:33 +0000 (09:10 -0800)
commit6cc1b2c53cdc8327aa0d7188b8c61416a577da42
tree3cfb285f99e5036649e4555fbbbbbd4c7e1997c1
parent090d57353460fec8e6382b61271e8318200fe494
ib/ipoib: improve IPv4/IPv6 mcast mapping functions

An ipoib subnet on an IB fabric that spans multiple IB subnets can't
use link-local scope in multicast GIDs.  The existing routines that
map IP/IPv6 multicast addresses into IB link-level addresses hard-code
the scope to link-local, they also leave the partition key field
uninitialised.  This patch adds a parameter (the link-level broadcast
address) to the mapping routines allowing them to initialise both the
scope and the pkey appropriately, and fixes up the call sites.  The
next step will be to add a way to configure the scope for an ipoib device.

Signed-off-by: Rolf Manderscheid <rvm@obsidianresearch.com>
drivers/infiniband/core/cma.c
include/net/if_inet6.h
include/net/ip.h
net/ipv4/arp.c
net/ipv6/ndisc.c