Date: Wed, 31 Aug 2005 11:36:50 +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 if_vlan_var.h Message-ID: <200508311136.j7VBaoKD079996@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
yar 2005-08-31 11:36:50 UTC FreeBSD src repository Modified files: sys/net if_vlan.c if_vlan_var.h Log: Use VLAN_TAG_VALUE() not only to read a dot1q tag value from an m_tag, but also to set it. This reduces complex code duplication and improves its readability. Alas, we shouldn't rename the macro to VLAN_TAG_LVALUE() globally because that would cause pain for kernel module port maintainers and vendors using FreeBSD as their codebase. Added a clarifying comment instead. Discussed with: ru, glebius X-MFC-After: 6.0-RELEASE (MFC is good just to reduce the diff) Revision Changes Path 1.83 +1 -1 src/sys/net/if_vlan.c 1.22 +7 -2 src/sys/net/if_vlan_var.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508311136.j7VBaoKD079996>