Changeset 26242


Ignore:
Timestamp:
2011-03-20T02:21:49+01:00 (5 years ago)
Author:
nbd
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/linux-atm/files/br2684ctl

    r25225 r26242  
    3636        config_get qos "$cfg" qos 
    3737 
     38        local sendsize 
     39        config_get sendsize "$cfg" sendsize 
     40 
    3841        local circuit="$atmdev.$vpi.$vci" 
    3942        local pid="/var/run/br2684ctl-$circuit.pid" 
     
    4144        start-stop-daemon -S -b -x /usr/sbin/br2684ctl -m -p "$pid" -- \ 
    4245                -c "$unit" -e "$encaps" -p "$payload" \ 
    43                 -a "$circuit" ${qos:+-q "$qos"} 
     46                -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"} 
    4447} 
    4548 
Note: See TracChangeset for help on using the changeset viewer.