Hi,
this patchset adds a helper to make it simpler to express TC actions. The goal is not to make it fully expressive like the TC command line, but rather to abstract away tasts that are repeated over and over again in recipes.
On top of that I include a test for VLAN modify and for flower matches on 802.1q tags.
Please consider for inclusion.
Thanks, Petr Machata
Petr Machata (3): recipes: switchdev: Add Qdisc helper recipes: switchdev: tc: Add test for vlan modify action recipes: switchdev: tc: Add a test for flower vlan matching
recipes/switchdev/TestLib.py | 21 +++++++- recipes/switchdev/tc-001-action-vlan-modify.py | 44 ++++++++++++++++ recipes/switchdev/tc-001-action-vlan-modify.xml | 24 +++++++++ recipes/switchdev/tc-002-flower-vlan.py | 68 +++++++++++++++++++++++++ recipes/switchdev/tc-002-flower-vlan.xml | 24 +++++++++ 5 files changed, 180 insertions(+), 1 deletion(-) create mode 100644 recipes/switchdev/tc-001-action-vlan-modify.py create mode 100644 recipes/switchdev/tc-001-action-vlan-modify.xml create mode 100644 recipes/switchdev/tc-002-flower-vlan.py create mode 100644 recipes/switchdev/tc-002-flower-vlan.xml
On Mon, May 29, 2017 at 05:43:32PM +0200, Petr Machata wrote:
Hi,
this patchset adds a helper to make it simpler to express TC actions. The goal is not to make it fully expressive like the TC command line, but rather to abstract away tasts that are repeated over and over again in recipes.
On top of that I include a test for VLAN modify and for flower matches on 802.1q tags.
Please consider for inclusion.
Thanks, Petr Machata
Petr Machata (3): recipes: switchdev: Add Qdisc helper recipes: switchdev: tc: Add test for vlan modify action recipes: switchdev: tc: Add a test for flower vlan matching
recipes/switchdev/TestLib.py | 21 +++++++- recipes/switchdev/tc-001-action-vlan-modify.py | 44 ++++++++++++++++ recipes/switchdev/tc-001-action-vlan-modify.xml | 24 +++++++++ recipes/switchdev/tc-002-flower-vlan.py | 68 +++++++++++++++++++++++++ recipes/switchdev/tc-002-flower-vlan.xml | 24 +++++++++ 5 files changed, 180 insertions(+), 1 deletion(-) create mode 100644 recipes/switchdev/tc-001-action-vlan-modify.py create mode 100644 recipes/switchdev/tc-001-action-vlan-modify.xml create mode 100644 recipes/switchdev/tc-002-flower-vlan.py create mode 100644 recipes/switchdev/tc-002-flower-vlan.xml
-- 2.8.4 _______________________________________________ LNST-developers mailing list -- lnst-developers@lists.fedorahosted.org To unsubscribe send an email to lnst-developers-leave@lists.fedorahosted.org
set pushed, thanks
-Ondrej
lnst-developers@lists.fedorahosted.org