HomeFreeBSD

vlan: deduplicate bpf_setpcp() and pf_ieee8021q_setpcp()

Description

vlan: deduplicate bpf_setpcp() and pf_ieee8021q_setpcp()

These two fuctions were identical, so move them into the common
vlan_set_pcp() function, exposed in the if_vlan_var.h header.

Reviewed by: donner
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D31275

(cherry picked from commit 9ef8cd0b7906371803421aa897056b6fc0710fcb)

Details

Provenance
kpAuthored on Jul 22 2021, 8:35 AM
Reviewer
donner
Differential Revision
D31275: vlan: deduplicate bpf_setpcp() and pf_ieee8021q_setpcp()
Parents
rG40dfe99449af: net tests: basic test case for bpf(4)'s ability to set vlan pcp
Branches
Unknown
Tags
Unknown