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>
This commit is contained in:

committed by
David S. Miller

parent
a30aad50c2
commit
a150201a70
@@ -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 */
|
||||
|
Reference in New Issue
Block a user