Intel Atom D2500 1.66GHz
OpenBSD i386 v6.1-stable

I can't get pf to give me the queue bandwidths that I specify in pf.conf.

pf.conf:

queue rootq on $ext_if bandwidth 9M max 9M qlimit 100
        queue qdef parent rootq bandwidth 3650K default
        queue qrtp parent rootq bandwidth 350K min 350K burst 700K for 200ms
        queue qweb parent rootq bandwidth 4M
        queue qpri parent rootq bandwidth 900K min 50K burst 1800K for 200ms
        queue qdns parent rootq bandwidth 100K min 10K burst 200K for 1000ms

output of pfctl -srules:

queue rootq on bge0 bandwidth 9M, max 9M qlimit 100
queue qdef parent rootq bandwidth 3M default qlimit 50
queue qrtp parent rootq bandwidth 350K, min 350K burst 700K for 200ms qlimit 50
queue qweb parent rootq bandwidth 4M qlimit 50
queue qpri parent rootq bandwidth 900K, min 50K burst 1M for 200ms qlimit 50
queue qdns parent rootq bandwidth 100K, min 10K burst 200K for 1000ms qlimit 50

Discrepancies in the above:

                defined         actual
                ----------         ---------
qdef BW   3650K          3M
qpri burst  1800K          1M

It looks like for anything specified as abcdK the result is aM, i.e., for any 
bandwidth >= 1000K the resulting bandwidth is truncated (not rounded) to 
<msd>M, where <msd> = most significant digit. Any bandwidth < 
1000K works correctly.

Is this a bug, a misfeature, or a feature?
Thanks!

Reply via email to