Is there any way to enable port mirroring on CPSW? I want to snif network traffic an AM335x and I meet issue with CPSW - it is transfer only unicast packets that addressed to AM335x host and ignore all other packets.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Andrey,
Do you mean that you need all packets that are received on one port to be transferred to the other port AND to the CPU?
Ideally yes. If this is not possibly I can replace dual-port PHY with external three-port switch with full support of port mirroring (KSZ8863 for example). But in this case I still need to receive all packets from MII_1 of AM335x.
We are trying to test this capability. Do you have the am335x EVM-SK board?
Done some more digging.
In April 2012 Mugunthan (a TI employee at the time - possibly still) says that CPSW doesn't support this feature (at least on TI814X). On being pressed further, it seems like the hardware isn't really geared up for it and the software driver doesn't (at the time) support the feature, but in theory it could be possible:
http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/183933.aspx
In January 2014, Mugunthan submits a patch that appears to add at least partial support:
http://www.spinics.net/lists/linux-omap/msg102618.html
It appears here too, but with an older date:
https://gitorious.org/am335x/linux-am33x/commit/a867d485bc895237d5690ec6ba3e536ce2796200