Skip to content

Commit

Permalink
mlxsw: spectrum_acl: Implement region migration according to hints
Browse files Browse the repository at this point in the history
If the hints are returned, the migration should be started. For that to
happen, there is a need to create a second physical region in TCAM with
new ERP set by passing the hints and then move chunk by chunk,
entry by entry.

During the transition, two lookups will occur. One in old region and
another in new region. The highest priority rule will be chosen.

In an unlikely case that the migration will fail and also rollback to
original region will fail the vregion will become in bad state.
Everything will work, only no future rehash will be possible. In a
follow-up work, this can be resolved by trying to resume the rollback
in delayed work and repair the vregion.

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>
  • Loading branch information
jpirko authored and davem330 committed Feb 8, 2019
1 parent 5c661f1 commit e5e7962
Show file tree
Hide file tree
Showing 2 changed files with 268 additions and 21 deletions.

0 comments on commit e5e7962

Please sign in to comment.