** Description changed:
+ [SRU Justification]
+
+ == Impact ==
+ The Xenial 4.4 kernel already has a patch applied which implements the
matchall filter. But in order to actually use it, iproute2 needs to pick up the
user-space
+ side of the implementation.
+
+ == Fix ==
+ Backported a patch from iproute2 upstream which adds the missing support.
Tested against the standard 4.4 and the HWE kernel in 16.04 (see testcase).
+
+ == Risk of Regression ==
+ This adds a new filter type which has to be actively selected. This should
not impact existing uses. So low.
+
+ == Testcase ==
+ ip link add dev dummy0 type dummy
+ ip link add dev dummy1 type dummy
+ ip link set dev dummy0 up
+ ip link set dev dummy1 up
+ tc qdisc add dev dummy0 handle 1: root prio
+ tc filter add dev dummy0 parent 1: matchall skip_hw action mirred egress
mirror dev dummy1
+
+ at this point, "tc filter show dev dummy0" should spit out something
+ like:
+
+ filter parent 1: protocol all pref 49152 matchall
+ filter parent 1: protocol all pref 49152 matchall handle 0x1
+ action order 1: mirred (Egress Mirror to device dummy1) pipe
+ index 1 ref 1 bind 1
+
+ and the functionality can be tested via
+
+ tcpdump -n -i dummy1 &
+ ping -I dummy0 1.2.3.4
+
+ ---
+
This is implemented in linux v4.8 by the following upstream patch:
bf3994d2ed31 ("net/sched: introduce Match-all classifier")
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=bf3994d2ed31
The backport is straightforward. It's useful in combination with clsact
qdisc (see bug #1642510).
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1642514
Title:
sched: Match-all classifier is missing in xenial
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/1642514/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs