[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.1010220141440.3256@ja.ssi.bg>
Date: Fri, 22 Oct 2010 01:56:51 +0300 (EEST)
From: Julian Anastasov <ja@....bg>
To: Hans Schillstrom <hans.schillstrom@...csson.com>
cc: Simon Horman <horms@...ge.net.au>,
"lvs-devel@...r.kernel.org" <lvs-devel@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"netfilter-devel@...r.kernel.org" <netfilter-devel@...r.kernel.org>,
"wensong@...ux-vs.org" <wensong@...ux-vs.org>,
"daniel.lezcano@...e.fr" <daniel.lezcano@...e.fr>
Subject: Re: [RFC PATCH 5/9] ipvs network name space aware
Hello,
On Thu, 21 Oct 2010, Hans Schillstrom wrote:
> static inline struct net * ipvs_devnet(struct skb *skb)
> {
> #ifdef CONFIG_NS_NET
> return dev_net(skb->dev);
> #else
> return init_net;
> #endif
> }
After last IPVS changes may be something like that
is needed instead:
static inline struct net *ipvs_skbnet(struct sk_buff *skb)
{
return dev_net(skb->dev ? : skb_dst(skb)->dev);
}
because now we have LOCAL_OUT processing.
Regards
--
Julian Anastasov <ja@....bg>
--
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