diff options
author | Petr Machata <petrm@mellanox.com> | 2017-03-09 09:25:19 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-09 18:35:35 -0800 |
commit | a150201a70da3bcbe76c85c255c6ab2d342c3278 (patch) | |
tree | 54b647243656b0a6de134407614a3c1fc473b7b7 /include/net/tc_act/tc_vlan.h | |
parent | a30aad50c26cac63026e5dfcc2e055ae63fe6ef7 (diff) | |
download | linux-a150201a70da3bcbe76c85c255c6ab2d342c3278.tar.gz linux-a150201a70da3bcbe76c85c255c6ab2d342c3278.tar.bz2 linux-a150201a70da3bcbe76c85c255c6ab2d342c3278.zip |
mlxsw: spectrum: Add support for vlan modify TC action
Add VLAN action offloading. Invoke it from Spectrum flower handler for
"vlan modify" actions.
Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
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_vlan.h')
-rw-r--r-- | include/net/tc_act/tc_vlan.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/tc_act/tc_vlan.h b/include/net/tc_act/tc_vlan.h index 48cca321ee6c..9690c047b6cf 100644 --- a/include/net/tc_act/tc_vlan.h +++ b/include/net/tc_act/tc_vlan.h @@ -49,4 +49,9 @@ static inline __be16 tcf_vlan_push_proto(const struct tc_action *a) return to_vlan(a)->tcfv_push_proto; } +static inline u8 tcf_vlan_push_prio(const struct tc_action *a) +{ + return to_vlan(a)->tcfv_push_prio; +} + #endif /* __NET_TC_VLAN_H */ |