Re: [RFC PATCH 5/9] ipvs network name space aware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




	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@xxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux