[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1309112028160.30567@blackhole.kfki.hu>
Date: Wed, 11 Sep 2013 20:37:35 +0200 (CEST)
From: Jozsef Kadlecsik <kadlec@...ckhole.kfki.hu>
To: Eric Dumazet <eric.dumazet@...il.com>
cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
"V. Lavrov" <lve@...p.ru>
Subject: Re: [PATCH 1/1] net: sched: Make netns available for ematch
extensions
On Wed, 11 Sep 2013, Eric Dumazet wrote:
> On Wed, 2013-09-11 at 07:31 -0700, Eric Dumazet wrote:
>
> > Note that qdisc_dev(tp->q) should give you the pointer to device
> >
> > Then ->nd_net gives you the struct net pointer.
> >
> > On management path, this should be enough ;)
Ohh, this is great, thanks indeed! Somehow I overlooked tp->q when
searching to find a pointer to struct net.
> (A device can be moved from net xxxx to net yyyy)
So something like dev_net(qdisc_dev(tp->q)) is all what we need.
Best regards,
Jozsef
-
E-mail : kadlec@...ckhole.kfki.hu, kadlecsik.jozsef@...ner.mta.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
H-1525 Budapest 114, POB. 49, Hungary
--
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