Thread (6 messages) flat view 6 messages, 3 authors, 2021-02-07

Re: [PATCH net-next] net: dsa: allow port mirroring towards foreign interfaces

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2021-02-06 02:57:39

On 2/5/21 2:33 PM, Vladimir Oltean wrote:
From: Vladimir Oltean <vladimir.oltean@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.fainelli@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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help