net_sched: prepare tcf_hashinfo_destroy() for netns support
authorWANG Cong <xiyou.wangcong@gmail.com>
Mon, 22 Feb 2016 23:57:52 +0000 (15:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Feb 2016 19:16:21 +0000 (14:16 -0500)
commit1d4150c02c5709fdfd80f10368a31867de35e72e
treea92e0f4c5d2199012a1c9135ef564640d1d10d74
parent555d5b70f1597906dc2e31085f5e70b49d03a536
net_sched: prepare tcf_hashinfo_destroy() for netns support

We only release the memory of the hashtable itself, not its
entries inside. This is not a problem yet since we only call
it in module release path, and module is refcount'ed by
actions. This would be a problem after we move the per module
hinfo into per netns in the latter patch.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-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