Re: [RFC PATCH 1/7] fou: Get net from sock_net if dev_net unavailable

2016-05-24 Thread Tom Herbert
On Tue, May 24, 2016 at 3:01 PM, David Miller wrote: > From: Tom Herbert > Date: Mon, 23 May 2016 15:48:20 -0700 > >> diff --git a/net/ipv4/fou.c b/net/ipv4/fou.c >> index 5f9207c..96260c6 100644 >> --- a/net/ipv4/fou.c >> +++ b/net/ipv4/fou.c >> @@ -807,13 +807,20 @@ int __fou_build_header(struc

Re: [RFC PATCH 1/7] fou: Get net from sock_net if dev_net unavailable

2016-05-24 Thread David Miller
From: Tom Herbert Date: Mon, 23 May 2016 15:48:20 -0700 > diff --git a/net/ipv4/fou.c b/net/ipv4/fou.c > index 5f9207c..96260c6 100644 > --- a/net/ipv4/fou.c > +++ b/net/ipv4/fou.c > @@ -807,13 +807,20 @@ int __fou_build_header(struct sk_buff *skb, struct > ip_tunnel_encap *e, >

[RFC PATCH 1/7] fou: Get net from sock_net if dev_net unavailable

2016-05-23 Thread Tom Herbert
With the implementation of Transports over UDP fou and gue build header may be called before skb->dev is set. This patch checks skb->dev and if it is not set then tries to get net from sock_net. Signed-off-by: Tom Herbert --- net/ipv4/fou.c | 22 ++ 1 file changed, 18 inserti