generic: ar8216: fix unknown packet flooding for ar8229/ar8236
authorChuanhong Guo <gch981213@gmail.com>
Tue, 5 May 2020 09:37:02 +0000 (17:37 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Wed, 6 May 2020 00:59:27 +0000 (08:59 +0800)
commit47f17b066259589b4a7b4181522321abf0660e18
tree905308ee86b8d44857a46a6eac2dae6ee1b5cb5f
parent4d86e2ce0686d32dec8051baafe81a179a18cdf4
generic: ar8216: fix unknown packet flooding for ar8229/ar8236

ar8229 and ar8236 don't allow unknown unicast/multicast frames and
broadcast frames to be flooded to cpu port. This isn't desired behavior
for swconfig as we treat it as a standalone switch.
Current code doesn't enable unicast frame flooding for ar8229 and uses
wrong setup for ar8236. This commit fixes both of them by enabling port
0 flooding for all unknown frames.

Fixes: FS#2848
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/generic/files/drivers/net/phy/ar8216.c
target/linux/generic/files/drivers/net/phy/ar8216.h