]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0d29a6b7c184aa1188c91b1961a18efb3e0e25c0
treebe7d243dd84247b48439571f9dbd4859fd2f8b88
parent1fd15e80e1925cf4dbb5c3b538de93049f65ec4c
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