freebsd-nq/sbin/ifconfig
Konstantin Belousov f137973487 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-03-27 15:29:32 +00:00
..
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
af_inet6.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
af_inet.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
af_link.c Allow to specify PCP on packets not belonging to any VLAN. 2018-03-27 15:29:32 +00:00
af_nd6.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
carp.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ifbridge.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ifclone.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
ifconfig.8 Document in ifconfig(8) that gre(4) accepts tunnel commands 2017-04-29 15:35:30 +00:00
ifconfig.c Allow to specify PCP on packets not belonging to any VLAN. 2018-03-27 15:29:32 +00:00
ifconfig.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
iffib.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ifgif.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ifgre.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ifgroup.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ifieee80211.c Extend SSID maximum string length to 32 chars to support longer SSID 2018-03-16 16:56:56 +00:00
ifipsec.c Merge projects/ipsec into head/. 2017-02-06 08:49:57 +00:00
iflagg.c Various Coverity fixes in ifconfig(8) 2017-05-03 17:21:01 +00:00
ifmac.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ifmedia.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
ifpfsync.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ifvlan.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
ifvxlan.c Add support for IPv6 scoped addresses to vxlan 2017-12-30 04:03:53 +00:00
Makefile Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
sfp.c ifconfig(8): Display extended compliance code string for SFP transceivers 2017-12-05 18:42:07 +00:00