qosmngr: airoha: Fix QoS issue with EN7523+IFC.

When the LUT1 IFC table overflows it seems to
affect tagged TCP-based VLAN traffic and
ingress flows are not properly setup in HW NAT.
This commit is contained in:
Markus Gothe 2025-11-10 19:25:25 +01:00
parent 8fee332f4c
commit ce1b42e095

View file

@ -411,6 +411,7 @@ hw_commit_all() {
/userfs/bin/qosrule discpline Enable 0 /userfs/bin/qosrule discpline Enable 0
fi fi
if ! strings /proc/device-tree/compatible | grep -qFx econet,en7523; then
if [ -x /userfs/bin/blapi_cmd ]; then if [ -x /userfs/bin/blapi_cmd ]; then
echo 1 > /proc/ifc_send_to_ppe echo 1 > /proc/ifc_send_to_ppe
for tc in $(seq 0 7); do for tc in $(seq 0 7); do
@ -439,6 +440,14 @@ hw_commit_all() {
/userfs/bin/ifc add vip pbit $pbit /userfs/bin/ifc add vip pbit $pbit
done done
fi fi
else
if [ -x /userfs/bin/ifc ]; then
echo 1 > /proc/ifc_send_to_ppe
for pbit in $(seq 1 7); do
/userfs/bin/ifc add vip pbit $pbit
done
fi
fi
hw_nat -! > /dev/null 2>&1 hw_nat -! > /dev/null 2>&1
} }