Page MenuHomeFreeBSD

net/vlan: Shift for pri is 13 (pri mask 0xe000) not 1.
ClosedPublic

Authored by sepherosa_gmail.com on Aug 30 2016, 9:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 8:12 PM
Unknown Object (File)
Sat, Nov 16, 1:50 PM
Unknown Object (File)
Thu, Nov 14, 1:22 PM
Unknown Object (File)
Fri, Nov 1, 5:11 PM
Unknown Object (File)
Oct 19 2024, 6:56 AM
Unknown Object (File)
Sep 26 2024, 4:12 PM
Unknown Object (File)
Sep 26 2024, 4:12 PM
Unknown Object (File)
Sep 26 2024, 4:12 PM

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sepherosa_gmail.com retitled this revision from to net/vlan: Shift for pri is 13 (pri mask 0xe000) not 1..
sepherosa_gmail.com updated this object.
sepherosa_gmail.com edited the test plan for this revision. (Show Details)

I plan to commit this next Monday, if no objection comes.

araujo edited edge metadata.

It looks good for me.
On Linux implementation it is also 13.

Best,

This revision is now accepted and ready to land.Aug 31 2016, 8:53 AM
hselasky added a reviewer: hselasky.
hselasky added a subscriber: hselasky.

Don't forget to MFC.

This revision was automatically updated to reflect the committed changes.
zlei added inline comments.
head/sys/net/ethernet.h
95

pri is indeed shift with 13 bits. It is left shifted 1 bit and then 12 bits.
Beware the parentheses.

Left a comment in case someone reach this confusion.