]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_acl: Set master RP index on transition to eRP
authorNir Dotan <nird@mellanox.com>
Sun, 16 Dec 2018 08:49:33 +0000 (08:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Dec 2018 23:20:34 +0000 (15:20 -0800)
commit85594e900f87f138b73a60485f2cbc1ca780928a
treec5a6afecb2a90fa75be621506d6e29a0b859ff75
parent38ad8e141b5d0f9cceca1bff74b4d6e9ce6c2b52
mlxsw: spectrum_acl: Set master RP index on transition to eRP

Bloom filter is updated on transitions from a single rule pattern,
also called master RP, to eRP table and vice versa. Since rules are
being written to or deleted from the Bloom filter on such transitions,
it is not required to keep the same eRP bank ID for the master RP.

Change master RP index assignment so it will be assigned with zero.
This is consistent with the assignment of the first available spot
that is used for allocating eRP's indices.

Signed-off-by: Nir Dotan <nird@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_erp.c