[openib-general] [PATCH] Enable inet6 on ib interface

Roland Dreier roland at topspin.com
Thu Nov 11 16:38:57 PST 2004


I think we just need to copy our address to the child interface.  This
patch seems to fix it for me (already checked in).

(By the way, how does IPv6 handle autoconfig for VLAN interfaces?
With this change you can get duplicate autoconfig'ed addresses,
although they will be in different partitions.  I'm not sure if this
causes any problems...)

 - R.

Index: infiniband/ulp/ipoib/ipoib_vlan.c
===================================================================
--- infiniband/ulp/ipoib/ipoib_vlan.c	(revision 1212)
+++ infiniband/ulp/ipoib/ipoib_vlan.c	(working copy)
@@ -74,6 +74,7 @@
 
 	priv->pkey = pkey;
 
+	memcpy(priv->dev->dev_addr, ppriv->dev->dev_addr, IPOIB_HW_ADDR_LEN);
 	priv->dev->broadcast[8] = pkey >> 8;
 	priv->dev->broadcast[9] = pkey & 0xff;
 



More information about the general mailing list