Skip to content

RFC prioritizing data over HCI

Luiz Augusto von Dentz linux-bluetooth 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest posting 2/25 patches 7 repliesApplied
  2. v2 RFC posting 1/21 of 3 patches 0 repliesSuperseded
  3. v13 patches 22 repliesSuperseded

Patches in v2 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/5Bluetooth: make use of connection number to optimize the schedulerinclude/net/bluetooth/hci_core.h net/bluetooth/hci_core.c+31 -01 reply
2/5Bluetooth: set skbuffer priority based on L2CAP socket priorityinclude/net/bluetooth/hci_core.h include/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c +1 more+38 -153 replies
3/5Bluetooth: make use sk_priority to priritize RFCOMM packetsnet/bluetooth/rfcomm/core.c net/bluetooth/rfcomm/sock.c+37 -160 replies
4/5Bluetooth: prioritizing data over HCIinclude/net/bluetooth/hci_core.h include/net/bluetooth/l2cap.h net/bluetooth/hci_conn.c +2 more+269 -183 replies
5/5Bluetooth: recalculate priorities when channels are starvingnet/bluetooth/hci_core.c+61 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC 0/5 v2] prioritizing data over HCI

From: Luiz Augusto von Dentz <[email protected]>

This incorporate some suggestions like removal of fixed amount of queues in favor of one per L2CAP channel using HCI Channel abstraction (hci_chan) so packet order is maintained, SCO/ESCO packets are no longer affected and some other minor things like promoting starving channels directly to maximum possible priority (6).

Priorities are unchanged, so anything bigger than 6 requires extra capabilities and are meant for guaranteed channels or time critical packets e.g. RFCOMM commands.

In addition to that I decide to maintain the queue per hci_conn so hci_chan is only created when L2CAP connection completes.

Luiz Augusto von Dentz (5):
Bluetooth: make use of connection number to optimize the scheduler
Bluetooth: set skbuffer priority based on L2CAP socket priority
Bluetooth: make use sk_priority to priritize RFCOMM packets
Bluetooth: prioritizing data over HCI
Bluetooth: recalculate priorities when channels are starving

 include/net/bluetooth/hci_core.h |   61 +++++++++
 include/net/bluetooth/l2cap.h    |    4 +-
 net/bluetooth/hci_conn.c         |   59 +++++++++
 net/bluetooth/hci_core.c         |  256 +++++++++++++++++++++++++++++++++++---
 net/bluetooth/l2cap_core.c       |   52 ++++++--
 net/bluetooth/l2cap_sock.c       |    2 +-
 net/bluetooth/rfcomm/core.c      |   51 +++++---
 net/bluetooth/rfcomm/sock.c      |    2 +
 8 files changed, 437 insertions(+), 50 deletions(-)
Signature · 1 line
1.7.6