diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2013-12-15 23:15:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-18 12:52:07 -0500 |
commit | 33be627159913b094bb578e83e9a7fdc66c10208 (patch) | |
tree | 387945e9391082d0b78890b176111a53b8897bf3 /net/sched/cls_u32.c | |
parent | d84231d3a2b20bea26327d9b83c8bd8ba55dc68c (diff) |
net_sched: act: use standard struct list_head
Currently actions are chained by a singly linked list,
therefore it is a bit hard to add and remove a specific
entry. Convert it to struct list_head so that in the
latter patch we can remove an action without finding
its head.
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_u32.c')
-rw-r--r-- | net/sched/cls_u32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c index 59e546c2ac98..492d9a6401ce 100644 --- a/net/sched/cls_u32.c +++ b/net/sched/cls_u32.c | |||
@@ -646,6 +646,7 @@ static int u32_change(struct net *net, struct sk_buff *in_skb, | |||
646 | n->ht_up = ht; | 646 | n->ht_up = ht; |
647 | n->handle = handle; | 647 | n->handle = handle; |
648 | n->fshift = s->hmask ? ffs(ntohl(s->hmask)) - 1 : 0; | 648 | n->fshift = s->hmask ? ffs(ntohl(s->hmask)) - 1 : 0; |
649 | tcf_exts_init(&n->exts); | ||
649 | 650 | ||
650 | #ifdef CONFIG_CLS_U32_MARK | 651 | #ifdef CONFIG_CLS_U32_MARK |
651 | if (tb[TCA_U32_MARK]) { | 652 | if (tb[TCA_U32_MARK]) { |