Netdev List
 help / color / mirror / Atom feed
From: Harald Welte <laforge@osmocom.org>
To: "Drewek, Wojciech" <wojciech.drewek@intel.com>
Cc: Marcin Szycik <marcin.szycik@linux.intel.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"michal.swiatkowski@linux.intel.com" 
	<michal.swiatkowski@linux.intel.com>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"kuba@kernel.org" <kuba@kernel.org>,
	"pablo@netfilter.org" <pablo@netfilter.org>,
	"osmocom-net-gprs@lists.osmocom.org" 
	<osmocom-net-gprs@lists.osmocom.org>
Subject: Re: [RFC PATCH net-next v3 1/5] gtp: Allow to create GTP device without FDs
Date: Fri, 11 Feb 2022 10:04:24 +0100	[thread overview]
Message-ID: <YgYmmJAuTetYH4LX@nataraja> (raw)
In-Reply-To: <MW4PR11MB57764998297DC775D71753E8FD2D9@MW4PR11MB5776.namprd11.prod.outlook.com>

Hi Wojciech,

On Tue, Feb 08, 2022 at 01:30:32PM +0000, Drewek, Wojciech wrote:

> For now we don't have such tree. I will see what we can do.

I would appreciate it, so we can get this tested before it hits net-next.

> > I'm wondering if we should make this more explicit, i.e. rather than
> > implicitly creating the kernel socket automagically, make this mode
> > explicit upon request by some netlink attribute.
>
> I agree, it would look cleaner.

Excellent.

> > > Sockets are created with the
> > > commonly known UDP ports used for GTP protocol (GTP0_PORT and
> > > GTP1U_PORT).
> > 
> > I'm wondering if there are use cases that need to operate on
> > non-standard ports.  The current module can be used that way (as the
> > socket is created in user space). If the "kernel socket mode" was
> > requested explicitly via netlink attribute, one could just as well
> > pass along the port number[s] this way.
>
> Yes, it is possible to create socket with any port number using FD approach,
> but gtp module still assumes that ports are 2152 and 3386 at least in tx path
> (see gtp_push_header).  Implementing this shouldn't be hard but is it crucial?

Not crucial.

-- 
- Harald Welte <laforge@osmocom.org>            http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)

  reply	other threads:[~2022-02-11  9:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-27 16:37 [RFC PATCH net-next v3 0/5] ice: GTP support in switchdev Marcin Szycik
2022-01-27 16:39 ` [RFC PATCH net-next v3 1/5] gtp: Allow to create GTP device without FDs Marcin Szycik
2022-02-05 16:34   ` Harald Welte
2022-02-08 13:30     ` Drewek, Wojciech
2022-02-11  9:04       ` Harald Welte [this message]
2022-02-09 18:04     ` Marcin Szycik
2022-02-11  9:11       ` Harald Welte
2022-02-11 10:05         ` Drewek, Wojciech
2022-02-12 11:02           ` Harald Welte
2022-01-27 16:39 ` [RFC PATCH net-next v3 2/5] gtp: Add support for checking GTP device type Marcin Szycik
2022-01-27 16:39 ` [RFC PATCH net-next v3 3/5] net/sched: Allow flower to match on GTP options Marcin Szycik
2022-01-27 16:39 ` [RFC PATCH net-next v3 4/5] ice: Fix FV offset searching Marcin Szycik
2022-01-27 16:39 ` [RFC PATCH net-next v3 5/5] ice: Support GTP-U and GTP-C offload in switchdev Marcin Szycik

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=YgYmmJAuTetYH4LX@nataraja \
    --to=laforge@osmocom.org \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=marcin.szycik@linux.intel.com \
    --cc=michal.swiatkowski@linux.intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=osmocom-net-gprs@lists.osmocom.org \
    --cc=pablo@netfilter.org \
    --cc=wojciech.drewek@intel.com \
    /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