net: dsa: mv88e6xxx: Provide generic VTU iterator
authorTobias Waldekranz <tobias@waldekranz.com>
Thu, 18 Mar 2021 19:25:35 +0000 (20:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Mar 2021 23:24:06 +0000 (16:24 -0700)
commitd89ef4b8b39cdb88675b2629b35dc9ffdf5ca347
tree6d9ba20124d7bac3b4585d73cba4f0000ff9d02c
parentffcec3f257ccc2bf27642b9b1d97d2141f9cfcec
net: dsa: mv88e6xxx: Provide generic VTU iterator

Move the intricacies of correctly iterating over the VTU to a common
implementation.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c