Re: [PATCH net 1/7] mlxsw: spectrum_switchdev: Add MDB entries in prepare phase

2019-04-10 Thread Jiri Pirko
Wed, Apr 10, 2019 at 08:58:12AM CEST, ido...@mellanox.com wrote: >The driver cannot guarantee in the prepare phase that it will be able to >write an MDB entry to the device. In case the driver returned success >during the prepare phase, but then failed to add the entry in the commit >phase, a WARNI

[PATCH net 1/7] mlxsw: spectrum_switchdev: Add MDB entries in prepare phase

2019-04-09 Thread Ido Schimmel
The driver cannot guarantee in the prepare phase that it will be able to write an MDB entry to the device. In case the driver returned success during the prepare phase, but then failed to add the entry in the commit phase, a WARNING [1] will be generated by the switchdev core. Fix this by doing th