mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
vlan: do not protect PCP write with the sysctl
pf will unconditionally "set prio", so this will fail if the sysctl is off. The sysctl, however, introduces a side-effect so we would rather keep the default behaviour. The allocation slowdown is already taking place, so this in the worst case only adds a list traversal / lookup. PR: https://forum.opnsense.org/index.php?topic=6714.0
This commit is contained in:
parent
5c70e2a2a8
commit
dabc3cf4ef
1 changed files with 1 additions and 1 deletions
|
|
@ -1102,7 +1102,7 @@ vlan_transmit(struct ifnet *ifp, struct mbuf *m)
|
|||
* knows how to find the VLAN tag to use, so we attach a
|
||||
* packet tag that holds it.
|
||||
*/
|
||||
if (vlan_mtag_pcp && (mtag = m_tag_locate(m, MTAG_8021Q,
|
||||
if ((mtag = m_tag_locate(m, MTAG_8021Q,
|
||||
MTAG_8021Q_PCP_OUT, NULL)) != NULL)
|
||||
tag = EVL_MAKETAG(ifv->ifv_vid, *(uint8_t *)(mtag + 1), 0);
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue