From owner-cvs-src@FreeBSD.ORG Fri Sep 16 11:44:43 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D722B16A41F; Fri, 16 Sep 2005 11:44:43 +0000 (GMT) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 958D843D45; Fri, 16 Sep 2005 11:44:43 +0000 (GMT) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j8GBihSv082731; Fri, 16 Sep 2005 11:44:43 GMT (envelope-from yar@repoman.freebsd.org) Received: (from yar@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j8GBihiM082730; Fri, 16 Sep 2005 11:44:43 GMT (envelope-from yar) Message-Id: <200509161144.j8GBihiM082730@repoman.freebsd.org> From: Yar Tikhiy Date: Fri, 16 Sep 2005 11:44:43 +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/net if_vlan.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: Fri, 16 Sep 2005 11:44:44 -0000 yar 2005-09-16 11:44:43 UTC FreeBSD src repository Modified files: sys/net if_vlan.c Log: Test the new M_VLANTAG packet flag before calling m_tag_locate(). This adds little overhead of a simple bitwise operation in case hardware VLAN acceleration is on, yet saves the more expensive function call if the acceleration is off. Reviewed by: ru, glebius X-MFC-after: 6.0 Revision Changes Path 1.84 +5 -2 src/sys/net/if_vlan.c