mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net_sched: act: fetch hinfo from a->ops->hinfo
Every action ops has a pointer to hash info, so we don't need to hard-code it in each module. 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>
This commit is contained in:
parent
75e4364f67
commit
c779f7af99
11 changed files with 53 additions and 60 deletions
|
@ -103,10 +103,10 @@ int tcf_hash_release(struct tcf_common *p, int bind,
|
|||
struct tcf_hashinfo *hinfo);
|
||||
u32 tcf_hash_new_index(struct tcf_hashinfo *hinfo);
|
||||
struct tcf_common *tcf_hash_check(u32 index, struct tc_action *a,
|
||||
int bind, struct tcf_hashinfo *hinfo);
|
||||
int bind);
|
||||
struct tcf_common *tcf_hash_create(u32 index, struct nlattr *est,
|
||||
struct tc_action *a, int size,
|
||||
int bind, struct tcf_hashinfo *hinfo);
|
||||
int bind);
|
||||
void tcf_hash_insert(struct tcf_common *p, struct tcf_hashinfo *hinfo);
|
||||
|
||||
int tcf_register_action(struct tc_action_ops *a);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue