Subject: Re: qdisc and down links (regression)

From: Stephen Hemminger <[email-masked]>
Date: Fri, 8 Aug 2008 14:32:01 -0700

On Thu, 07 Aug 2008 18:50:24 -0700 (PDT)
David Miller <[email-masked]> wrote:

> From: David Miller <[email-masked]>
> Date: Thu, 07 Aug 2008 15:47:35 -0700 (PDT)
> 
> > From: Stephen Hemminger <[email-masked]>
> > Date: Thu, 7 Aug 2008 14:30:36 -0700
> > 
> > > Before the mulitqueue changes in 2.6.27-rc it was possible to setup
> > > queueing disciplines before the link came up (carrier active). This
> > > no longer works. If link is down, the qdisc is the noop_qdisc and
> > > any configuration changes don't seem to be shown.
> > 
> > I'll see why this happens, it wasn't an intentional change.
> 
> This should fix it, let me know if it doesn't:

It fixes it for qdisc but not for ingress filters

# tc qdisc add dev eth0 handle ffff: ingress
# tc filter add dev eth0 parent ffff: protocol ip \
   prio 50 u32 match ip src 0.0.0.0/0 police rate 800kbit burst 10k drop flowid :1
RTNETLINK answers: Invalid argument
We have an error talking to the kernel

Another problem is that the ingress qdisc can no longer be deleted
successfully.