netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Schultz <aschultz@tpip.net>
To: pablo <pablo@netfilter.org>, laforge <laforge@gnumonks.org>
Cc: netdev <netdev@vger.kernel.org>,
	osmocom-net-gprs <osmocom-net-gprs@lists.osmocom.org>
Subject: Re: [PATCH net-next v3 0/8] gtp: misc improvements
Date: Thu, 16 Feb 2017 22:38:00 +0100 (CET)	[thread overview]
Message-ID: <2065178262.135524.1487281080405.JavaMail.zimbra@tpip.net> (raw)
In-Reply-To: <20170213153624.14170-1-aschultz@tpip.net>

Hi Pablo, Harald,

Do you have some time to look at the patches?

Andreas

----- On Feb 13, 2017, at 4:36 PM, Andreas Schultz aschultz@tpip.net wrote:

> Hi Pablo,
> 
> This is v3 of the GTP improvements.
> 
> This series lays the groundwork for removing the socket references from
> the GTP netdevice by removing duplicate code and simplifying the logic on
> some code paths.
> 
> It slighly changes the GTP genl API by making the socket parameters optional
> (though one of them is still required).
> 
> The removal of the socket references will break the 1:1 releation between
> GTP netdevice and GTP socket that prevents us to support multiple VRFs with
> overlaping IP addresse spaces attached to the same GTP-U entity (needed for
> multi APN support).
> 
> Pablo found a socket hold problem in v2. In order to solve that I had to
> switch the socket references from the struct socket to the internal
> struct sock. This should have no functionl impact, but we can now hang
> on to the reference without blocking user space from closing the GTP socket.
> 
> There was also some length off-list conversation about why the netdevice to
> socket relation needs to be changed at all. Harald did already agree to this
> but Pablo had some questions. I've tried to address that with a bit of
> dokumentation for the GTP module. Hopefully this will explain the need for
> the change sufficiently.
> 
> This series does have conflicts with the SGSN side tunnel work done by
> Jonas Bonn. The unification of the tunnel Rx code touches the same places
> he changed.
> 
> v2->v3:
> * add documentation to explain the goal of all these changes
> * incorporate review comments
> * switch from struct socket to struct sock
> 
> Regards
> Andreas
> 
> --
> Andreas Schultz (8):
>  gtp: add documentation
>  gtp: switch from struct socket to struct sock for the GTP sockets
>  gtp: make GTP sockets in gtp_newlink optional
>  gtp: merge gtp_get_net and gtp_genl_find_dev
>  gtp: consolidate gtp socket rx path
>  gtp: unify genl_find_pdp and prepare for per socket lookup
>  gtp: consolidate pdp context destruction into helper
>  gtp: add socket to pdp context
> 
> Documentation/networking/gtp.txt | 112 ++++++++
> drivers/net/gtp.c                | 548 +++++++++++++++++++--------------------
> 2 files changed, 386 insertions(+), 274 deletions(-)
> create mode 100644 Documentation/networking/gtp.txt
> 
> --
> 2.10.2

      parent reply	other threads:[~2017-02-16 21:38 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-13 15:36 [PATCH net-next v3 0/8] gtp: misc improvements Andreas Schultz
2017-02-13 15:36 ` [PATCH net-next v3 1/8] gtp: add documentation Andreas Schultz
2017-02-20 16:15   ` Harald Welte
2017-02-20 17:28     ` Andreas Schultz
2017-02-21  1:12       ` Neels Hofmeyr
2017-02-22  8:36       ` Harald Welte
2017-02-22 11:30         ` Andreas Schultz
2017-02-13 15:36 ` [PATCH net-next v3 2/8] gtp: switch from struct socket to struct sock for the GTP sockets Andreas Schultz
2017-02-14 17:48   ` David Miller
2017-02-15  7:04     ` Andreas Schultz
2017-02-15 16:07       ` David Miller
2017-02-13 15:36 ` [PATCH net-next v3 3/8] gtp: make GTP sockets in gtp_newlink optional Andreas Schultz
2017-02-13 15:36 ` [PATCH net-next v3 4/8] gtp: merge gtp_get_net and gtp_genl_find_dev Andreas Schultz
2017-02-13 15:36 ` [PATCH net-next v3 5/8] gtp: consolidate gtp socket rx path Andreas Schultz
2017-02-13 15:36 ` [PATCH net-next v3 6/8] gtp: unify genl_find_pdp and prepare for per socket lookup Andreas Schultz
2017-02-13 15:36 ` [PATCH net-next v3 7/8] gtp: consolidate pdp context destruction into helper Andreas Schultz
2017-02-13 15:36 ` [PATCH net-next v3 8/8] gtp: add socket to pdp context Andreas Schultz
2017-02-16 21:38 ` Andreas Schultz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2065178262.135524.1487281080405.JavaMail.zimbra@tpip.net \
    --to=aschultz@tpip.net \
    --cc=laforge@gnumonks.org \
    --cc=netdev@vger.kernel.org \
    --cc=osmocom-net-gprs@lists.osmocom.org \
    --cc=pablo@netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).