Re: [PATCH v4 net-next 2/8] net: mscc: ocelot: add MAC table write and lookup operations

From: Florian Fainelli
Date: Wed Sep 22 2021 - 21:58:46 EST




On 9/22/2021 3:51 AM, Xiaoliang Yang wrote:
From: Vladimir Oltean <vladimir.oltean@xxxxxxx>

ocelot_mact_write() can be used for directly modifying an FDB entry
situated at a given row and column, as opposed to the current
ocelot_mact_learn() which calculates the row and column indices
automatically (based on a 11-bit hash derived from the {DMAC, VID} key).

ocelot_mact_lookup() can be used to retrieve the row and column at which
an FDB entry with the given {DMAC, VID} key is found.

Signed-off-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>
Signed-off-by: Xiaoliang Yang <xiaoliang.yang_1@xxxxxxx>

Reviewed-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
--
Florian