]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita44533e8eabaabfb5c2b5475f1b0fb224b437236
tree65498ccaacdd85d3929886dbed380a858b13381d
parente2e01ade8e86c897e8fac82e7ab8968261f441b5
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