From owner-cvs-src@FreeBSD.ORG Thu Feb 7 11:10:18 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ABBBB16A420; Thu, 7 Feb 2008 11:10:18 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 76ACC13C4CC; Thu, 7 Feb 2008 11:10:18 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m17BAInb050992; Thu, 7 Feb 2008 11:10:18 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m17BAISx050990; Thu, 7 Feb 2008 11:10:18 GMT (envelope-from glebius) Message-Id: <200802071110.m17BAISx050990@repoman.freebsd.org> From: Gleb Smirnoff Date: Thu, 7 Feb 2008 11:10:18 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/netgraph/netflow netflow.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2008 11:10:18 -0000 glebius 2008-02-07 11:10:18 UTC FreeBSD src repository Modified files: sys/netgraph/netflow netflow.c Log: Use rtalloc1() instead of rtalloc_ign(). It returns a locked rtentry. We quickly copy the fields of interest, and then RTFREE_LOCKED(). This should be faster then lock & unlock the rtentry twice. Revision Changes Path 1.28 +17 -24 src/sys/netgraph/netflow/netflow.c