integ/utilities/platform-util
Steven Webster 01f5fdd274 Traffic control: fix TC filters for vlan sub-interface
Sometime after kernel 3.10.0-514.16.1.X, tc filter commands no longer
match 802.1q packets when the filter protocol is set to 'ip'.

This poses a problem for a consolidated (eg. infra w/ vlan over
management) interface configuration.

The tc filter will operate properly on the vlan interface, but all
traffic will go to the default qdisc (low priority) when it arrives
with a vlan tag at the sub-interface.

This commit sets the filter protocol to '802.1q' in the case of a
subinterface with a vlan tagged interface ontop of it.

Some bashate cleanup has also been done on this file.

Closes-Bug: #1807055
Change-Id: I457faa2b56bbd270c104cc0313ffe3cc1bfd4db3
Signed-off-by: Steven Webster <steven.webster@windriver.com>
2018-12-11 11:50:47 -05:00
..
centos Barbican integration into logging/patching mechanisms. 2018-11-30 13:23:13 -05:00
platform-util Python 3 compatibility: use print as a function. 2018-10-29 07:40:56 +00:00
scripts Traffic control: fix TC filters for vlan sub-interface 2018-12-11 11:50:47 -05:00