2
0

0515-net-mediatek-fix-multicast-icmpv6-for-the-rt3050-eth.patch 1.1 KB

1234567891011121314151617181920212223242526
  1. From: Vittorio Gambaletta <openwrt@vittgam.net>
  2. Date: Mon, 02 May 2016 04:55:48 +0200
  3. Subject: [PATCH] net: mediatek: Fix multicast ICMPv6 for the rt3050 ethernet switch.
  4. The FCT2 esw register should be set to 0x2500C to have "unknown IPv6
  5. multicast" packets broadcasted to every port, instead of dropped.
  6. The previous value only let those packets go through ports 1 and 3.
  7. "Unknown IPv6 multicast" packets include packets needed by ICMPv6 echo
  8. requests addressed to well-known addresses, such as ff02::1 (MAC address
  9. is 33:33:00:00:00:01 in this case).
  10. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
  11. ---
  12. --- a/drivers/net/ethernet/mediatek/esw_rt3050.c
  13. +++ b/drivers/net/ethernet/mediatek/esw_rt3050.c
  14. @@ -450,7 +450,7 @@ static void esw_hw_init(struct rt305x_es
  15. (RT305X_ESW_PORTS_NOCPU << RT305X_ESW_POC2_UNTAG_EN_S)),
  16. RT305X_ESW_REG_POC2);
  17. - esw_w32(esw, 0x00d6500c, RT305X_ESW_REG_FCT2);
  18. + esw_w32(esw, 0x0002500c, RT305X_ESW_REG_FCT2);
  19. /* 300s aging timer, max packet len 1536, broadcast storm prevention
  20. * disabled, disable collision abort, mac xor48 hash, 10 packet back