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)
commitfa5effe7664b1606dfd639dff58686f6dbb119d7
tree988b7aab958fc5dad3a80f07ee63c59c4b2507de
parentc099ff3cdb9dd2281dee3dc4ef89fec1c516df22
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