All of lore.kernel.org
 help / color / mirror / Atom feed
* packets trickling out of STP-blocked ports
@ 2021-12-30 23:07 Colin Foster
  2021-12-31  0:28 ` Vladimir Oltean
  2021-12-31 10:27 ` Alexandre Belloni
  0 siblings, 2 replies; 8+ messages in thread
From: Colin Foster @ 2021-12-30 23:07 UTC (permalink / raw)
  To: netdev; +Cc: Vladimir Oltean, Alexandre Belloni, Horatiu Vultur

Hi all,

I'm not sure who all to include in this email, but I'm starting with
this list to start.

Probably obvious to those in this email list, I'm testing a VSC7512 dev
board controlled via SPI. The patches are still out-of-tree, but I
figured I'll report these findings, since they seem real.

My setup is port 0 of the 7512 is tied to a Beaglebone Black. Port 1 is
tied to my development PC. Ports 2 and 3 are tied together to test STP.

I run the commands:

ip link set eth0 up
ip link set swp[1-3] up
ip link add name br0 type bridge stp_state 1
ip link set dev swp[1-3] master br0
ip addr add 10.100.3.1/16 dev br0
ip link set dev br0 up

After running this, the STP blocks swp3, and swp1/2 are forwarding.

Periodically I see messages saying that swp2 is receiving packets with
own address as source address.

I can confirm that via ethtool that TX packets are increasing on swp3. I
believe I captured the event via tshark. A 4 minute capture showed three
non-STP packets on swp2. All three of these packets are ICMPv6 Router
Solicitation packets. 

I would expect no packets at all to egress swp3. Is this an issue that
is unique to me and my in-development configuration? Or is this an issue
with all Ocelot / Felix devices?

If this is an Ocelot thing, I can try to come up with a different test 
setup to capture more data... printing the packet when it is received,
capturing the traffic externally, capturing eth0 traffic to see if it is
coming from the kernel or being hardware-forwarded...

(side note - if there's a place where a parser for Ocelot NPI traffic is
hidden, that might eventually save me a lot of debugging in Lua)


An idea of how frequently this happens - my system has been currently up
for 3700 seconds. Eight "own address as source address" events have
happened at 66, 96, 156, 279, 509, 996, 1897, and 3699 seconds. 

Thanks, 

Colin Foster

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

end of thread, other threads:[~2022-01-01 16:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-30 23:07 packets trickling out of STP-blocked ports Colin Foster
2021-12-31  0:28 ` Vladimir Oltean
2022-01-01 16:04   ` Vladimir Oltean
2021-12-31 10:27 ` Alexandre Belloni
2021-12-31 15:06   ` Colin Foster
2021-12-31 15:17     ` Alexandre Belloni
2021-12-31 15:31       ` Andrew Lunn
2021-12-31 15:53       ` Colin Foster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.