]> git.ipfire.org Git - thirdparty/iproute2.git/commit
f_flower: Add num of vlans parameter
authorBoris Sukholitko <boris.sukholitko@broadcom.com>
Tue, 26 Apr 2022 09:14:16 +0000 (12:14 +0300)
committerDavid Ahern <dsahern@kernel.org>
Thu, 28 Apr 2022 02:16:16 +0000 (20:16 -0600)
commit5ba31bcf4463e8037dde1c5e1a13ebba1eb9dd26
tree1682a0e5069644088f4d5b8deaf4d705108b41d7
parent39888ed09935661a453f9c02244d5fd44da8e317
f_flower: Add num of vlans parameter

Our customers in the fiber telecom world have network configurations
where they would like to control their traffic according to the number
of tags appearing in the packet.

For example, TR247 GPON conformance test suite specification mostly
talks about untagged, single, double tagged packets and gives lax
guidelines on the vlan protocol vs. number of vlan tags.

This is different from the common IT networks where 802.1Q and 802.1ad
protocols are usually describe single and double tagged packet. GPON
configurations that we work with have arbitrary mix the above protocols
and number of vlan tags in the packet.

This patch adds num_of_vlans flower key and associated print and parse
routines. The following command becomes possible:

tc filter add dev eth1 ingress flower num_of_vlans 1 action drop

Signed-off-by: Boris Sukholitko <boris.sukholitko@broadcom.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
tc/f_flower.c