projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a52a8c
)
net: sched: introduce helper to identify gact pass action
author
Jiri Pirko
<jiri@mellanox.com>
Mon, 25 Sep 2017 08:58:21 +0000
(10:58 +0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 27 Sep 2017 03:26:45 +0000
(20:26 -0700)
Introduce a helper called is_tcf_gact_pass which could be used to
tell if the action is gact pass or not.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tc_act/tc_gact.h
patch
|
blob
|
history
diff --git
a/include/net/tc_act/tc_gact.h
b/include/net/tc_act/tc_gact.h
index 41afe1ce7b16f9b5841c6010c519470f775e9f35..d979a0d48f9e704d56ba91689c26f4dce4ad2b7d 100644
(file)
--- a/
include/net/tc_act/tc_gact.h
+++ b/
include/net/tc_act/tc_gact.h
@@
-33,6
+33,11
@@
static inline bool __is_tcf_gact_act(const struct tc_action *a, int act,
return false;
}
+static inline bool is_tcf_gact_ok(const struct tc_action *a)
+{
+ return __is_tcf_gact_act(a, TC_ACT_OK, false);
+}
+
static inline bool is_tcf_gact_shot(const struct tc_action *a)
{
return __is_tcf_gact_act(a, TC_ACT_SHOT, false);