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)
commit0998065a53d15da095e8af2396afe9766a9bfd31
tree4dd9a76ada9c8443675d1772cc32efaa35fc5251
parent90887b5fb38d01b0815b851adb8110114be2187a
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