net: dsa: mv88e6xxx: use mv88e6185_g1_vtu_loadpurge() for the 6250
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Mon, 25 Jan 2021 15:04:49 +0000 (16:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 27 Jan 2021 01:58:28 +0000 (17:58 -0800)
commitb28f3f3c3f30552285f4a420acb7afba2322d668
tree21e5ff4c1e0625a6904aa79fff68301cca3140cc
parent67c9ed1c8809d554082a30a1b38b460a6e8405c0
net: dsa: mv88e6xxx: use mv88e6185_g1_vtu_loadpurge() for the 6250

Apart from the mask used to get the high bits of the fid,
mv88e6185_g1_vtu_loadpurge() and mv88e6250_g1_vtu_loadpurge() are
identical. Since the entry->fid passed in should never exceed the
number of databases, we can simply use the former as-is as replacement
for the latter.

Suggested-by: Tobias Waldekranz <tobias@waldekranz.com>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/global1.h
drivers/net/dsa/mv88e6xxx/global1_vtu.c