Summary: | No vlan tagged output after upgrade to ALPHA2 | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Alexander Mishin <mishin> | ||||
Component: | kern | Assignee: | Navdeep Parhar <np> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Many People | CC: | np | ||||
Priority: | --- | Keywords: | regression | ||||
Version: | CURRENT | ||||||
Hardware: | amd64 | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Alexander Mishin
2018-08-21 06:31:46 UTC
"ifconfig re0 -vlanhwtag" of course. Can't find how to 'quick edit' it Created attachment 196500 [details]
patch which reverts a change in r337932
This patch to ALPHA3 reverts a change to sys/net/if_vlan.c in r337932. It was tested on an amd64 system with a realtek NIC using the re driver.
(In reply to gitdev from comment #2) The patch reverts r337943 and doesn't seem to have anything to do with r337932. r337943 is confusing ether_output_frame. I will either revert said revision or adjust ether_output_frame. This should fix it. I'll commit as soon as I have reviewer's and re@'s approval. https://reviews.freebsd.org/D16887 A commit references this bug: Author: np Date: Fri Aug 24 21:48:13 UTC 2018 New revision: 338305 URL: https://svnweb.freebsd.org/changeset/base/338305 Log: Unbreak VLANs after r337943. ether_set_pcp should not be called from ether_output_frame for VLAN interfaces -- the vid + pcp will be inserted during vlan_transmit in that case. r337943 sets the VLAN's ifnet's if_pcp to a proper PCP value and this led to double encapsulation (once with vid 0 and second time with vid+pcp). PR: 230794 Reviewed by: kib@ Approved by: re@ (gjb@) Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D16887 Changes: head/sys/net/if_ethersubr.c Patched r338303 with np's r338305. amd64 with RealTek nic and vlan works. Fixed with 12.0-ALPHA3 #6 r338309. Thanks. |