[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <19723e0f-50b0-77fa-2884-c5bb6e182df9@mojatatu.com>
Date: Sun, 25 Sep 2016 10:39:03 -0400
From: Jamal Hadi Salim <jhs@...atatu.com>
To: Hadar Hen Zion <hadarh@...lanox.com>,
"David S. Miller" <davem@...emloft.net>
Cc: netdev@...r.kernel.org, Cong Wang <xiyou.wangcong@...il.com>,
Or Gerlitz <ogerlitz@...lanox.com>
Subject: Re: [PATCH net-next] net/sched: pkt_cls: change tc actions order to
be as the user sets
On 16-09-25 10:08 AM, Hadar Hen Zion wrote:
> Currently the created tc actions list is reversed against the order
> set by the user.
> Change the actions list order to be the same as was set by the user.
>
Did something break? It seems to matter most for dumping. But even that
didnt breaking. Looking at the latest net tree, i tried:
====
sudo $TC filter add dev $ETH parent 1: protocol ip prio 10 u32 \
match ip protocol 1 0xff flowid 1:2 \
action skbedit prio 33 \
action ife encode type 0xDEAD \
use mark 12 allow prio dst 02:15:15:15:15:15
Then I dump:
=====
jhs@...-foobar:~$ sudo $TC -s filter ls dev $ETH parent 1: protocol ip
filter pref 10 u32
filter pref 10 u32 fh 800: ht divisor 1
filter pref 10 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:2
(rule hit 12 success 2)
match 00010000/00ff0000 at 8 (success 2 )
action order 1: skbedit priority :33
index 2 ref 1 bind 1 installed 604 sec used first 589 sec last 583 sec
Action statistics:
Sent 196 bytes 2 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
action order 2: ife encode action pipe type 0xDEAD
use mark 12 allow prio dst 02:15:15:15:15:15
index 2 ref 1 bind 1 installed 604 sec used first 589 sec last 583 sec
Action statistics:
Sent 196 bytes 2 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
-----
cheers,
jamal
Powered by blists - more mailing lists