netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/2] net: dsa: mv88e6xxx: Add support for port mirroring
@ 2019-10-21 21:01 Iwan R Timmer
  2019-10-21 21:01 ` [PATCH net-next v2 1/2] net: dsa: mv88e6xxx: Split monitor port configuration Iwan R Timmer
  2019-10-21 21:01 ` [PATCH net-next v2 2/2] net: dsa: mv88e6xxx: Add support for port mirroring Iwan R Timmer
  0 siblings, 2 replies; 5+ messages in thread
From: Iwan R Timmer @ 2019-10-21 21:01 UTC (permalink / raw)
  To: netdev; +Cc: andrew, vivien.didelot, f.fainelli, davem, Iwan R Timmer

This patch serie add support for port mirroring in the mv88e6xx switch driver.
The first patch changes the set_egress_port function to allow different egress
ports for egress and ingress traffic. The second patch adds the actual code for
port mirroring support.

Tested on a 88E6176 with:

tc qdisc add dev wan0 clsact
tc filter add dev wan0 ingress matchall skip_sw \
	action mirred egress mirror dev lan2
tc filter add dev wan0 egress matchall skip_sw \
        action mirred egress mirror dev lan3

Changes in v2

- Support mirroring egress and ingress traffic to different ports
- Check for invalid configurations when multiple ports are mirrored

Iwan R Timmer (2):
  net: dsa: mv88e6xxx: Split monitor port configuration
  net: dsa: mv88e6xxx: Add support for port mirroring

 drivers/net/dsa/mv88e6xxx/chip.c    | 79 ++++++++++++++++++++++++++++-
 drivers/net/dsa/mv88e6xxx/chip.h    |  9 +++-
 drivers/net/dsa/mv88e6xxx/global1.c | 34 ++++++++-----
 drivers/net/dsa/mv88e6xxx/global1.h |  6 ++-
 drivers/net/dsa/mv88e6xxx/port.c    | 29 +++++++++++
 drivers/net/dsa/mv88e6xxx/port.h    |  2 +
 6 files changed, 142 insertions(+), 17 deletions(-)

-- 
2.23.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-10-23  1:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-21 21:01 [PATCH net-next v2 0/2] net: dsa: mv88e6xxx: Add support for port mirroring Iwan R Timmer
2019-10-21 21:01 ` [PATCH net-next v2 1/2] net: dsa: mv88e6xxx: Split monitor port configuration Iwan R Timmer
2019-10-23  1:06   ` Andrew Lunn
2019-10-21 21:01 ` [PATCH net-next v2 2/2] net: dsa: mv88e6xxx: Add support for port mirroring Iwan R Timmer
2019-10-23  1:18   ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).