Skip to content

Commit

Permalink
net: sched: introduce helper to identify gact pass action
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
jpirko authored and davem330 committed Sep 27, 2017
1 parent 2a52a8c commit 3b8e923
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/net/tc_act/tc_gact.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3b8e923

Please sign in to comment.