]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: pkt_cls: change tc actions order to be as the user sets
authorHadar Hen Zion <hadarh@mellanox.com>
Tue, 27 Sep 2016 08:09:51 +0000 (11:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Sep 2016 09:02:44 +0000 (05:02 -0400)
commit5ae329cf64f068fcd895dbe2b96c162280f9204c
tree988b7aab958fc5dad3a80f07ee63c59c4b2507de
parent431ce8ff75b117f0df4df7a1e65c622d6eee4d9d
net/sched: pkt_cls: change tc actions order to be as the user sets

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.

This patch doesn't affect dump actions behavior.
For dumping, action->order parameter is used so the list order doesn't
matter.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h