generic: ar8216: add port mirroring
authorLuka Perkov <luka@openwrt.org>
Fri, 24 May 2013 13:10:22 +0000 (13:10 +0000)
committerLuka Perkov <luka@openwrt.org>
Fri, 24 May 2013 13:10:22 +0000 (13:10 +0000)
commite99b6ca3fff7f5c9cebbb0bfb3ca6fd542e2e045
treec326d3665e6e1f7851e00f1622b89479cc567fae
parent2a742a2e4ae513676980c2db310f1528220f412b
generic: ar8216: add port mirroring

Tested on Buffalo WZR-600DHP with ar8316 switch. Commands used to mirror both
RX and TX traffic from LAN port 1 to LAN port 4:

$ swconfig dev switch0 set enable_mirror_rx 1
$ swconfig dev switch0 set enable_mirror_tx 1
$ swconfig dev switch0 set mirror_monitor_port 4
$ swconfig dev switch0 set mirror_source_port 1

Signed-off-by: Colin Leitner <colin.leitner@googlemail.com>
Tested-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 36713
target/linux/generic/files/drivers/net/phy/ar8216.c
target/linux/generic/files/drivers/net/phy/ar8216.h