All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Suraj <suraj@Atheros.com>
Cc: Suraj Sumangala <Suraj.Sumangala@Atheros.com>,
	"linux-bluetooth@vger.kernel.org"
	<linux-bluetooth@vger.kernel.org>,
	Jothikumar Mothilal <Jothikumar.Mothilal@Atheros.com>
Subject: Re: [RFC v2] Bluetooth: Provide access to reassembled Rx packets
Date: Mon, 26 Jul 2010 15:42:49 -0700	[thread overview]
Message-ID: <1280184169.2621.63.camel@localhost.localdomain> (raw)
In-Reply-To: <4C4DD292.60001@Atheros.com>

Hi Suraj,

> >> Provide the HCI transport driver access to reassembled Rx packets before
> >> sending to Host.
> >
> > you still haven't answered my question on why you want this. It makes no
> > sense to me to relay all packets back to the driver. That is just a
> > waste of CPU cycles.
>
> The requirement is simple. The driver need to know the status of certain 
> vendor specific commands by checking the parameters of Command complete 
> events.

then implement something that handles vendor specific commands and
events properly. This proposal is insane and will not get merged.

> We also have a requirements to verify the status of HCI RESET command to 
> update power management feature.

Then implement something that can track the status of HCI reset
properly.

> If you are concerned about CPU cycle, we can limit this only for HCI 
> events and not for ACL/SCO packets.
> 
> Please do let me know if you think there is an alternate way so that the 
> HCI transport driver can access to HCI events.

So first of all, lets make something perfectly clear. All Bluetooth
drivers are _transport_ drivers. They don't need to know what they are
transporting. And in addition you should not look into the packets that
you are sending or receiving. The Bluetooth core does that HCI packet
parsing.

This is how I want it and how this is going to stay. Everything else is
an insane approach and cost every single driver overhead. In addition
the lifetime rules of SKBs become more and more complicated. That is a
pretty bad thing. It will result in excessive memory usage and will
cause problems.

Regards

Marcel



  reply	other threads:[~2010-07-26 22:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-26  6:34 [RFC v2] Bluetooth: Provide access to reassembled Rx packets Suraj Sumangala
2010-07-26 15:13 ` Marcel Holtmann
2010-07-26 18:23   ` Suraj
2010-07-26 22:42     ` Marcel Holtmann [this message]
2010-07-27  2:23       ` Suraj
2010-07-27  4:48       ` Suraj
2010-07-27  5:14         ` Marcel Holtmann
2010-07-27 15:36           ` Suraj

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=1280184169.2621.63.camel@localhost.localdomain \
    --to=marcel@holtmann.org \
    --cc=Jothikumar.Mothilal@Atheros.com \
    --cc=Suraj.Sumangala@Atheros.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=suraj@Atheros.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 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.