]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_flower: Do not stop at FLOW_ACTION_VLAN_MANGLE
authorPetr Machata <petrm@mellanox.com>
Sun, 5 Apr 2020 06:50:22 +0000 (09:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Apr 2020 17:14:00 +0000 (10:14 -0700)
commit04fd21d3f38bec6ee82c772cf924ebc8c3bc2ba3
tree5c37b95e4e40d8cc3c4cebadc00ee190212989de
parent5e8041fbfc3cb8e9ebe46e45f2f391f69e14ddab
mlxsw: spectrum_flower: Do not stop at FLOW_ACTION_VLAN_MANGLE

The handler for FLOW_ACTION_VLAN_MANGLE ends by returning whatever the
lower-level function that it calls returns. If there are more actions lined
up after this action, those are never offloaded. Fix by only bailing out
when the called function returns an error.

Fixes: 71640a0f1f23 ("mlxsw: spectrum: Add support for vlan modify TC action")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c