Beginner question. DSA vs. swconfig and lan config

Hello,

We created our own router based on an NXP reference design. The processor is an NXP LS1012A and it has two MACs. One is connected to a single port which we'll use for WAN and the other goes to a Broadcom 8 port switch chip which we'll use for LAN.

I'm only focusing on the switch right now. It is loading the DSA driver for the BCM53128 and I see that the switch is found, etc.. But I can't ping, and I think it's just a config problem.

First, I don't know if I should have the switch related sections in my etc/config/network file.

config switch  switch0
        option enable 1
config switch_vlan switch0_1
        option device "switch0"
        option vlan 1
        option ports '0 1 2 3 4 5 6 7 8t'

Is that just for the swconfig model and not needed for DSA? That's the impression I get from the docs I've read.

I followed the instructions here [https://01.org/linuxgraphics/gfx-docs/drm/networking/dsa/b53.html]
to do the following.

# tag traffic on CPU port
ip link add link eth0 name eth0.1 type vlan id 1

# The master interface needs to be brought up before the slave ports.
ip link set eth0 up
ip link set eth0.1 up

# bring up the slave interfaces
ip link set wan up
ip link set lan1 up
ip link set lan2 up

# create bridge
ip link add name br0 type bridge

# activate VLAN filtering
ip link set dev br0 type bridge vlan_filtering 1

# add ports to bridge
ip link set dev wan master br0
ip link set dev lan1 master br0
ip link set dev lan2 master br0
ip link set eth0.1 master br0

# configure the bridge
ip addr add 192.0.2.129/25 dev br0

# bring up the bridge
ip link set dev br0 up

I see lots of encouraging signs when I do the steps above (br0: link becomes ready, etc.) but I still can not ping. I see the following when I ifconfig...

root@OpenWrt:/etc/config# ifconfig
br0       Link encap:Ethernet  HWaddr 00:04:9F:06:75:9F
          inet addr:192.168.1.1  Bcast:0.0.0.0  Mask:255.255.255.255
          inet6 addr: fe80::204:9fff:fe06:759f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:934 (934.0 B)

eth0      Link encap:Ethernet  HWaddr 00:04:9F:06:75:9F
          inet addr:192.168.1.1  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::204:9fff:fe06:759f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:7322 (7.1 KiB)

eth0.1    Link encap:Ethernet  HWaddr 00:04:9F:06:75:9F
          inet6 addr: fe80::204:9fff:fe06:759f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:1680 (1.6 KiB)

lan1      Link encap:Ethernet  HWaddr 00:04:9F:06:75:9F
          inet6 addr: fe80::204:9fff:fe06:759f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:2626 (2.5 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1608 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1608 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:111104 (108.5 KiB)  TX bytes:111104 (108.5 KiB)

root@OpenWrt:/etc/config#

Any help at all would be greatly appreciated,
Joel