Date: Fri, 16 Sep 2005 11:44:43 +0000 (UTC) From: Yar Tikhiy <yar@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if_vlan.c Message-ID: <200509161144.j8GBihiM082730@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509161144.j8GBihiM082730>
