]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: convert tcf_hashinfo to hlist and use spinlock
authorWANG Cong <xiyou.wangcong@gmail.com>
Mon, 16 Dec 2013 04:15:09 +0000 (20:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2013 17:52:07 +0000 (12:52 -0500)
commitd7cd286249102e2e699e29e85aaf929690bf2552
tree2c37980c3b2cc34fece254b4e15b8fb56a24cead
parent1b6cda21efc1ccf6983eeaebbf6b69ac7116f2a9
net_sched: convert tcf_hashinfo to hlist and use spinlock

So that we don't need to play with singly linked list,
and since the code is not on hot path, we can use spinlock
instead of rwlock.

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>
include/net/act_api.h
net/sched/act_api.c
net/sched/act_police.c