OSDN Git Service

mlxsw: spectrum_acl: assign vregion->region by the newly created region
authorJiri Pirko <jiri@mellanox.com>
Thu, 28 Feb 2019 06:59:20 +0000 (06:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Mar 2019 05:44:10 +0000 (21:44 -0800)
commita86838e46b1dc1f7ecc2eb769ea1966380409025
treefaa33d42225bdebfcb6139139ed7b6fcf9e784f9
parenta9550d0f075a0c59dc199c817d31354bacde9906
mlxsw: spectrum_acl: assign vregion->region by the newly created region

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

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