aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_api.c
diff options
context:
space:
mode:
authorJiri Pirko <[email protected]>2017-08-04 12:28:58 +0000
committerDavid S. Miller <[email protected]>2017-08-04 18:21:23 +0000
commit3bcc0cec818fa969fe555b44443347211ed787a3 (patch)
treedc098e58871f221b46f01c33de9d12a02ae4a5a0 /net/sched/cls_api.c
parentnet: sched: remove unneeded tcf_em_tree_change (diff)
downloadkernel-3bcc0cec818fa969fe555b44443347211ed787a3.tar.gz
kernel-3bcc0cec818fa969fe555b44443347211ed787a3.zip
net: sched: change names of action number helpers to be aligned with the rest
The rest of the helpers are named tcf_exts_*, so change the name of the action number helpers to be aligned. While at it, change to inline functions. Signed-off-by: Jiri Pirko <[email protected]> Acked-by: Jamal Hadi Salim <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/sched/cls_api.c')
-rw-r--r--net/sched/cls_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 39da0c5801c9..287ae6cbf73b 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -972,7 +972,7 @@ int tcf_exts_get_dev(struct net_device *dev, struct tcf_exts *exts,
const struct tc_action *a;
LIST_HEAD(actions);
- if (tc_no_actions(exts))
+ if (!tcf_exts_has_actions(exts))
return -EINVAL;
tcf_exts_to_list(exts, &actions);