From owner-cvs-all@FreeBSD.ORG Thu Dec 9 17:44:57 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B590516A4CE; Thu, 9 Dec 2004 17:44:57 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A961343D5C; Thu, 9 Dec 2004 17:44:57 +0000 (GMT) (envelope-from csjp@FreeBSD.org) Received: from freefall.freebsd.org (csjp@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iB9Hivd1090991; Thu, 9 Dec 2004 17:44:57 GMT (envelope-from csjp@freefall.freebsd.org) Received: (from csjp@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iB9HivAA090990; Thu, 9 Dec 2004 17:44:57 GMT (envelope-from csjp) Date: Thu, 9 Dec 2004 17:44:57 +0000 From: "Christian S.J. Peron" To: Gleb Smirnoff Message-ID: <20041209174457.GA82542@freefall.freebsd.org> References: <200412091641.iB9GflnD067866@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200412091641.iB9GflnD067866@repoman.freebsd.org> User-Agent: Mutt/1.4.2.1i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/netinet ip_fw_pfil.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2004 17:44:57 -0000 On Thu, Dec 09, 2004 at 04:41:47PM +0000, Gleb Smirnoff wrote: > glebius 2004-12-09 16:41:47 UTC > > FreeBSD src repository > > Modified files: > sys/netinet ip_fw_pfil.c > Log: > Check that DUMMYNET_LOADED before seeking dummynet m_tag. I think Sam had some reservations about doing this before, We had some discussions and in the end it was pretty much concluded that since tags are rarely present, and m_tag_locate is only called if tags are present, adding this check unconditionally added a memory write and a compare for every packet. This change may be a mistake unless you can prove some significant performance gain. -- Christian S.J. Peron csjp@FreeBSD.ORG FreeBSD Committer