summaryrefslogtreecommitdiff
path: root/lib/mpi/longlong.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2020-04-20 20:26:54 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-10 10:29:01 +0200
commit20d782f80db489769e8f689e2dd8b949b796634d (patch)
tree4aa2c875a2f5fb1625459595a4a9bf484eb263a4 /lib/mpi/longlong.h
parente6b43bda86caffea0453c6d3abb0fe55a7860b31 (diff)
net: dsa: b53: Rework ARL bin logic
[ Upstream commit 6344dbde6a27d10d16246d734b968f84887841e2 ] 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: 1da6df85c6fb ("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>
Diffstat (limited to 'lib/mpi/longlong.h')
0 files changed, 0 insertions, 0 deletions