Linux bluetooth development
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Kevin Hayes <kevin@Atheros.com>
Cc: "tmonahan@codeaurora.org" <tmonahan@codeaurora.org>,
	David Vrabel <david.vrabel@csr.com>,
	Inga Stotland <ingas@codeaurora.org>,
	"linux-bluetooth@vger.kernel.org"
	<linux-bluetooth@vger.kernel.org>,
	"rshaffer@codeaurora.org" <rshaffer@codeaurora.org>,
	"johan.hedberg@gmail.com" <johan.hedberg@gmail.com>
Subject: RE: Enhancements to allow l2cap channel to use either AMP or BR/EDR
Date: Mon, 02 Aug 2010 18:59:04 -0700	[thread overview]
Message-ID: <1280800744.12579.71.camel@localhost.localdomain> (raw)
In-Reply-To: <B7132A25476D334D9130FE7532F2A56310A0B08A61@SC1EXMB-MBCL.global.atheros.com>

Hi Kevin,

> > > Agree that it should be done "in background" and that a size
> > threshold would be useful.  But who evaluates that threshold?  The
> > bluez kernel components, which essentially implement a transport
> > driver, should not be examining objects (files, phonebooks, etc) size
> > to see if this threshold is met.  Therefore, it would seem Tim's
> > suggestion of having the profile send a 'prefer_amp' bit would be
> > useful, right?
> > 
> > I would do something like "prefer_amp when over 100kb" or something.
> > And
> > then the kernel needs to count. Meaning the L2CAP layer could easily
> > count this by itself.
> 
> What?  Let's say the effect we want is that if the object is greater than, say, 10 megabytes, then we want to use AMP for the transfer.  With your scheme, you want the kernel to count up to 10 megabytes, THEN switch over to AMP?
> No, you don't, he says rhetorically.  :)  

we will see what works out best. I am open for ideas. As I said before,
I know what I don't want for sure. The rest is open for testing and
figuring out if it works or not.

> > Also just starting with setsockopt(bredr_only) and then later on just
> > doing setsockopt(prefer_amp) the userspace application would have
> > control over switching manually.
> 
> How is this really different from your ioctl(switch_now_to_amp) below, which looks very wrong?

The difference is that you change a policy. setsockopt(prefer_amp)
doesn't mean you get switched. It just says that you prefer using an AMP
at this point.

Most application that expect a lot of data would always set the policy
to prefer AMP and if we have the PAL availability then it will switch
right away to AMP.

However with OBEX it might be that you wanna read the first package
first with BR/EDR only and only after knowing the file size make a
decision to prefer AMP or not.

We will see what works out best.

Regards

Marcel



  parent reply	other threads:[~2010-08-03  1:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-02 16:55 Enhancements to allow l2cap channel to use either AMP or BR/EDR tmonahan
2010-08-02 18:53 ` Marcel Holtmann
2010-08-02 22:41   ` Kevin Hayes
2010-08-02 22:58     ` Marcel Holtmann
2010-08-03  0:51       ` Kevin Hayes
     [not found]         ` <B7132A25476D334D9130FE7532F2A56310A0B08A61@SC1EXMB-MBCL.global.athero s.com>
2010-08-03  1:30           ` Peter Krystad
2010-08-03  1:59             ` Marcel Holtmann
2010-08-03  8:07             ` Gustavo F. Padovan
2010-08-03 13:40               ` Tim Monahan-Mitchell
2010-08-03  1:59         ` Marcel Holtmann [this message]
2010-08-03  4:47           ` Kevin Hayes
2010-08-03 12:59   ` David Vrabel
2010-08-03 16:14     ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2010-07-30 18:30 Inga Stotland
2010-08-02 12:04 ` David Vrabel

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=1280800744.12579.71.camel@localhost.localdomain \
    --to=marcel@holtmann.org \
    --cc=david.vrabel@csr.com \
    --cc=ingas@codeaurora.org \
    --cc=johan.hedberg@gmail.com \
    --cc=kevin@Atheros.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=rshaffer@codeaurora.org \
    --cc=tmonahan@codeaurora.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