net: dsa: b53: Fix egress flooding settings
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 13 Dec 2019 20:00:27 +0000 (12:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2019 00:08:09 +0000 (16:08 -0800)
commit63cc54a6f0736a432b04308a74677ab0ba8a58ee
treeef5e2e95431fbc4ea6d4d687e08ab528246bab72
parent1865a7b3471e183bca3ea59c3a6c1950cc9c48ee
net: dsa: b53: Fix egress flooding settings

There were several issues with 53568438e381 ("net: dsa: b53: Add support for port_egress_floods callback") that resulted in breaking connectivity for standalone ports:

- both user and CPU ports must allow unicast and multicast forwarding by
  default otherwise this just flat out breaks connectivity for
  standalone DSA ports
- IP multicast is treated similarly as multicast, but has separate
  control registers
- the UC, MC and IPMC lookup failure register offsets were wrong, and
  instead used bit values that are meaningful for the
  B53_IP_MULTICAST_CTRL register

Fixes: 53568438e381 ("net: dsa: b53: Add support for port_egress_floods callback")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c