Re: [RFC PATCH net-next 3/4] veth: backup classid befor switch net_ns

2014-01-05 Thread Libo Chen
On 2014/1/3 18:45, Sergei Shtylyov wrote: > Hello. > > On 03-01-2014 7:11, Libo Chen wrote: > >> dev_forward_skb will clear skb->sk, so we need save classid >> before that, otherwise the skb can not be under control by >> net_cls. > >> Signed-off-by: Libo Chen >> --- >> drivers/net/veth.c | 7

Re: [RFC PATCH net-next 3/4] veth: backup classid befor switch net_ns

2014-01-03 Thread Sergei Shtylyov
Hello. On 03-01-2014 7:11, Libo Chen wrote: dev_forward_skb will clear skb->sk, so we need save classid before that, otherwise the skb can not be under control by net_cls. Signed-off-by: Libo Chen --- drivers/net/veth.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers

[RFC PATCH net-next 3/4] veth: backup classid befor switch net_ns

2014-01-02 Thread Libo Chen
dev_forward_skb will clear skb->sk, so we need save classid before that, otherwise the skb can not be under control by net_cls. Signed-off-by: Libo Chen --- drivers/net/veth.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 2ec2041..ce43a