Thread (21 messages) flat view 21 messages, 4 authors, 2021-09-23

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

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2021-09-23 01:58:46
Also in: lkml


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

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@nxp.com>
Signed-off-by: Xiaoliang Yang <redacted>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help