netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1 net-2.6.26] Pass real namespace in net scheduler classifiers.
@ 2008-03-27  8:06 Denis V. Lunev
  2008-03-27 23:54 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Denis V. Lunev @ 2008-03-27  8:06 UTC (permalink / raw)
  To: davem; +Cc: netdev, Denis V. Lunev

Signed-off-by: Denis V. Lunev <den@openvz.org>
---
 include/net/pkt_cls.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
index d349c66..1a5942c 100644
--- a/include/net/pkt_cls.h
+++ b/include/net/pkt_cls.h
@@ -353,7 +353,7 @@ tcf_match_indev(struct sk_buff *skb, char *indev)
 	if (indev[0]) {
 		if  (!skb->iif)
 			return 0;
-		dev = __dev_get_by_index(&init_net, skb->iif);
+		dev = __dev_get_by_index(dev_net(skb->dev), skb->iif);
 		if (!dev || strcmp(indev, dev->name))
 			return 0;
 	}
-- 
1.5.3.rc5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1 net-2.6.26] Pass real namespace in net scheduler classifiers.
  2008-03-27  8:06 [PATCH 1/1 net-2.6.26] Pass real namespace in net scheduler classifiers Denis V. Lunev
@ 2008-03-27 23:54 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-03-27 23:54 UTC (permalink / raw)
  To: den; +Cc: netdev

From: "Denis V. Lunev" <den@openvz.org>
Date: Thu, 27 Mar 2008 11:06:23 +0300

> Signed-off-by: Denis V. Lunev <den@openvz.org>

Applied to net-2.6.26, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-27 23:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-27  8:06 [PATCH 1/1 net-2.6.26] Pass real namespace in net scheduler classifiers Denis V. Lunev
2008-03-27 23:54 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).