]> git.ipfire.org Git - thirdparty/iproute2.git/commit
net:sched: add action inheritdsfield to skbedit
authorQiaobin Fu <qiaobinf@bu.edu>
Thu, 19 Jul 2018 16:07:18 +0000 (12:07 -0400)
committerDavid Ahern <dsahern@gmail.com>
Thu, 19 Jul 2018 16:17:56 +0000 (09:17 -0700)
commit697dce7b3aeeb53ba373b4aec7bc51a9939892c3
tree9d996792528339954f3a3f209a7f9559f8afa2e2
parentb05a68f721881a34975fafcfffe34a8ca31de48a
net:sched: add action inheritdsfield to skbedit

The new action inheritdsfield copies the field DS of
IPv4 and IPv6 packets into skb->priority. This enables
later classification of packets based on the DS field.

v4:
* Make tc use netlink helper functions

v3:
* Make flag represented in JSON output as a null value

v2:
* Align the output syntax with the input syntax

* Fix the style issues

Original idea by Jamal Hadi Salim <jhs@mojatatu.com>

Signed-off-by: Qiaobin Fu <qiaobinf@bu.edu>
Reviewed-by: Michel Machado <michel@digirati.com.br>
Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
tc/m_skbedit.c