aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tc_act
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2017-03-09 09:25:19 +0100
committerDavid S. Miller <davem@davemloft.net>2017-03-09 18:35:35 -0800
commita150201a70da3bcbe76c85c255c6ab2d342c3278 (patch)
tree54b647243656b0a6de134407614a3c1fc473b7b7 /include/net/tc_act
parenttcp: rename *_sequence_number() to *_seq_and_tsoff() (diff)
downloadlinux-dev-a150201a70da3bcbe76c85c255c6ab2d342c3278.tar.xz
linux-dev-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')
-rw-r--r--include/net/tc_act/tc_vlan.h5
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 */