Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: airoha: Fix EGRESS_RATE_METER_EN_MASK definition

Fix typo in EGRESS_RATE_METER_EN_MASK mask definition. This bus in not
introducing any user visible problem since, even if we are setting
EGRESS_RATE_METER_EN_MASK bit in REG_EGRESS_RATE_METER_CFG register,
egress QoS metering is not supported yet since we are missing some other
hw configurations (e.g token bucket rate, token bucket size).

Introduced by commit 23020f049327 ("net: airoha: Introduce ethernet support
for EN7581 SoC")

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241009-airoha-fixes-v2-1-18af63ec19bf@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Lorenzo Bianconi and committed by
Jakub Kicinski
2518b119 3325964e

+1 -1
+1 -1
drivers/net/ethernet/mediatek/airoha_eth.c
··· 554 554 #define FWD_DSCP_LOW_THR_MASK GENMASK(17, 0) 555 555 556 556 #define REG_EGRESS_RATE_METER_CFG 0x100c 557 - #define EGRESS_RATE_METER_EN_MASK BIT(29) 557 + #define EGRESS_RATE_METER_EN_MASK BIT(31) 558 558 #define EGRESS_RATE_METER_EQ_RATE_EN_MASK BIT(17) 559 559 #define EGRESS_RATE_METER_WINDOW_SZ_MASK GENMASK(16, 12) 560 560 #define EGRESS_RATE_METER_TIMESLICE_MASK GENMASK(10, 0)