** Also affects: linux (Ubuntu Zesty)
   Importance: Undecided
       Status: Incomplete

** Also affects: linux (Ubuntu Aa-series)
   Importance: Undecided
       Status: New

** Changed in: linux (Ubuntu Aa-series)
       Status: New => Fix Released

** Changed in: linux (Ubuntu Zesty)
       Status: Incomplete => Fix Committed

** Changed in: linux (Ubuntu Zesty)
     Assignee: (unassigned) => Tim Gardner (timg-tpi)

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

Title:
  [zesty] net sched actions - Adding support for user cookies

Status in linux package in Ubuntu:
  Fix Committed
Status in linux source package in Zesty:
  Fix Committed
Status in linux source package in aa-series:
  Fix Released

Bug description:
  Adding optional 128-bit action cookie.
  The idea is to save user state that when retrieved serves as a correlator. 
The kernel _should not_ interpret it.  The user can store whatever they wish in 
the 128 bits like persistent data, http or existing kernel fib protocol field, 
etc.


  Sample exercise(showing variable length use of cookie)

  .. create an accept action with cookie a1b2c3d4
  sudo $TC actions add action ok index 1 cookie a1b2c3d4

  .. dump all gact actions..
  sudo $TC -s actions ls action gact

      action order 0: gact action pass
       random type none pass val 0
       index 1 ref 1 bind 0 installed 5 sec used 5 sec
      Action statistics:
      Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
      backlog 0b 0p requeues 0
      cookie a1b2c3d4

  .. bind the accept action to a filter..
  sudo $TC filter add dev lo parent ffff: protocol ip prio 1 \
  u32 match ip dst 127.0.0.1/32 flowid 1:1 action gact index 1

  ... send some traffic..
  $ ping 127.0.0.1 -c 3
  PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
  64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.020 ms
  64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.027 ms
  64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.038 ms

  
  upstream Commits 
  1045ba7 net sched actions: Add support for user cookies
  37f1c63 net sched actions: do not overwrite status of action creation.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1674087/+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