mlxsw: spectrum_acl: Pass C-TCAM region and entry to insert function
authorIdo Schimmel <idosch@mellanox.com>
Wed, 25 Jul 2018 06:24:04 +0000 (09:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jul 2018 23:46:01 +0000 (16:46 -0700)
commita20ff8eb3f15c8adcae60fc467697b442f6267eb
treebe7d243dd84247b48439571f9dbd4859fd2f8b88
parent6d240650bcfdba2860ab2691b5fd4352105d95a0
mlxsw: spectrum_acl: Pass C-TCAM region and entry to insert function

When A-TCAM will be used together with C-TCAM, the C-TCAM code will need
to call into the eRP core in order to get an eRP for an inserted entry.

The eRP core takes an A-TCAM region as one of its arguments, so pass the
C-TCAM region to the insertion function which will later allow us to
derive the A-TCAM region, given it contains the C-TCAM one.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam.c