From bee7ff7cf34dfe66cf71c2e28faa1a03dbfc334c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 24 Mar 2019 12:05:56 +0100 Subject: ramips: allow packets with ttl=0 Some broken ISPs (e.g. Comcast) send DHCPv6 packets with hop limit=0. This trips up the TTL=0 check in the PPE if enabled. Signed-off-by: Felix Fietkau --- .../ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_offload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/ramips') diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_offload.c b/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_offload.c index 5f9e6a6b07..6c23bbc036 100644 --- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_offload.c +++ b/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_offload.c @@ -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)); -- cgit v1.2.3