diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2020-09-02 00:09:35 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-02 14:13:35 -0700 |
commit | 7e1301ed1881447d2a25f9c6423738c33cbca133 (patch) | |
tree | aa0ae8fe12420b66378109668c5209aed3432210 /net/unix/af_unix.c | |
parent | 6641a2c42b0a307b7638d10e5d4b90debc61389d (diff) |
net: dsa: rtl8366: Refactor VLAN/PVID init
The VLANs and PVIDs on the RTL8366 utilizes a "member
configuration" (MC) which is largely unexplained in the
code.
This set-up requires a special ordering: rtl8366_set_pvid()
must be called first, followed by rtl8366_set_vlan(),
else the MC will not be properly allocated. Relax this
by factoring out the code obtaining an MC and reuse
the helper in both rtl8366_set_pvid() and
rtl8366_set_vlan() so we remove this strict ordering
requirement.
In the process, add some better comments and debug prints
so people who read the code understand what is going on.
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions