Re: [PATCH net-next 2/3] ip6_gre: Refactor ip6gre xmit codes

2017-11-08 Thread William Tu
On Tue, Nov 7, 2017 at 6:10 PM, David Miller wrote: > From: William Tu > Date: Sun, 5 Nov 2017 10:39:04 -0800 > >> diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c >> index 3e10c51e7e0c..8c7612f32926 100644 >> --- a/net/ipv6/ip6_gre.c >> +++ b/net/ipv6/ip6_gre.c >> @@ -497,6 +497,79 @@ stati

Re: [PATCH net-next 2/3] ip6_gre: Refactor ip6gre xmit codes

2017-11-07 Thread David Miller
From: William Tu Date: Sun, 5 Nov 2017 10:39:04 -0800 > diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c > index 3e10c51e7e0c..8c7612f32926 100644 > --- a/net/ipv6/ip6_gre.c > +++ b/net/ipv6/ip6_gre.c > @@ -497,6 +497,79 @@ static int gre_handle_offloads(struct sk_buff *skb, bool > csum) >

[PATCH net-next 2/3] ip6_gre: Refactor ip6gre xmit codes

2017-11-05 Thread William Tu
This patch refactors the ip6gre_xmit_{ipv4, ipv6}. It is a prep work to add the ip6erspan tunnel. Signed-off-by: William Tu --- net/ipv6/ip6_gre.c | 124 - 1 file changed, 76 insertions(+), 48 deletions(-) diff --git a/net/ipv6/ip6_gre.c b/net