From owner-freebsd-net@FreeBSD.ORG Fri May 30 13:56:17 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E99C106566C for ; Fri, 30 May 2008 13:56:17 +0000 (UTC) (envelope-from rihad@mail.ru) Received: from mx28.mail.ru (mx28.mail.ru [194.67.23.67]) by mx1.freebsd.org (Postfix) with ESMTP id 682428FC16 for ; Fri, 30 May 2008 13:56:17 +0000 (UTC) (envelope-from rihad@mail.ru) Received: from mx33.mail.ru (mx33.mail.ru [194.67.23.194]) by mx28.mail.ru (mPOP.Fallback_MX) with ESMTP id 7376931E3B9 for ; Fri, 30 May 2008 17:16:41 +0400 (MSD) Received: from [217.25.27.27] (port=30754 helo=[217.25.27.27]) by mx33.mail.ru with asmtp id 1K24TH-000B4Y-00 for freebsd-net@freebsd.org; Fri, 30 May 2008 17:16:39 +0400 Message-ID: <483FFE36.7050006@mail.ru> Date: Fri, 30 May 2008 18:16:38 +0500 From: rihad User-Agent: Icedove 1.5.0.14eol (X11/20080509) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: Not detected X-Mras: OK Subject: if_var.h micro-optimization X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2008 13:56:17 -0000 Not sure if this is a worthwhile optimization? FreeBSD 7.0 --- /usr/src/sys/net/if_var.h 2007-12-07 09:46:08.000000000 +0400 +++ if_var.h 2008-05-30 18:10:25.000000000 +0500 @@ -282,7 +282,8 @@ if (m) { \ if (((ifq)->ifq_head = (m)->m_nextpkt) == NULL) \ (ifq)->ifq_tail = NULL; \ - (m)->m_nextpkt = NULL; \ + else \ + (m)->m_nextpkt = NULL; \ (ifq)->ifq_len--; \ } \ } while (0)