Date: Tue, 30 Dec 2008 00:15:12 +0000 (UTC) From: Kip Macy <kmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r186578 - user/kmacy/HEAD_fast_net/sys/netinet Message-ID: <200812300015.mBU0FCnO070637@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kmacy Date: Tue Dec 30 00:15:12 2008 New Revision: 186578 URL: http://svn.freebsd.org/changeset/base/186578 Log: don't LLE_FREE if llentry is unchanged Modified: user/kmacy/HEAD_fast_net/sys/netinet/ip_output.c Modified: user/kmacy/HEAD_fast_net/sys/netinet/ip_output.c ============================================================================== --- user/kmacy/HEAD_fast_net/sys/netinet/ip_output.c Mon Dec 29 23:41:12 2008 (r186577) +++ user/kmacy/HEAD_fast_net/sys/netinet/ip_output.c Tue Dec 30 00:15:12 2008 (r186578) @@ -659,12 +659,13 @@ done: (struct sockaddr *)dst); IF_AFDATA_WUNLOCK(ifp); } - if (la != NULL) { + if (la != NULL && (inp->inp_lle != la)) { LLE_FREE(inp->inp_lle); LLE_ADDREF(la); LLE_WUNLOCK(la); inp->inp_lle = la; - } + } else if (la != NULL) + LLE_WUNLOCK(la); } if (!wlocked) INP_DOWNGRADE(inp);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812300015.mBU0FCnO070637>