summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPedro Tammela <pctammela@mojatatu.com>2024-01-04 21:38:10 -0300
committerDavid S. Miller <davem@davemloft.net>2024-01-07 14:58:26 +0000
commit405cd9fc6f44f7a54505019bea60de83f1c58365 (patch)
treec5b38ebf3cfa1dd88c528ed7ab09088e0ad8782e /include
parent363096a27f9087bc3a081e157b09683ff18508d4 (diff)
downloadlinux-stable-405cd9fc6f44f7a54505019bea60de83f1c58365.tar.gz
linux-stable-405cd9fc6f44f7a54505019bea60de83f1c58365.tar.bz2
linux-stable-405cd9fc6f44f7a54505019bea60de83f1c58365.zip
net/sched: simplify tc_action_load_ops parameters
Instead of using two bools derived from a flags passed as arguments to the parent function of tc_action_load_ops, just pass the flags itself to tc_action_load_ops to simplify its parameters. Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Pedro Tammela <pctammela@mojatatu.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/act_api.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/act_api.h b/include/net/act_api.h
index 447985a45ef6..e1e5e72b901e 100644
--- a/include/net/act_api.h
+++ b/include/net/act_api.h
@@ -208,8 +208,7 @@ int tcf_action_init(struct net *net, struct tcf_proto *tp, struct nlattr *nla,
struct nlattr *est,
struct tc_action *actions[], int init_res[], size_t *attr_size,
u32 flags, u32 fl_flags, struct netlink_ext_ack *extack);
-struct tc_action_ops *tc_action_load_ops(struct nlattr *nla, bool police,
- bool rtnl_held,
+struct tc_action_ops *tc_action_load_ops(struct nlattr *nla, u32 flags,
struct netlink_ext_ack *extack);
struct tc_action *tcf_action_init_1(struct net *net, struct tcf_proto *tp,
struct nlattr *nla, struct nlattr *est,