svn commit: r318512 - head/sys/net
Sepherosa Ziehau
sephe at FreeBSD.org
Fri May 19 01:42:33 UTC 2017
Author: sephe
Date: Fri May 19 01:42:31 2017
New Revision: 318512
URL: https://svnweb.freebsd.org/changeset/base/318512
Log:
net/vlan: Revert 305177
Miss read the parentheses.
Reported by: oleg@
Reviewed by: hps@
MFC after: 3 days
Sponsored by: Microsoft
Modified:
head/sys/net/ethernet.h
Modified: head/sys/net/ethernet.h
==============================================================================
--- head/sys/net/ethernet.h Fri May 19 01:23:06 2017 (r318511)
+++ head/sys/net/ethernet.h Fri May 19 01:42:31 2017 (r318512)
@@ -92,7 +92,7 @@ struct ether_vlan_header {
#define EVL_PRIOFTAG(tag) (((tag) >> 13) & 7)
#define EVL_CFIOFTAG(tag) (((tag) >> 12) & 1)
#define EVL_MAKETAG(vlid, pri, cfi) \
- ((((((pri) & 7) << 13) | ((cfi) & 1)) << 12) | ((vlid) & EVL_VLID_MASK))
+ ((((((pri) & 7) << 1) | ((cfi) & 1)) << 12) | ((vlid) & EVL_VLID_MASK))
/*
* NOTE: 0x0000-0x05DC (0..1500) are generally IEEE 802.3 length fields.
More information about the svn-src-all
mailing list