[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fead6d2a-3455-785a-a367-974c2e6efdf3@gmail.com>
Date: Fri, 5 Feb 2021 14:42:55 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: Vladimir Oltean <olteanv@...il.com>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, netdev@...r.kernel.org
Cc: Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>
Subject: Re: [PATCH net-next] net: dsa: allow port mirroring towards foreign
interfaces
On 2/5/21 2:33 PM, Vladimir Oltean wrote:
> From: Vladimir Oltean <vladimir.oltean@....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@...il.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
Powered by blists - more mailing lists