root@ubuntu1604:~# dpkg --list | grep iproute2
ii  iproute2                             4.3.0-1ubuntu3.16.04.4                
amd64        networking and traffic control tools
root@ubuntu1604:~# apt-get install iproute2/xenial-proposed
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Selected version '4.3.0-1ubuntu3.16.04.5' (Ubuntu:16.04/xenial-proposed 
[amd64]) for 'iproute2'
Suggested packages:
  iproute2-doc
The following packages will be upgraded:
  iproute2
1 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
Need to get 523 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 iproute2 
amd64 4.3.0-1ubuntu3.16.04.5 [523 kB]
Fetched 523 kB in 0s (6,782 kB/s)
(Reading database ... 85262 files and directories currently installed.)
Preparing to unpack .../iproute2_4.3.0-1ubuntu3.16.04.5_amd64.deb ...
Unpacking iproute2 (4.3.0-1ubuntu3.16.04.5) over (4.3.0-1ubuntu3.16.04.4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up iproute2 (4.3.0-1ubuntu3.16.04.5) ...
root@ubuntu1604:~# dpkg --list | grep iproute2
ii  iproute2                             4.3.0-1ubuntu3.16.04.5                
amd64        networking and traffic control tools
root@ubuntu1604:~# ip link add dev dummy0 type dummy
RTNETLINK answers: File exists
root@ubuntu1604:~# ip link add dev dummy1 type dummy
root@ubuntu1604:~# ip link set dev dummy0 up
root@ubuntu1604:~# ip link set dev dummy1 up
root@ubuntu1604:~# tc qdisc add dev dummy0 handle 1: root prio
root@ubuntu1604:~# tc filter add dev dummy0 parent 1: matchall skip_hw action 
mirred egress mirror dev dummy1
root@ubuntu1604:~# tc filter show dev dummy0
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

root@ubuntu1604:~#

=> test is OK.

** Tags removed: verification-needed-xenial
** Tags added: verification-done-xenial

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to iproute2 in Ubuntu.
Matching subscriptions: iproute2
https://bugs.launchpad.net/bugs/1642514

Title:
  sched: Match-all classifier is missing in xenial

Status in iproute2 package in Ubuntu:
  Fix Released
Status in linux package in Ubuntu:
  Fix Released
Status in iproute2 source package in Xenial:
  Fix Committed
Status in linux source package in Xenial:
  Fix Released

Bug description:
  [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).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/1642514/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to