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 01:06:17 +0000 (09:06 +0800)
commitd9244a1b5b424346f20064134680c1f0a13b46e6
tree6dd9678bed5359046043a0bc2d84e7b9fd0fe8c9
parent429e4490c4a325de5459b5d236633586be38cde7
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>
(cherry picked from commit 47f17b066259589b4a7b4181522321abf0660e18)
target/linux/generic/files/drivers/net/phy/ar8216.c
target/linux/generic/files/drivers/net/phy/ar8216.h