]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_acl: assign vchunk->chunk by the newly created chunk
authorJiri Pirko <jiri@mellanox.com>
Thu, 28 Feb 2019 06:59:21 +0000 (06:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Mar 2019 05:44:10 +0000 (21:44 -0800)
commitde0199c95d70b712e3bd620ce57e5ac4623900ea
tree3ecf137c903698870850165562cd9d3cb6f2ae50
parent0c13bf44fc63f233beb8b4c83da3d51f23156c1e
mlxsw: spectrum_acl: assign vchunk->chunk by the newly created chunk

Make the vchunk->chunk contain pointer of a new chunk we migrate to.
In case of a rollback, it contains the original chunk.

Signed-off-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_acl_tcam.c