From owner-svn-src-user@FreeBSD.ORG Tue Dec 30 00:15:13 2008 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 012D51065672; Tue, 30 Dec 2008 00:15:13 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E59518FC37; Tue, 30 Dec 2008 00:15:12 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBU0FCmp070638; Tue, 30 Dec 2008 00:15:12 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBU0FCnO070637; Tue, 30 Dec 2008 00:15:12 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <200812300015.mBU0FCnO070637@svn.freebsd.org> From: Kip Macy Date: Tue, 30 Dec 2008 00:15:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186578 - user/kmacy/HEAD_fast_net/sys/netinet X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 00:15:13 -0000 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);