aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tc_act/tc_gact.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2017-09-25 10:58:21 +0200
committerDavid S. Miller <davem@davemloft.net>2017-09-26 20:26:45 -0700
commit3b8e9238a8d194e82f0202a5fb68a63686ebe420 (patch)
treee69c49d6e003688b9156ce971bf2c8cc4c1d4bd9 /include/net/tc_act/tc_gact.h
parentmlxsw: spectrum_acl: Propagate errors from mlxsw_afa_block_jump/continue (diff)
downloadlinux-dev-3b8e9238a8d194e82f0202a5fb68a63686ebe420.tar.xz
linux-dev-3b8e9238a8d194e82f0202a5fb68a63686ebe420.zip
net: sched: introduce helper to identify gact pass action
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>
Diffstat (limited to 'include/net/tc_act/tc_gact.h')
-rw-r--r--include/net/tc_act/tc_gact.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/tc_act/tc_gact.h b/include/net/tc_act/tc_gact.h
index 41afe1ce7b16..d979a0d48f9e 100644
--- 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);