Skip to content

Commit

Permalink
ipq807x: Moved to a separate file the misc fixes (fix NAT Loopback wi…
Browse files Browse the repository at this point in the history
…th ECM enabled and threaded network backlog processing) to make them apply right after the network service is started (start=20)
  • Loading branch information
AgustinLorenzo committed May 2, 2023
1 parent e789100 commit 9c20f0e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
33 changes: 33 additions & 0 deletions target/linux/ipq807x/base-files/etc/init.d/misc_fixes
@@ -0,0 +1,33 @@
#!/bin/sh /etc/rc.common

START=21

start() {

# Enabled threaded network backlog processing

echo 1 > /proc/sys/net/core/backlog_threaded

# Enabled "hairpin_mode" in LANs ports of br-lan for fix NAT Loopback with ECM enabled, by the default the value for the radios WIFI is 1, so I don't touch it

for i in `ls -1d /sys/class/net/br-lan/brif/lan*`
do
echo 1 > $i/hairpin_mode
done

}

stop() {

# Disabled threaded network backlog processing

echo 0 > /proc/sys/net/core/backlog_threaded

# Disabled "hairpin_mode" in LANs ports of br-lan for fix NAT Loopback with ECM disabled, by the default the value for the radios WIFI is 1, so I don't touch it

for i in `ls -1d /sys/class/net/br-lan/brif/lan*`
do
echo 0 > $i/hairpin_mode
done

}
3 changes: 0 additions & 3 deletions target/linux/ipq807x/base-files/etc/init.d/smp_affinity
Expand Up @@ -18,9 +18,6 @@ enable_affinity_ipq807x(){
set_affinity 'wbm2host-tx-completions-ring1' 2
set_affinity 'wbm2host-tx-completions-ring2' 4
set_affinity 'wbm2host-tx-completions-ring3' 8

# Enable threaded network backlog processing
echo 1 > /proc/sys/net/core/backlog_threaded
}

boot() {
Expand Down

0 comments on commit 9c20f0e

Please sign in to comment.