]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: b53: Do not clear existing mirrored port mask
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 5 Oct 2019 22:05:18 +0000 (15:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Oct 2019 13:55:14 +0000 (15:55 +0200)
commite0e8a2d818a839802376fcd84c753e7adb4c2c97
treeb64d92d80470ad14523398596bfb6a44bb45e713
parent4b1653ff722524a9c8fe026643d4a6a18015b367
net: dsa: b53: Do not clear existing mirrored port mask

Clearing the existing bitmask of mirrored ports essentially prevents us
from capturing more than one port at any given time. This is clearly
wrong, do not clear the bitmask prior to setting up the new port.

Reported-by: Hubert Feurstein <h.feurstein@gmail.com>
Fixes: 724982e5f53a ("net: dsa: b53: Add support for port mirroring")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c