aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/soc_rt3050.c
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2020-02-06 17:11:39 +0800
committerYousong Zhou <yszhou4tech@gmail.com>2020-03-03 23:06:00 +0800
commit2408f2f08fede7c0a7390da442d164c67df152b3 (patch)
tree608c21f700ac211cdcfd5fdc48abeae4d4f03597 /target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/soc_rt3050.c
parent0493d57e04774d47921a7d2014b567455d5dc16b (diff)
downloadupstream-2408f2f08fede7c0a7390da442d164c67df152b3.tar.gz
upstream-2408f2f08fede7c0a7390da442d164c67df152b3.tar.bz2
upstream-2408f2f08fede7c0a7390da442d164c67df152b3.zip
ramips: mt7530: remove redundant global attrs for port mirroring
Global attributes enable_mirror_tx/enable_mirror_rx depend on runtime value of another global attribute mirror_source_port which just resides in the memory The same functionality can be achieved by directly setting port attribute of the same names. E.g. the following two groups of commands achieve the same thing swconfig dev switch0 set mirror_source_port 3 swconfig dev switch0 set enable_mirror_tx 1 swconfig dev switch0 set mirror_source_port 4 swconfig dev switch0 set enable_mirror_tx 1 swconfig dev switch0 port 3 set enable_mirror_tx 1 swconfig dev switch0 port 4 set enable_mirror_tx 1 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/soc_rt3050.c')
0 files changed, 0 insertions, 0 deletions