Good idea. We can actually do that with only two ports. Disable flooding on port A, check packets with DMAC A don't egress the port. Inject a packet with SMAC A through port A, check packets with DMAC A egress the port.
Hi Ido
You could do it like that. But that is more testing that you can disable flooding. And how often do users do that?
What does your marketing department tell you about typical users of your switches? For DSA, we typically have 4 or 5 ports. 4 of those ports are typically in one bridge, and the remaining port is used alone. That is the sort of setup i test in DSA. Your switches typically have 40 ports? Do your users setup 20 bridges each with two ports?
I would test the use cases which people actually use. I expect people setup a bridge with multiple ports, and they send traffic without changing any defaults. So that setup is what i would test.
Andrew -- To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html