netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [v8 net-next 0/4] Refactor vxlan and l2tp to use new common UDP tunnel APIs
@ 2014-09-17  0:29 Andy Zhou
  2014-09-17  0:43 ` Andy Zhou
  2014-09-19 19:58 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Zhou @ 2014-09-17  0:29 UTC (permalink / raw)
  To: davem; +Cc: netdev, Andy Zhou

This patch series add a few more UDP tunnel APIs and refactoring current
UDP tunnel based protocols, vxlan and l2tp to make use of the new APIs.

The added APIs are setup_udp_tunnel_sock(), udp_tunnel_xmit_skb() and 
udp_tunnel_sock_release(). Those implementation logics already exist in
current vxlan and l2tp implementation. Move them to common APIs to reduce
code duplications.

Also split udp_tunnel.c into net/ipv4/udp_tunnel.c and
net/ipv6/ip6_udp_tunnel.c to maintain proper IP protocol separation.

Andy Zhou (4):
  udp_tunnel: Seperate ipv6 functions into its own file.
  udp-tunnel: Add a few more UDP tunnel APIs
  vxlan: Refactor vxlan driver to make use of the common UDP tunnel
    functions.
  l2tp: Refactor l2tp core driver to make use of the common UDP tunnel
    functions

 drivers/net/vxlan.c       |  105 ++++++++--------------------------
 include/net/udp_tunnel.h  |   85 +++++++++++++++++++++++++++-
 net/ipv4/udp_tunnel.c     |  138 ++++++++++++++++++++++++---------------------
 net/ipv6/Makefile         |    1 +
 net/ipv6/ip6_udp_tunnel.c |  105 ++++++++++++++++++++++++++++++++++
 net/l2tp/l2tp_core.c      |   24 ++++----
 6 files changed, 294 insertions(+), 164 deletions(-)
 create mode 100644 net/ipv6/ip6_udp_tunnel.c

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [v8 net-next 0/4] Refactor vxlan and l2tp to use new common UDP tunnel APIs
  2014-09-17  0:29 [v8 net-next 0/4] Refactor vxlan and l2tp to use new common UDP tunnel APIs Andy Zhou
@ 2014-09-17  0:43 ` Andy Zhou
  2014-09-19 19:58 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Zhou @ 2014-09-17  0:43 UTC (permalink / raw)
  To: David Miller; +Cc: netdev@vger.kernel.org, Andy Zhou

Forgot to mention there is no code from v7-v8, just added more content
to the commit message.

Should have added the following line to the commit message:

v7->v8:  commit message enhancement.

On Tue, Sep 16, 2014 at 5:29 PM, Andy Zhou <azhou@nicira.com> wrote:
> This patch series add a few more UDP tunnel APIs and refactoring current
> UDP tunnel based protocols, vxlan and l2tp to make use of the new APIs.
>
> The added APIs are setup_udp_tunnel_sock(), udp_tunnel_xmit_skb() and
> udp_tunnel_sock_release(). Those implementation logics already exist in
> current vxlan and l2tp implementation. Move them to common APIs to reduce
> code duplications.
>
> Also split udp_tunnel.c into net/ipv4/udp_tunnel.c and
> net/ipv6/ip6_udp_tunnel.c to maintain proper IP protocol separation.
>
> Andy Zhou (4):
>   udp_tunnel: Seperate ipv6 functions into its own file.
>   udp-tunnel: Add a few more UDP tunnel APIs
>   vxlan: Refactor vxlan driver to make use of the common UDP tunnel
>     functions.
>   l2tp: Refactor l2tp core driver to make use of the common UDP tunnel
>     functions
>
>  drivers/net/vxlan.c       |  105 ++++++++--------------------------
>  include/net/udp_tunnel.h  |   85 +++++++++++++++++++++++++++-
>  net/ipv4/udp_tunnel.c     |  138 ++++++++++++++++++++++++---------------------
>  net/ipv6/Makefile         |    1 +
>  net/ipv6/ip6_udp_tunnel.c |  105 ++++++++++++++++++++++++++++++++++
>  net/l2tp/l2tp_core.c      |   24 ++++----
>  6 files changed, 294 insertions(+), 164 deletions(-)
>  create mode 100644 net/ipv6/ip6_udp_tunnel.c
>
> --
> 1.7.9.5
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [v8 net-next 0/4] Refactor vxlan and l2tp to use new common UDP tunnel APIs
  2014-09-17  0:29 [v8 net-next 0/4] Refactor vxlan and l2tp to use new common UDP tunnel APIs Andy Zhou
  2014-09-17  0:43 ` Andy Zhou
@ 2014-09-19 19:58 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2014-09-19 19:58 UTC (permalink / raw)
  To: azhou; +Cc: netdev

From: Andy Zhou <azhou@nicira.com>
Date: Tue, 16 Sep 2014 17:29:43 -0700

> This patch series add a few more UDP tunnel APIs and refactoring current
> UDP tunnel based protocols, vxlan and l2tp to make use of the new APIs.
> 
> The added APIs are setup_udp_tunnel_sock(), udp_tunnel_xmit_skb() and 
> udp_tunnel_sock_release(). Those implementation logics already exist in
> current vxlan and l2tp implementation. Move them to common APIs to reduce
> code duplications.
> 
> Also split udp_tunnel.c into net/ipv4/udp_tunnel.c and
> net/ipv6/ip6_udp_tunnel.c to maintain proper IP protocol separation.

Series applied, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-19 19:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-17  0:29 [v8 net-next 0/4] Refactor vxlan and l2tp to use new common UDP tunnel APIs Andy Zhou
2014-09-17  0:43 ` Andy Zhou
2014-09-19 19:58 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).