diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2016-02-22 15:57:52 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-25 14:16:21 -0500 |
commit | 1d4150c02c5709fdfd80f10368a31867de35e72e (patch) | |
tree | a92e0f4c5d2199012a1c9135ef564640d1d10d74 /include/net/act_api.h | |
parent | 555d5b70f1597906dc2e31085f5e70b49d03a536 (diff) | |
download | op-kernel-dev-1d4150c02c5709fdfd80f10368a31867de35e72e.zip op-kernel-dev-1d4150c02c5709fdfd80f10368a31867de35e72e.tar.gz |
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>
Diffstat (limited to 'include/net/act_api.h')
-rw-r--r-- | include/net/act_api.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/net/act_api.h b/include/net/act_api.h index 9d446f13..8c4e3ff 100644 --- a/include/net/act_api.h +++ b/include/net/act_api.h @@ -65,11 +65,6 @@ static inline int tcf_hashinfo_init(struct tcf_hashinfo *hf, unsigned int mask) return 0; } -static inline void tcf_hashinfo_destroy(struct tcf_hashinfo *hf) -{ - kfree(hf->htab); -} - /* Update lastuse only if needed, to avoid dirtying a cache line. * We use a temp variable to avoid fetching jiffies twice. */ |