svn commit: r274988 - head/sys/netinet6
Andrey V. Elsukov
ae at FreeBSD.org
Mon Nov 24 21:51:44 UTC 2014
Author: ae
Date: Mon Nov 24 21:51:43 2014
New Revision: 274988
URL: https://svnweb.freebsd.org/changeset/base/274988
Log:
Skip L2 addresses lookups for p2p interfaces.
Discussed with: melifaro
Sponsored by: Yandex LLC
Modified:
head/sys/netinet6/nd6.c
Modified: head/sys/netinet6/nd6.c
==============================================================================
--- head/sys/netinet6/nd6.c Mon Nov 24 21:49:40 2014 (r274987)
+++ head/sys/netinet6/nd6.c Mon Nov 24 21:51:43 2014 (r274988)
@@ -2206,9 +2206,6 @@ nd6_need_cache(struct ifnet *ifp)
case IFT_IEEE80211:
#endif
case IFT_INFINIBAND:
- case IFT_GIF: /* XXX need more cases? */
- case IFT_PPP:
- case IFT_TUNNEL:
case IFT_BRIDGE:
case IFT_PROPVIRTUAL:
return (1);
@@ -2235,6 +2232,8 @@ nd6_add_ifa_lle(struct in6_ifaddr *ia)
struct llentry *ln;
ifp = ia->ia_ifa.ifa_ifp;
+ if (nd6_need_cache(ifp) == 0)
+ return (0);
IF_AFDATA_LOCK(ifp);
ia->ia_ifa.ifa_rtrequest = nd6_rtrequest;
ln = lla_lookup(LLTABLE6(ifp), (LLE_CREATE | LLE_IFADDR |
More information about the svn-src-head
mailing list