OSDN Git Service

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)
commitdd97d85f1e4daaa86d7a2813d718b91e5261df57
treec5a6afecb2a90fa75be621506d6e29a0b859ff75
parent135fd957288ed5f6a4ae490373a7910b3e7f7722
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