All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli@gmail.com>
To: Vladimir Oltean <olteanv@gmail.com>,
	"David S . Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	netdev@vger.kernel.org
Cc: Andrew Lunn <andrew@lunn.ch>, Vivien Didelot <vivien.didelot@gmail.com>
Subject: Re: [PATCH net-next] net: dsa: allow port mirroring towards foreign interfaces
Date: Fri, 5 Feb 2021 14:42:55 -0800	[thread overview]
Message-ID: <fead6d2a-3455-785a-a367-974c2e6efdf3@gmail.com> (raw)
In-Reply-To: <20210205223355.298049-1-olteanv@gmail.com>

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

  reply	other threads:[~2021-02-06  2:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-05 22:33 [PATCH net-next] net: dsa: allow port mirroring towards foreign interfaces Vladimir Oltean
2021-02-05 22:42 ` Florian Fainelli [this message]
2021-02-05 23:05   ` Vladimir Oltean
2021-02-06 23:58     ` Jakub Kicinski
2021-02-07  0:16       ` Vladimir Oltean
2021-02-07  0:43         ` Jakub Kicinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fead6d2a-3455-785a-a367-974c2e6efdf3@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=vivien.didelot@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.