forked from Ivasoft/openwrt
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>
This commit is contained in:
@@ -56,10 +56,10 @@
|
||||
#define AR8216_REG_FLOOD_MASK 0x002C
|
||||
#define AR8216_FM_UNI_DEST_PORTS BITS(0, 6)
|
||||
#define AR8216_FM_MULTI_DEST_PORTS BITS(16, 6)
|
||||
#define AR8216_FM_CPU_BROADCAST_EN BIT(26)
|
||||
#define AR8229_FLOOD_MASK_UC_DP(_p) BIT(_p)
|
||||
#define AR8229_FLOOD_MASK_MC_DP(_p) BIT(16 + (_p))
|
||||
#define AR8229_FLOOD_MASK_BC_DP(_p) BIT(25 + (_p))
|
||||
#define AR8236_FM_CPU_BROADCAST_EN BIT(26)
|
||||
#define AR8236_FM_CPU_BCAST_FWD_EN BIT(25)
|
||||
|
||||
#define AR8216_REG_GLOBAL_CTRL 0x0030
|
||||
#define AR8216_GCTRL_MTU BITS(0, 11)
|
||||
|
||||
Reference in New Issue
Block a user