ramips: allow packets with ttl=0
[openwrt/staging/mkresin.git] / target / linux / ramips / files-4.14 / drivers / net / ethernet / mediatek / mtk_offload.c
index 5f9e6a6b0753f166fff6b9bb739257d2318d42d3..6c23bbc036c8271e1555b572e2de7411354ec2b3 100644 (file)
@@ -384,8 +384,8 @@ static int mtk_ppe_start(struct mtk_eth *eth)
        mtk_w32(eth, 0x55555555, MTK_REG_PPE_DFT_CPORT);
 #endif
 
-       /* drop packets with TTL=0 */
-       mtk_m32(eth, 0, MTK_PPE_GLO_CFG_TTL0_DROP, MTK_REG_PPE_GLO_CFG);
+       /* allow packets with TTL=0 */
+       mtk_m32(eth, MTK_PPE_GLO_CFG_TTL0_DROP, 0, MTK_REG_PPE_GLO_CFG);
 
        /* send all traffic from gmac to the ppe */
        mtk_m32(eth, 0xffff, 0x4444, MTK_GDMA_FWD_CFG(0));