svn commit: r279988 - stable/10/sys/netinet

Andrey V. Elsukov ae at FreeBSD.org
Sat Mar 14 14:35:08 UTC 2015


Author: ae
Date: Sat Mar 14 14:35:07 2015
New Revision: 279988
URL: https://svnweb.freebsd.org/changeset/base/279988

Log:
  MFC r279730:
    lla_lookup() can directly call llentry_free() for static entries
    and the last one requires to hold afdata's wlock.
  
  PR:		197096

Modified:
  stable/10/sys/netinet/if_ether.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet/if_ether.c
==============================================================================
--- stable/10/sys/netinet/if_ether.c	Sat Mar 14 14:06:37 2015	(r279987)
+++ stable/10/sys/netinet/if_ether.c	Sat Mar 14 14:35:07 2015	(r279988)
@@ -153,10 +153,10 @@ arp_ifscrub(struct ifnet *ifp, uint32_t 
 	addr4.sin_len    = sizeof(addr4);
 	addr4.sin_family = AF_INET;
 	addr4.sin_addr.s_addr = addr;
-	IF_AFDATA_RLOCK(ifp);
+	IF_AFDATA_WLOCK(ifp);
 	lla_lookup(LLTABLE(ifp), (LLE_DELETE | LLE_IFADDR),
 	    (struct sockaddr *)&addr4);
-	IF_AFDATA_RUNLOCK(ifp);
+	IF_AFDATA_WUNLOCK(ifp);
 }
 #endif
 


More information about the svn-src-all mailing list