diff options
| author | David S. Miller <davem@davemloft.net> | 2017-09-27 06:26:45 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-09-27 06:26:45 +0300 |
| commit | 14a0d032f4ecd9a82294665bd65b4a0480496198 (patch) | |
| tree | 4f2d21f961f2054e6205222793185e83931c17e9 /include | |
| parent | 5b52e57c3d879d4654a15c1b42ec9623b04755fb (diff) | |
| parent | b2925957ec1a9349c6ac42fc5ac95bcf0dd4a6a0 (diff) | |
| download | linux-14a0d032f4ecd9a82294665bd65b4a0480496198.tar.xz | |
Merge branch 'mlxsw-pass-gact'
Jiri Pirko says:
====================
mlxsw: Introduce support for "pass" gact action offloading
Very simple patchset adds ability for user to insert filters with "pass"
gact action and offload it. That allows scenarios like this:
$ tc filter add dev enp3s0np19 ingress protocol ip pref 10 flower skip_sw dst_ip 192.168.101.0/24 action drop
$ tc filter add dev enp3s0np19 ingress protocol ip pref 9 flower skip_sw dst_ip 192.168.101.1 action pass
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/tc_act/tc_gact.h | 5 |
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); |
