diff options
author | Vivien Didelot <vivien.didelot@gmail.com> | 2019-08-01 21:36:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-01 23:43:09 +0300 |
commit | b1ac6fb440d6abf77ae82667b57126c6059c7bd6 (patch) | |
tree | 999b497b6dbe89b138c9d63ec6fba230a78a2ff4 /lib/test_stackinit.c | |
parent | 5210989283c28b909e13efb61c0e298c178bb76f (diff) | |
download | linux-b1ac6fb440d6abf77ae82667b57126c6059c7bd6.tar.xz |
net: dsa: mv88e6xxx: call vtu_getnext directly in vlan_add
Wrapping mv88e6xxx_vtu_getnext makes the code less easy to read and
_mv88e6xxx_port_vlan_add is the only function requiring the preparation
of a new VLAN entry.
To simplify things up, remove the mv88e6xxx_vtu_get wrapper and
explicit the VLAN lookup in _mv88e6xxx_port_vlan_add. This rework
also avoids programming the broadcast entries again when changing a
port's membership, e.g. from tagged to untagged.
At the same time, rename the helper using an old underscore convention.
Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions