]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_switchdev: Schedule respin during trans prepare
authorPetr Machata <petrm@mellanox.com>
Wed, 30 May 2018 01:00:49 +0000 (03:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 May 2018 18:13:44 +0000 (14:13 -0400)
commit0738f2f2702dcb1da6784d703528f88041505b9d
tree2fb0e9846a8449afd67cd60653a5510510d278e8
parentd42bbf8c776667b26e5ffbc9dcd2a36c1d28b39c
mlxsw: spectrum_switchdev: Schedule respin during trans prepare

Since there's no special support for the bridge events, the driver
returns -EOPNOTSUPP, and thus the commit never happens. Therefore
schedule respin during the prepare stage: there's no real difference one
way or another.

This fixes the problem that mirror-to-gretap offload wouldn't adapt to
changes in bridge vlan configuration right away and another notification
would have to arrive for mlxsw to catch up.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c