Re: [patch net-next] mlxsw: acl: Fix mlxsw_afa_block_commit error path

2017-02-08 Thread David Miller
From: Jiri Pirko Date: Wed, 8 Feb 2017 10:39:16 +0100 > From: Jiri Pirko > > No rollback is needed since the chain is in consistent state and > mlxsw_afa_block_destroy() will take care of putting it away. So remove > the one we have now which is wrong. Also move the set of 'finished' flag > to

[patch net-next] mlxsw: acl: Fix mlxsw_afa_block_commit error path

2017-02-08 Thread Jiri Pirko
From: Jiri Pirko No rollback is needed since the chain is in consistent state and mlxsw_afa_block_destroy() will take care of putting it away. So remove the one we have now which is wrong. Also move the set of 'finished' flag to the beginning of the function, because the block is certainly unusab