[PATCH iproute2-next v4] net:sched: add action inheritdsfield to skbedit

2018-07-19 Thread Qiaobin Fu
tax with the input syntax * Fix the style issues Original idea by Jamal Hadi Salim Signed-off-by: Qiaobin Fu Reviewed-by: Michel Machado Reviewed-by: Cong Wang Reviewed-by: Marcelo Ricardo Leitner Reviewed-by: Stephen Hemminger Reviewed-by: David Ahern --- Note that the motivation for t

[PATCH iproute2-next v3] net:sched: add action inheritdsfield to skbedit

2018-07-14 Thread Qiaobin Fu
yle issues Original idea by Jamal Hadi Salim Signed-off-by: Qiaobin Fu Reviewed-by: Michel Machado Reviewed-by: Cong Wang Reviewed-by: Marcelo Ricardo Leitner Reviewed-by: Stephen Hemminger --- Note that the motivation for this patch is found in the following discussion: https://www.spinics.

[PATCH iproute2-next v2] net:sched: add action inheritdsfield to skbedit

2018-07-12 Thread Qiaobin Fu
-by: Qiaobin Fu Reviewed-by: Michel Machado Reviewed-by: Cong Wang --- Note that the motivation for this patch is found in the following discussion: https://www.spinics.net/lists/netdev/msg501061.html --- tc/m_skbedit.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) d

[PATCH iproute2-next] net:sched: add action inheritdsfield to skbedit

2018-07-08 Thread Qiaobin Fu
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. Original idea by Jamal Hadi Salim Signed-off-by: Qiaobin Fu Reviewed-by: Michel Machado --- Note that the motivation for t

[PATCH v2 iproute2] net:sched: add action inheritdsfield to skbedit

2018-07-07 Thread Qiaobin Fu
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. v2: *Use optional flags, so that it won't break old versions of tc. Original idea by Jamal Hadi Salim Signed-off-by: Qi

[PATCH v5 net-next] net:sched: add action inheritdsfield to skbedit

2018-07-01 Thread Qiaobin Fu
ure flags. v3: *Use optional flags, so that it won't break old versions of tc. *Allow users to set both SKBEDIT_F_PRIORITY and SKBEDIT_F_INHERITDSFIELD flags. v2: *Fix the style issue *Move the code from skbmod to skbedit Original idea by Jamal Hadi Salim Signed-off-by: Qiaobin Fu Rev