On 2/5/21 2:33 PM, Vladimir Oltean wrote:
> From: Vladimir Oltean <vladimir.olt...@nxp.com>
> 
> To a DSA switch, port mirroring towards a foreign interface is the same
> as mirroring towards the CPU port, since all non-DSA interfaces are
> reachable through that. Tell the hardware to send the packets to the CPU
> port and let the mirred action deal with them in software.

Reviewed-by: Florian Fainelli <f.faine...@gmail.com>

How does the mirred action deal with that case? How does it know that
packets delivered to the DSA master should be sent towards a foreign
address, do I need to set-up two mirred rules? One that set-ups the
filter on say sw0p0 to redirect egress to eth0 (DSA master) and another
one to ingress filter on eth0 and egress mirror to eth1 (USB ethernet
dongle)?
-- 
Florian

Reply via email to