altq assertion / kernel panic

From: Ask Bjørn Hansen (ask_at_develooper.com)
Date: 03/29/05

  • Next message: Eugene Mitrofanov: "supermicro 6014H-82"
    To: freebsd-stable@freebsd.org
    Date: Mon, 28 Mar 2005 23:04:48 -0800
    
    

    Hi,

    I was experimenting with PF and ALTQ on a netbooted Soekris 4801 when I
    got this after "pfctl -f /etc/pf.conf".

    altq assertion "ifq->ifq_len == 0" failed: file
    "/usr/src/sys/contrib/altq/altq/altq_subr.c", line 256

    Sadly I can't reproduce it, and I don't recall what the previous
    iterations of the pf.conf were like.

    I'm using RELENG5 as of a couple of days ago plus the if_bridge patch at
    http://www.pfsense.org/downloads/bridge.patch.041215 if that makes a
    difference.

      - ask

    <snip>
    int_if = "sis0"
    ext_if = "sis1"

    table <localpublic> { 64.81.84.115, 64.81.84.162, 64.81.84.165,
    64.81.84.164, \
             64.81.84.17, 64.81.84.141, 64.81.84.114, 64.81.84.140 }

    table <rfc1918> const { 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8 }
    table <spammers> persist

    altq on $ext_if priq bandwidth 700Kb queue { std_out, voip_out,
    ssh_out, dns_out, tcp_ack_out }
    queue std_out priq(default)
    queue ssh_out priority 4 priq(red)
    queue dns_out priority 5
    queue tcp_ack_out priority 8
    queue voip_out priority 10

    #queue std bandwidth 50% cbq(default borrow)
    #queue ssh bandwidth 25% { ssh_login, ssh_bulk }
    # queue ssh_login bandwidth 25% priority 6 cbq(ecn borrow)
    # queue ssh_bulk bandwidth 75% priority 4 cbq(ecn borrow)
    #queue voip bandwidth 25% priority 7 cbq(borrow)

    block in on $ext_if from { <rfc1918>, <spammers> } to any
    block out on $ext_if from 10.0.201.0/24 to any

    #block from any to 63.251.223.170

    #block in all
    #block out all

    #pass out on $ext_if proto tcp from any to any port 22 queue(ssh_bulk,
    ssh_login)
    #pass out on $ext_if from 10.0.201.21 to any queue(voip)
    </snip>

    -- 
    http://www.askbjoernhansen.com/
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
    

  • Next message: Eugene Mitrofanov: "supermicro 6014H-82"

    Relevant Pages

    • Re: How to shape VoIP traffic on FreeBSD 4.8 router?
      ... I'd also like to give TCP ACK packets a priority boost. ... > traffic without assimilating bandwidth. ... Define 1 pipe for the entire upstream bandwidth. ... add queue 2 ip from any to any not ssh,telnet,ntp out via oif ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Lahman, how ya doing?
      ... >> A priority queue is an interesting idea. ... So Timer just enqueues the event on the right queue. ... >effectively starts at the same time on the current tick. ... >was triggered just gets time-sliced based on priority. ...
      (comp.object)
    • wierd output from pfctl -vvsq
      ... queue tcp_ack bandwidth 44Kb priority 7 cbq(borrow) ...
      (freebsd-questions)
    • Re: Lahman, how ya doing?
      ... Suppose you had 64 Thermometers and at run time you wanted to give priority to some of them dynamically (e.g., where the temperature gradient was greatest) because processing all 64 samples at once can't be done in a single "tick". ... So Timer just enqueues the event on the right queue. ... So I addressed both the bitmap processing basics via indexed OR mask and the deferredBitmap variable assumption about bit count. ...
      (comp.object)
    • cbq not borrowing fully from parent queue
      ... I'm running 6-STABLE using pf and altq/cbq to manage bandwidth on my ... queue internal bandwidth 53104Kb priority 7 cbq ... so it can't borrow from the root queue. ...
      (freebsd-questions)