Commit 2ac06347 authored by Jamal Hadi Salim's avatar Jamal Hadi Salim Committed by David S. Miller

net: sched: act_police method rename for grep-ability and consistency

Signed-off-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6a2b401c
...@@ -56,7 +56,7 @@ struct tc_police_compat { ...@@ -56,7 +56,7 @@ struct tc_police_compat {
static unsigned int police_net_id; static unsigned int police_net_id;
static struct tc_action_ops act_police_ops; static struct tc_action_ops act_police_ops;
static int tcf_act_police_walker(struct net *net, struct sk_buff *skb, static int tcf_police_walker(struct net *net, struct sk_buff *skb,
struct netlink_callback *cb, int type, struct netlink_callback *cb, int type,
const struct tc_action_ops *ops, const struct tc_action_ops *ops,
struct netlink_ext_ack *extack) struct netlink_ext_ack *extack)
...@@ -73,7 +73,7 @@ static const struct nla_policy police_policy[TCA_POLICE_MAX + 1] = { ...@@ -73,7 +73,7 @@ static const struct nla_policy police_policy[TCA_POLICE_MAX + 1] = {
[TCA_POLICE_RESULT] = { .type = NLA_U32 }, [TCA_POLICE_RESULT] = { .type = NLA_U32 },
}; };
static int tcf_act_police_init(struct net *net, struct nlattr *nla, static int tcf_police_init(struct net *net, struct nlattr *nla,
struct nlattr *est, struct tc_action **a, struct nlattr *est, struct tc_action **a,
int ovr, int bind, bool rtnl_held, int ovr, int bind, bool rtnl_held,
struct netlink_ext_ack *extack) struct netlink_ext_ack *extack)
...@@ -203,7 +203,7 @@ static int tcf_act_police_init(struct net *net, struct nlattr *nla, ...@@ -203,7 +203,7 @@ static int tcf_act_police_init(struct net *net, struct nlattr *nla,
return err; return err;
} }
static int tcf_act_police(struct sk_buff *skb, const struct tc_action *a, static int tcf_police_act(struct sk_buff *skb, const struct tc_action *a,
struct tcf_result *res) struct tcf_result *res)
{ {
struct tcf_police *police = to_police(a); struct tcf_police *police = to_police(a);
...@@ -267,7 +267,7 @@ static int tcf_act_police(struct sk_buff *skb, const struct tc_action *a, ...@@ -267,7 +267,7 @@ static int tcf_act_police(struct sk_buff *skb, const struct tc_action *a,
return police->tcf_action; return police->tcf_action;
} }
static int tcf_act_police_dump(struct sk_buff *skb, struct tc_action *a, static int tcf_police_dump(struct sk_buff *skb, struct tc_action *a,
int bind, int ref) int bind, int ref)
{ {
unsigned char *b = skb_tail_pointer(skb); unsigned char *b = skb_tail_pointer(skb);
...@@ -335,10 +335,10 @@ static struct tc_action_ops act_police_ops = { ...@@ -335,10 +335,10 @@ static struct tc_action_ops act_police_ops = {
.kind = "police", .kind = "police",
.type = TCA_ID_POLICE, .type = TCA_ID_POLICE,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.act = tcf_act_police, .act = tcf_police_act,
.dump = tcf_act_police_dump, .dump = tcf_police_dump,
.init = tcf_act_police_init, .init = tcf_police_init,
.walk = tcf_act_police_walker, .walk = tcf_police_walker,
.lookup = tcf_police_search, .lookup = tcf_police_search,
.delete = tcf_police_delete, .delete = tcf_police_delete,
.size = sizeof(struct tcf_police), .size = sizeof(struct tcf_police),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment