[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080818.164748.86676462.davem@davemloft.net>
Date: Mon, 18 Aug 2008 16:47:48 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: jarkao2@...il.com
Cc: herbert@...dor.apana.org.au, netdev@...r.kernel.org
Subject: Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
From: Jarek Poplawski <jarkao2@...il.com>
Date: Mon, 18 Aug 2008 23:29:46 +0200
> Two little doubts below:
>
> > diff --git a/net/core/dev.c b/net/core/dev.c
> > index 600bb23..b88f669 100644
> > --- a/net/core/dev.c
> > +++ b/net/core/dev.c
> > @@ -1341,6 +1341,9 @@ static void dev_queue_xmit_nit(struct sk_buff *skb, struct net_device *dev)
> >
> > void __netif_schedule(struct Qdisc *q)
> > {
> > + if (unlikely(test_bit(__QDISC_STATE_DEACTIVATED, &q->state)))
> > + return;
> > +
>
> Why I can't see this code in net-2.6? BTW, I guess it should be now
> moved to the current __netif_reschedule()?
I deleted it, it's unnecessary with your "both bits clear" fix
which I also added.
> OK, we now have this kfree_skb() with NET_XMIT_DROP here, but how is it
> better than qdisc_enque_root() on noop_qdisc? Or how can we have here
> anything else under both rcu lock and spin_lock() while this
> __QDISC_STATE_DEACTIVATED bit is set?
Both operations are equivalent, the choice is arbitrary in my
opinion. It's not like the user can even see this in noop_qdisc's
stats or something like that.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists