]> 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)
commite27c3d205eaaee39a7df2869b3f6dea036148bc1
tree988b7aab958fc5dad3a80f07ee63c59c4b2507de
parent5fd02d731452e7129072e9600e944d1ef3ff7406
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