ar71xx: ag71xx: preserve port mirror flags during swconfig apply
authorMilan Krstic <milan.krstic@gmail.com>
Sun, 20 Jan 2019 11:44:37 +0000 (12:44 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 22 Jan 2019 08:05:59 +0000 (09:05 +0100)
commit39ede7bc67bbb54ae1645fba9f6b7a2bcc9b8c0f
tree600f6bc6883b53b9703c7625cd6657ea70af2182
parent76a629ee35d6f3b0d428acc2674fa49caddf3745
ar71xx: ag71xx: preserve port mirror flags during swconfig apply

The swconfig load operation always triggers 'apply' function which in
this driver currently clears port mirroring flags effectively undoing
port mirroring configuration.

This fix preserves port mirroring flags during apply.

Signed-off-by: Milan Krstic <milan.krstic@gmail.com>
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ar7240.c