it seems that the MT7623 switch driver (or the dsa-driver) does not support promiscuous mode. No unicast packet with a non-local MAC address is forwarded to the userspace. Therefor, using the lan0-lan3 ports in a openvswitch bridge is not possible.
Is there a way to enable the promiscuous mode in the dsa driver, or is there another way to get openvswitch working?
got an answer…promiscous mode should work in current codebase (5.7, maybe earlier)
can anybody help to verify it is working? got these commands to create static arp entry for non-existent device routed to r2 (pc is connected directly to r2-lan1 here)
on router:
# assign an IP
ip addr add 10.10.10.1/24 dev lan1
# capture traffic, note that tcpdump will automatically set lan1 to promisc mode
tcpdump -nei lan1
On PC:
# assign an IP
ip addr add 10.10.10.2/24 dev enp3s0f1
# set static ARP entry for 10.10.10.3
ip neigh add 10.10.10.3 dev enp3s0f1 lladdr <some other mac addr>
# ping
ping 10.10.10.3
tcpdump on r2 should capture the ICMP echo request to the mac addr