svn commit: r214437 - projects/ofed/head/sys/netinet6

Jeff Roberson jeff at FreeBSD.org
Wed Oct 27 23:22:44 UTC 2010


Author: jeff
Date: Wed Oct 27 23:22:43 2010
New Revision: 214437
URL: http://svn.freebsd.org/changeset/base/214437

Log:
   - Treat IFT_INFINIBAND just like IFT_ETHER in most cases, even when
     default: would DTRT add explicit switch labels for ib.
  
  Sponsored by:	Isilon Systems, iX Systems, and Panasas.

Modified:
  projects/ofed/head/sys/netinet6/in6.c
  projects/ofed/head/sys/netinet6/nd6.c
  projects/ofed/head/sys/netinet6/nd6_nbr.c

Modified: projects/ofed/head/sys/netinet6/in6.c
==============================================================================
--- projects/ofed/head/sys/netinet6/in6.c	Wed Oct 27 23:21:30 2010	(r214436)
+++ projects/ofed/head/sys/netinet6/in6.c	Wed Oct 27 23:22:43 2010	(r214437)
@@ -2281,6 +2281,7 @@ in6_if2idlen(struct ifnet *ifp)
 #ifdef IFT_MIP
 	case IFT_MIP:	/* ditto */
 #endif
+	case IFT_INFINIBAND:
 		return (64);
 	case IFT_FDDI:		/* RFC2467 */
 		return (64);

Modified: projects/ofed/head/sys/netinet6/nd6.c
==============================================================================
--- projects/ofed/head/sys/netinet6/nd6.c	Wed Oct 27 23:21:30 2010	(r214436)
+++ projects/ofed/head/sys/netinet6/nd6.c	Wed Oct 27 23:22:43 2010	(r214437)
@@ -2041,6 +2041,7 @@ nd6_need_cache(struct ifnet *ifp)
 #ifdef IFT_CARP
 	case IFT_CARP:
 #endif
+	case IFT_INFINIBAND:
 	case IFT_GIF:		/* XXX need more cases? */
 	case IFT_PPP:
 	case IFT_TUNNEL:

Modified: projects/ofed/head/sys/netinet6/nd6_nbr.c
==============================================================================
--- projects/ofed/head/sys/netinet6/nd6_nbr.c	Wed Oct 27 23:21:30 2010	(r214436)
+++ projects/ofed/head/sys/netinet6/nd6_nbr.c	Wed Oct 27 23:22:43 2010	(r214437)
@@ -1102,6 +1102,7 @@ nd6_ifptomac(struct ifnet *ifp)
 #ifdef IFT_CARP
 	case IFT_CARP:
 #endif
+	case IFT_INFINIBAND:
 	case IFT_BRIDGE:
 	case IFT_ISO88025:
 		return IF_LLADDR(ifp);
@@ -1419,6 +1420,7 @@ nd6_dad_duplicated(struct ifaddr *ifa)
 #ifdef IFT_IEEE80211
 		case IFT_IEEE80211:
 #endif
+		case IFT_INFINIBAND:
 			in6 = ia->ia_addr.sin6_addr;
 			if (in6_get_hw_ifid(ifp, &in6) == 0 &&
 			    IN6_ARE_ADDR_EQUAL(&ia->ia_addr.sin6_addr, &in6)) {


More information about the svn-src-projects mailing list