aboutsummaryrefslogtreecommitdiffstats
path: root/package/linux-atm/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-03-20 01:21:49 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-03-20 01:21:49 +0000
commit7b7242564ad77f6ad1fe00e61a2a6929e3334c23 (patch)
tree7d1c0d93e71c54f50714b2227aef0078a55e00e9 /package/linux-atm/files
parenta2cd7b28837895cf2011a4ee02637d5e0e2fe03d (diff)
downloadupstream-7b7242564ad77f6ad1fe00e61a2a6929e3334c23.tar.gz
upstream-7b7242564ad77f6ad1fe00e61a2a6929e3334c23.tar.bz2
upstream-7b7242564ad77f6ad1fe00e61a2a6929e3334c23.zip
linux-atm: Solos card requires explicit buffer size to br2684ctl
The default send buffer size of 8192 potentially can run past the end of the buffer (skb) and trash memory. Explicitly setting a limit is required. (Patch by Philip Prindeville) SVN-Revision: 26242
Diffstat (limited to 'package/linux-atm/files')
-rwxr-xr-xpackage/linux-atm/files/br2684ctl5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/linux-atm/files/br2684ctl b/package/linux-atm/files/br2684ctl
index 929e2b887e..0c6fa9575f 100755
--- a/package/linux-atm/files/br2684ctl
+++ b/package/linux-atm/files/br2684ctl
@@ -35,12 +35,15 @@ start_daemon() {
local qos
config_get qos "$cfg" qos
+ local sendsize
+ config_get sendsize "$cfg" sendsize
+
local circuit="$atmdev.$vpi.$vci"
local pid="/var/run/br2684ctl-$circuit.pid"
start-stop-daemon -S -b -x /usr/sbin/br2684ctl -m -p "$pid" -- \
-c "$unit" -e "$encaps" -p "$payload" \
- -a "$circuit" ${qos:+-q "$qos"}
+ -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"}
}
start() {
a id='n142' href='#n142'>142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194