mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
if_vlan(4): A VLAN always has a PCP and its ifnet's if_pcp should be set
to the PCP value in use instead of IFNET_PCP_NONE. MFC after: 1 week Sponsored by: Chelsio Communications
This commit is contained in:
parent
1e7bbbc54c
commit
32a52e9e39
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337943
@ -1435,6 +1435,7 @@ vlan_config(struct ifvlan *ifv, struct ifnet *p, uint16_t vid)
|
||||
ifp->if_resolvemulti = p->if_resolvemulti;
|
||||
ifp->if_addrlen = p->if_addrlen;
|
||||
ifp->if_broadcastaddr = p->if_broadcastaddr;
|
||||
ifp->if_pcp = ifv->ifv_pcp;
|
||||
|
||||
/*
|
||||
* Copy only a selected subset of flags from the parent.
|
||||
@ -1959,6 +1960,7 @@ vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
|
||||
break;
|
||||
}
|
||||
ifv->ifv_pcp = ifr->ifr_vlan_pcp;
|
||||
ifp->if_pcp = ifv->ifv_pcp;
|
||||
vlan_tag_recalculate(ifv);
|
||||
/* broadcast event about PCP change */
|
||||
EVENTHANDLER_INVOKE(ifnet_event, ifp, IFNET_EVENT_PCP);
|
||||
|
Loading…
Reference in New Issue
Block a user