Files
i2som-imx-linux/drivers
Florian Fainelli 20d782f80d net: dsa: b53: Rework ARL bin logic
[ Upstream commit 6344dbde6a ]

When asking the ARL to read a MAC address, we will get a number of bins
returned in a single read. Out of those bins, there can essentially be 3
states:

- all bins are full, we have no space left, and we can either replace an
  existing address or return that full condition

- the MAC address was found, then we need to return its bin index and
  modify that one, and only that one

- the MAC address was not found and we have a least one bin free, we use
  that bin index location then

The code would unfortunately fail on all counts.

Fixes: 1da6df85c6 ("net: dsa: b53: Implement ARL add/del/dump operations")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-05-10 10:29:01 +02:00
..
2020-03-11 18:02:56 +01:00
2020-05-05 19:15:48 +02:00
2020-05-10 10:29:01 +02:00
2020-05-02 17:24:15 +02:00
2020-02-28 16:36:04 +01:00