]> git.proxmox.com Git - mirror_iproute2.git/commit
taprio: Add support for cycle_time and cycle_time_extension
authorVinicius Costa Gomes <vinicius.gomes@intel.com>
Mon, 29 Apr 2019 22:52:19 +0000 (15:52 -0700)
committerDavid Ahern <dsahern@gmail.com>
Sat, 4 May 2019 16:22:15 +0000 (09:22 -0700)
commit92f4b6032e7971d9b0247d7370c08cae2f1c58f9
treec8a03c3e638a7851a5a08d63587434e803fc06f9
parent602fae856d80bbaa365fd0421e3f2c2417ea804f
taprio: Add support for cycle_time and cycle_time_extension

This allows a cycle-time and a cycle-time-extension to be specified.

Specifying a cycle-time will truncate that cycle, so when that instant
is reached, the cycle will start from its beginning.

A cycle-time-extension may cause the last entry of a cycle, just
before the start of a new schedule (the base-time of the "admin"
schedule) to be extended by at maximum "cycle-time-extension"
nanoseconds. The idea of this feauture, as described by the IEEE
802.1Q, is too avoid too narrow gate states.

Example:

tc qdisc change dev IFACE parent root handle 100 taprio \
      sched-entry S 0x1 1000000 \
      sched-entry S 0x0 2000000 \
      sched-entry S 0x1 3000000 \
      sched-entry S 0x0 4000000 \
      cycle-time-extension 100000 \
      cycle-time 9000000 \
      base-time 12345678900000000

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
tc/q_taprio.c