From owner-cvs-all@FreeBSD.ORG Fri Sep 16 12:34:28 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org 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 4E9A216A41F; Fri, 16 Sep 2005 12:34:28 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C19743D58; Fri, 16 Sep 2005 12:34:24 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id j8GCYMgP028372; Fri, 16 Sep 2005 16:34:22 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id j8GCYMvj028371; Fri, 16 Sep 2005 16:34:22 +0400 (MSD) (envelope-from yar) Date: Fri, 16 Sep 2005 16:34:21 +0400 From: Yar Tikhiy To: Gleb Smirnoff Message-ID: <20050916123421.GB23109@comp.chem.msu.su> References: <200509161144.j8GBihiM082730@repoman.freebsd.org> <20050916115312.GT53891@cell.sick.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050916115312.GT53891@cell.sick.ru> User-Agent: Mutt/1.5.9i Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net if_vlan.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 16 Sep 2005 12:34:28 -0000 On Fri, Sep 16, 2005 at 03:53:12PM +0400, Gleb Smirnoff wrote: > On Fri, Sep 16, 2005 at 11:44:43AM +0000, Yar Tikhiy wrote: > Y> yar 2005-09-16 11:44:43 UTC > Y> > Y> FreeBSD src repository > Y> > Y> Modified files: > Y> sys/net if_vlan.c > Y> Log: > Y> Test the new M_VLANTAG packet flag before calling > Y> m_tag_locate(). This adds little overhead of a simple > Y> bitwise operation in case hardware VLAN acceleration > Y> is on, yet saves the more expensive function call if > Y> the acceleration is off. > Y> > Y> Reviewed by: ru, glebius > Y> X-MFC-after: 6.0 > ^^^^^^^^^^^^^^^^^^^ > Why? 'Cause it's more about code consistency than stability, or performance, or features. So I'd rather not bother re@ with this when they are being flooded with really important bugfixes. It shouldn't be the extra m_tag_locate() call that is likely to be a bottleneck in 6.0 ;) -- Yar