libc/newlib/libc/sys/rtems/include/sys
kib b0250c7356 Allow to specify PCP on packets not belonging to any VLAN.
According to 802.1Q-2014, VLAN tagged packets with VLAN id 0 should be
considered as untagged, and only PCP and DEI values from the VLAN tag
are meaningful.  See for instance
https://www.cisco.com/c/en/us/td/docs/switches/connectedgrid/cg-switch-sw-master/software/configuration/guide/vlan0/b_vlan_0.html.

Make it possible to specify PCP value for outgoing packets on an
ethernet interface.  When PCP is supplied, the tag is appended, VLAN
id set to 0, and PCP is filled by the supplied value.  The code to do
VLAN tag encapsulation is refactored from the if_vlan.c and moved into
if_ethersubr.c.

Drivers might have issues with filtering VID 0 packets on
receive.  This bug should be fixed for each driver.

Reviewed by:	ae (previous version), hselasky, melifaro
Sponsored by:	Mellanox Technologies
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D14702
2018-08-24 15:00:03 +02:00
..
_bitset.h sys/sys: further adoption of SPDX licensing ID tags. 2018-08-24 15:00:03 +02:00
_cpuset.h sys/sys: further adoption of SPDX licensing ID tags. 2018-08-24 15:00:03 +02:00
_iovec.h sys: further adoption of SPDX licensing ID tags. 2018-08-24 15:00:03 +02:00
_pthreadtypes.h RTEMS: Fix _PTHREAD_MUTEX_INITIALIZER 2017-10-13 08:07:13 +02:00
_sockaddr_storage.h sys: further adoption of SPDX licensing ID tags. 2018-08-24 15:00:03 +02:00
_termios.h sys: further adoption of SPDX licensing ID tags. 2018-08-24 15:00:03 +02:00
_uio.h Move uio enums to sys/_uio.h. 2018-08-24 15:00:03 +02:00
bitset.h sys/sys: further adoption of SPDX licensing ID tags. 2018-08-24 15:00:03 +02:00
cpuset.h Fix some RTEMS CPUSET(9) macros 2017-06-07 15:46:19 +02:00
dirent.h rtems/.../dirent.h: Add alphasort() prototype 2018-03-13 09:11:47 -05:00
filio.h sys: further adoption of SPDX licensing ID tags. 2018-08-24 15:00:03 +02:00
ioccom.h Add _IOC_NEWLEN() and _IOC_NEWTYPE() macros. 2018-08-24 15:00:03 +02:00
ioctl.h sys: further adoption of SPDX licensing ID tags. 2018-08-24 15:00:03 +02:00
lock.h RTEMS: Add semaphore <sys/lock.h> functions 2017-11-30 07:00:45 +01:00
mman.h sys: further adoption of SPDX licensing ID tags. 2018-08-24 15:00:03 +02:00
param.h Increase MSIZE for RTEMS 2017-05-25 12:33:59 -04:00
socket.h sys: further adoption of SPDX licensing ID tags. 2018-08-24 15:00:03 +02:00
sockio.h Allow to specify PCP on packets not belonging to any VLAN. 2018-08-24 15:00:03 +02:00
syslimits.h Move header files 2015-07-29 12:53:53 -07:00
syslog.h sys: further adoption of SPDX licensing ID tags. 2018-08-24 15:00:03 +02:00
ttycom.h sys: further adoption of SPDX licensing ID tags. 2018-08-24 15:00:03 +02:00
ttydefaults.h sys: further adoption of SPDX licensing ID tags. 2018-08-24 15:00:03 +02:00
uio.h Move uio enums to sys/_uio.h. 2018-08-24 15:00:03 +02:00
un.h sys: further adoption of SPDX licensing ID tags. 2018-08-24 15:00:03 +02:00
utime.h Move header files 2015-07-29 12:53:53 -07:00