netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mv88e6320: Failed to forward PTP multicast
@ 2023-05-04 18:39 Fabio Estevam
  2023-05-04 19:21 ` Andrew Lunn
  0 siblings, 1 reply; 21+ messages in thread
From: Fabio Estevam @ 2023-05-04 18:39 UTC (permalink / raw)
  To: Andrew Lunn, Vladimir Oltean, Florian Fainelli, Steffen Bätz; +Cc: netdev

Hi,

We are running kernel 6.1.26 on an imx8mn-based board with a Marvell
mv88e6320 switch.

eth1 and eth2 are the mv88e6320 ports. We connect a PTP sync source to eth1
and we notice that after setting up vlan_filtering on a bridge, the PTP
packets are no longer forwarded by the switch.

Below is the networking setup.

It does not matter if we assign an IP and sniff on the br0 or on the veth2,
PTP multicast is not appearing. Some multicast like ARP does come through.
Flags on br0: multicast_snooping = 1, mcast_flood  =1, mcast_router = 1

Any ideas as to how we can get the PTP packets to be forwarded?

Thanks,

Fabio Estevam

# Add bridge
ip link add name br0 type bridge
sleep 1

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

# Add veth pairs
 ip link add veth1 type veth peer name veth2

sleep 1
# Set Interfaces to be part of the bridge
ip link set eth1 master br0
ip link set eth2 master br0
ip link set veth1 master br0

sleep 1
# Bring down interfaces
ip link set eth1 down
ip link set eth2 down

sleep 1
# Bring up interfaces
ip link set br0 up
ip link set veth1 up
ip link set veth2 up
ip link set eth1 up
ip link set eth2 up

sleep 1
ip addr add 192.168.0.1/24 dev veth2

tcpdump -i veth2 dst port 319 or dst port 320

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2023-05-17 21:42 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-04 18:39 mv88e6320: Failed to forward PTP multicast Fabio Estevam
2023-05-04 19:21 ` Andrew Lunn
2023-05-04 19:40   ` Fabio Estevam
2023-05-04 19:55     ` Andrew Lunn
2023-05-05 11:27     ` Fabio Estevam
2023-05-05 13:02       ` Andrew Lunn
2023-05-05 14:03         ` Fabio Estevam
2023-05-10 14:05         ` Fabio Estevam
2023-05-10 18:28           ` Vladimir Oltean
2023-05-11 11:03             ` Fabio Estevam
2023-05-11 11:46               ` Vladimir Oltean
2023-05-16 14:12                 ` Fabio Estevam
2023-05-16 16:29                   ` Andrew Lunn
2023-05-17 16:51                     ` Vladimir Oltean
2023-05-10 21:34           ` Tobias Waldekranz
2023-05-11 11:16             ` Fabio Estevam
2023-05-11 11:56               ` Tobias Waldekranz
2023-05-16 18:10                 ` Fabio Estevam
2023-05-17 16:53                   ` Vladimir Oltean
2023-05-17 17:07                     ` Andrew Lunn
2023-05-17 21:42                       ` Tobias Waldekranz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).