summaryrefslogtreecommitdiffstats
path: root/include/net/pkt_cls.h
diff options
context:
space:
mode:
authorHadar Hen Zion2016-09-27 10:09:51 +0200
committerDavid S. Miller2016-09-28 11:02:44 +0200
commitfa5effe7664b1606dfd639dff58686f6dbb119d7 (patch)
tree988b7aab958fc5dad3a80f07ee63c59c4b2507de /include/net/pkt_cls.h
parentsh_eth: add R8A7743/5 support (diff)
downloadkernel-qcow2-linux-fa5effe7664b1606dfd639dff58686f6dbb119d7.tar.gz
kernel-qcow2-linux-fa5effe7664b1606dfd639dff58686f6dbb119d7.tar.xz
kernel-qcow2-linux-fa5effe7664b1606dfd639dff58686f6dbb119d7.zip
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>
Diffstat (limited to 'include/net/pkt_cls.h')
-rw-r--r--include/net/pkt_cls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
index 5ccaa4be7d96..767b03a3fe67 100644
--- a/include/net/pkt_cls.h
+++ b/include/net/pkt_cls.h
@@ -123,7 +123,7 @@ static inline void tcf_exts_to_list(const struct tcf_exts *exts,
for (i = 0; i < exts->nr_actions; i++) {
struct tc_action *a = exts->actions[i];
- list_add(&a->list, actions);
+ list_add_tail(&a->list, actions);
}
#endif
}