mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-18 03:42:28 +02:00
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) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26242 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d531cb04e9
commit
7e17f34e6d
@ -35,12 +35,15 @@ start_daemon() {
|
|||||||
local qos
|
local qos
|
||||||
config_get qos "$cfg" qos
|
config_get qos "$cfg" qos
|
||||||
|
|
||||||
|
local sendsize
|
||||||
|
config_get sendsize "$cfg" sendsize
|
||||||
|
|
||||||
local circuit="$atmdev.$vpi.$vci"
|
local circuit="$atmdev.$vpi.$vci"
|
||||||
local pid="/var/run/br2684ctl-$circuit.pid"
|
local pid="/var/run/br2684ctl-$circuit.pid"
|
||||||
|
|
||||||
start-stop-daemon -S -b -x /usr/sbin/br2684ctl -m -p "$pid" -- \
|
start-stop-daemon -S -b -x /usr/sbin/br2684ctl -m -p "$pid" -- \
|
||||||
-c "$unit" -e "$encaps" -p "$payload" \
|
-c "$unit" -e "$encaps" -p "$payload" \
|
||||||
-a "$circuit" ${qos:+-q "$qos"}
|
-a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"}
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
|
Loading…
Reference in New Issue
Block a user