LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

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

To: Eric Dumazet <eric.dumazet@xxxxxxxxx>
Subject: Re: [RFC PATCH 5/9] ipvs network name space aware
Cc: Simon Horman <horms@xxxxxxxxxxxx>, "lvs-devel@xxxxxxxxxxxxxxx" <lvs-devel@xxxxxxxxxxxxxxx>, "netdev@xxxxxxxxxxxxxxx" <netdev@xxxxxxxxxxxxxxx>, "netfilter-devel@xxxxxxxxxxxxxxx" <netfilter-devel@xxxxxxxxxxxxxxx>, "ja@xxxxxx" <ja@xxxxxx>, "wensong@xxxxxxxxxxxx" <wensong@xxxxxxxxxxxx>, "daniel.lezcano@xxxxxxx" <daniel.lezcano@xxxxxxx>
From: Hans Schillstrom <hans.schillstrom@xxxxxxxxxxxx>
Date: Thu, 21 Oct 2010 13:49:25 +0200
On Thursday 21 October 2010 13:26:54 Eric Dumazet wrote:
> Le jeudi 21 octobre 2010 à 13:16 +0200, Simon Horman a écrit :
>
> > > @@ -2680,10 +2664,15 @@ static int ip_vs_genl_dump_services(struct 
> > > sk_buff *skb,
> > >   int idx = 0, i;
> > >   int start = cb->args[0];
> > >   struct ip_vs_service *svc;
> > > -
> > > + struct net *net = skb->sk->sk_net;
> >
> > skb->sk->sk_net needs CONFIG_NS_NET.
> > Is your plan for IPVS to unconditionally depend on CONFIG_NS_NET?
> > It would be nice to avoid that, but I fear it will be too messy.
> >
>
>
> struct net *net = sock_net(skb->sk);
>
> is your friend ;)
>
>
Tanks Eric,

Simon,
do forget about my last mail....
>

--
Regards
Hans Schillstrom <hans.schillstrom@xxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

<Prev in Thread] Current Thread [Next in Thread>