[Differential] D7710: net/vlan: Shift for pri is 13 (pri mask 0xe000) not 1.
sepherosa_gmail.com (Sepherosa Ziehau)
phabric-noreply at FreeBSD.org
Tue Aug 30 09:46:49 UTC 2016
sepherosa_gmail.com created this revision.
sepherosa_gmail.com added reviewers: glebius, bz, gnn, rwatson, araujo, bms.
sepherosa_gmail.com added a subscriber: freebsd-net-list.
REVISION DETAIL
https://reviews.freebsd.org/D7710
AFFECTED FILES
sys/net/ethernet.h
CHANGE DETAILS
diff --git a/sys/net/ethernet.h b/sys/net/ethernet.h
--- a/sys/net/ethernet.h
+++ b/sys/net/ethernet.h
@@ -89,7 +89,7 @@
#define EVL_PRIOFTAG(tag) (((tag) >> 13) & 7)
#define EVL_CFIOFTAG(tag) (((tag) >> 12) & 1)
#define EVL_MAKETAG(vlid, pri, cfi) \
- ((((((pri) & 7) << 1) | ((cfi) & 1)) << 12) | ((vlid) & EVL_VLID_MASK))
+ ((((((pri) & 7) << 13) | ((cfi) & 1)) << 12) | ((vlid) & EVL_VLID_MASK))
/*
* NOTE: 0x0000-0x05DC (0..1500) are generally IEEE 802.3 length fields.
EMAIL PREFERENCES
https://reviews.freebsd.org/settings/panel/emailpreferences/
To: sepherosa_gmail.com, glebius, bz, gnn, rwatson, araujo, bms
Cc: freebsd-net-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7710.19837.patch
Type: text/x-patch
Size: 489 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20160830/ae367d22/attachment.bin>
More information about the freebsd-net
mailing list