All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH qmi lte v3 5/6] qmi: stop listening to packet service notifications
Date: Mon, 17 Apr 2017 14:51:20 -0500	[thread overview]
Message-ID: <edd39a3a-e80c-aa1b-5f83-e7c60fb53d4e@gmail.com> (raw)
In-Reply-To: <c91b554e-be23-d623-2a80-f5bbdcb6fd60@southpole.se>

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

Hi Jonas,

On 04/17/2017 02:45 PM, Jonas Bonn wrote:
> On 04/17/2017 07:19 PM, Denis Kenzior wrote:
>> Hi Jonas,
>>
>> On 04/15/2017 10:34 AM, Jonas Bonn wrote:
>>> The packet service status notification tells whether there is _any_
>>> active and enabled context.  Using this to decide whether to
>>> release any given context makes no sense.
>>
>> The gobi driver only supports a single context and afaik only a single
>> network interface is available.  Do you have hardware with support for
>> multiple active contexts?
>
> On an LTE network you can start a "dedicated" bearer.  As far as I
> understand it, the way this is done is to call "start network"
> specifying a profile ID other than the default.  In the ofono context, I
> presume this would be done by creating a new context and activating it:
> it just needs the same APN as the default bearer, and normally one would
> specify other QoS settings.  Given that, then yes, I presume my hardware
> support multiple active contexts; if the Gobi driver only supports one
> context it's presumably because it doesn't support LTE.

Okay, so now you're opening a whole new can of worms.  Dedicated bearers 
are similar to secondary PDP contexts in 2G/3G.  Their handling is even 
more special than primary PDP contexts / default bearers.

I wouldn't presume that your hardware supports this.  You need to check. 
  How many physical network interfaces are exposed?  If its just one 
like the gobi has, then you have your answer.

>
>>
>> Otherwise I think it would be safe to assume that in a single-context
>> case, this code is doing the right thing.
>
> I think, for LTE, that the netreg atom gives you everything you need and
> that this notification is superflous.  I'm thinking now that for non-LTE
> this code might be relevant:  can the context detach spontaneously
> without unregistering from the network?  If yes, then we probably need
> this, still.
>

A context can be forcefully deactivated by the network operator at any 
time.  So yes, this is actually needed.

Regards,
-Denis


  reply	other threads:[~2017-04-17 19:51 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-15 15:34 [PATCH qmi lte v3 0/6] QMI LTE series Jonas Bonn
2017-04-15 15:34 ` [PATCH qmi lte v3 0/7] " Jonas Bonn
2017-04-15 15:34 ` [PATCH qmi lte v3 1/6] qmi: free cb_data on error Jonas Bonn
2017-04-17 17:08   ` Denis Kenzior
2017-04-15 15:34 ` [PATCH qmi lte v3 2/6] qmi: implement detach_shutdown method Jonas Bonn
2017-04-17 17:10   ` Denis Kenzior
2017-04-15 15:34 ` [PATCH qmi lte v3 3/6] qmi: activate default bearer context for LTE networks Jonas Bonn
2017-04-17 17:37   ` Denis Kenzior
2017-04-17 19:57     ` Jonas Bonn
2017-04-17 20:12       ` Denis Kenzior
2017-04-17 20:17         ` Jonas Bonn
2017-04-15 15:34 ` [PATCH qmi lte v3 4/6] qim: use named status value Jonas Bonn
2017-04-17 17:12   ` Denis Kenzior
2017-04-15 15:34 ` [PATCH qmi lte v3 5/6] qmi: stop listening to packet service notifications Jonas Bonn
2017-04-17 17:19   ` Denis Kenzior
2017-04-17 19:45     ` Jonas Bonn
2017-04-17 19:51       ` Denis Kenzior [this message]
2017-04-17 20:05         ` Jonas Bonn
2017-04-17 20:19           ` Denis Kenzior
2017-04-15 15:34 ` [PATCH qmi lte v3 6/6] qmi: consolidate ss_info handling functions Jonas Bonn
2017-04-17 17:27   ` 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=edd39a3a-e80c-aa1b-5f83-e7c60fb53d4e@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.