mlxsw: spectrum_acl: Remember where to continue rehash migration
authorJiri Pirko <jiri@mellanox.com>
Thu, 28 Feb 2019 06:59:26 +0000 (06:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Mar 2019 05:44:11 +0000 (21:44 -0800)
commit6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf
tree65498ccaacdd85d3929886dbed380a858b13381d
parentc9c9af91f1d9a636aecc55302c792538e549a430
mlxsw: spectrum_acl: Remember where to continue rehash migration

Store pointer to vchunk where the migration was interrupted, as well as
ventry pointer to start from and to stop at (during rollback). This
saved pointers need to be forgotten in case of ventries list or vchunk
list changes, which is done by couple of "changed" helpers.

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