From: Rolf Manderscheid Date: Mon, 10 Dec 2007 20:38:41 +0000 (-0700) Subject: IPoIB: improve IPv4/IPv6 to IB mcast mapping functions X-Git-Tag: v2.6.25-rc1~1234^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9e527e3f9f4510e9f3450ca3bc51bc3ef2854fd;p=pandora-kernel.git IPoIB: improve IPv4/IPv6 to IB 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, and 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 P_Key appropriately, and fixes up the call sites. The next step will be to add a way to configure the scope for an IPoIB interface. Signed-off-by: Rolf Manderscheid Signed-off-by: Roland Dreier --- Reading git-diff-tree failed