All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [RFC PATCH 1/1] ublox: create only 1 gprs context
Date: Thu, 14 Mar 2019 20:27:54 -0500	[thread overview]
Message-ID: <1883c433-e0e2-6086-e396-583bcc438f26@gmail.com> (raw)
In-Reply-To: <20190314223726.9494-1-jonas@norrbonn.se>

[-- Attachment #1: Type: text/plain, Size: 1676 bytes --]

Hi Jonas,

On 03/14/2019 05:37 PM, Jonas Bonn wrote:
> ---
> 

Funny, I was looking at this code today and thought it was wrong.  Was 
going to point this out to you, but you beat me to it ;)

> Here's something that I'm having trouble understanding.  The ublox
> plugin creates 8 gprs_context atoms.  As far as I can tell, this means
> that ofono will allow it to activate 8 contexts simultaneously... right?
>

Correct.  Each context driver added to gprs allows a concurrent context 
to be activated.  E.g. if you have 2 drivers, you can activate 2 
contexts simultaneously.  Obviously you need a high speed / ppp 
interface for each active context.

> Why is the ublox plugin the only one that does this?  Do other modems
> not support multiple active contexts?  Or is this plugin wrong?

 From what I recall, ublox does claim to support multiple PDP contexts 
active at the same time.  However, I don't know how this works in 
practice as you need a unique network interface for each one.  As it 
stands today, given the udevng detection logic, this plugin is wrong.

> 
> If I were to follow the model of other plugins, the below patch would
> seem appropriate...
> 
> A bit of insight here would be appreciated.

There are drivers for USB based modems that do this properly.  See 
xmm7xxx for example.  Multiple PDP context support was added to that 
recently.

Modems that used multiplexing had support for multiple PDP contexts for 
quite some time.  E.g. plugins/ifx, etc.

Anyway, patch looks fine to me.  Let me know if you want me to apply it 
or you want to take a stab at fixing the detection logic.

Regards,
-Denis

  reply	other threads:[~2019-03-15  1:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-14 22:37 [RFC PATCH 1/1] ublox: create only 1 gprs context Jonas Bonn
2019-03-15  1:27 ` Denis Kenzior [this message]
2019-03-15  7:42   ` Jonas Bonn
2019-03-15 16:28     ` Denis Kenzior
2019-03-16  6:41       ` Jonas Bonn
2019-03-19 15:26         ` Denis Kenzior

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=1883c433-e0e2-6086-e396-583bcc438f26@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.