Skip to content

Bluetooth: L2CAP: Improve credits logic

Luiz Augusto von Dentz linux-bluetooth 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v13 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Bluetooth: L2CAP: Derive MPS from connection MTUinclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c+7 -80 replies
2/3Bluetooth: L2CAP: Derive rx credits from MTU and MPSinclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c+27 -170 replies
3/3Bluetooth: L2CAP: Detect if remote is not able to use the whole MPSnet/bluetooth/l2cap_core.c+10 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] Bluetooth: L2CAP: Improve credits logic

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

These changes replace the existing threshold logic with a limpler logic that gives back credits after receiving an SDU. It also removes the debugfs entries to configure the MPS and credits with auto selected one derived from the MTU and MPS.

v2: Account from the SDU length when adjusting the MPS.

Luiz Augusto von Dentz (3):
Bluetooth: L2CAP: Derive MPS from connection MTU
Bluetooth: L2CAP: Derive rx credits from MTU and MPS
Bluetooth: L2CAP: Detect if remote is not able to use the whole MPS

 include/net/bluetooth/l2cap.h |  3 --
 net/bluetooth/l2cap_core.c    | 66 +++++++++++++++++++++++------------
 2 files changed, 44 insertions(+), 25 deletions(-)
Signature · 1 line
2.17.1