net: dsa: b53: Provide number of ARL buckets
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 30 Apr 2020 18:49:09 +0000 (11:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 00:43:29 +0000 (17:43 -0700)
commite3da4038f4ca1094596a7604c6edac4a6a4f6ee9
tree8b54bd53a2866b5acc6126d83bcaa1ee8bb58b51
parent673e69a67dd63fc3b40f109d1677a5dc72185fbb
net: dsa: b53: Provide number of ARL buckets

In preparation for doing proper upper bound checking of FDB/MDB entries
being added to the ARL, provide the number of ARL buckets for each
switch chip we support. All chips have 1024 buckets, except 7278 which
has only 256.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c
drivers/net/dsa/b53/b53_priv.h