Skip to content

ERTM state machine changes, part 3

Mat Martineau linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest25 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25Bluetooth: Change default state of ERTM disable flagnet/bluetooth/l2cap_core.c+1 -10 replies
2/25Bluetooth: Add a new L2CAP ERTM transmit state machine.net/bluetooth/l2cap_core.c+246 -82 replies
3/25Bluetooth: Refactor l2cap_streaming_sendnet/bluetooth/l2cap_core.c+31 -170 replies
4/25Bluetooth: Refactor l2cap_ertm_sendnet/bluetooth/l2cap_core.c+39 -400 replies
5/25Bluetooth: Refactor l2cap_send_sframenet/bluetooth/l2cap_core.c+51 -360 replies
6/25Bluetooth: Consolidate common receive code for ERTM and streaming modenet/bluetooth/l2cap_core.c+62 -640 replies
7/25Bluetooth: Add streaming mode receive and incoming packet classifiernet/bluetooth/l2cap_core.c+130 -60 replies
8/25Bluetooth: Remove receive code that has been supercededinclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c+0 -5000 replies
9/25Bluetooth: Refactor l2cap_send_acknet/bluetooth/l2cap_core.c+47 -210 replies
10/25Bluetooth: Use the transmit state machine for busy state changesnet/bluetooth/l2cap_core.c+7 -400 replies
11/25Bluetooth: Update l2cap_send_i_or_rr_or_rnr to fit the spec betternet/bluetooth/l2cap_core.c+19 -210 replies
12/25Bluetooth: Add the ERTM receive state machinenet/bluetooth/l2cap_core.c+353 -20 replies
13/25Bluetooth: Add implementation for retransmitting all unacked framesnet/bluetooth/l2cap_core.c+105 -10 replies
14/25Bluetooth: Send SREJ frames when packets go missingnet/bluetooth/l2cap_core.c+53 -30 replies
15/25Bluetooth: Reassemble all available data when retransmissions succeed.net/bluetooth/l2cap_core.c+30 -20 replies
16/25Bluetooth: Handle SREJ requests to resend unacked framesnet/bluetooth/l2cap_core.c+69 -10 replies
17/25Bluetooth: Handle incoming REJ framesnet/bluetooth/l2cap_core.c+32 -10 replies
18/25Bluetooth: Use new header structures in l2cap_send_rr_or_rnrnet/bluetooth/l2cap_core.c+15 -70 replies
19/25Bluetooth: Check rules when setting retransmit or monitor timersinclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c+20 -60 replies
20/25Bluetooth: Use the ERTM transmit state machine from timeout handlersnet/bluetooth/l2cap_core.c+8 -110 replies
21/25Bluetooth: Simplify the ERTM ack timeoutnet/bluetooth/l2cap_core.c+7 -30 replies
22/25Bluetooth: Remove unneccesary inlinenet/bluetooth/l2cap_core.c+1 -10 replies
23/25Bluetooth: Set txwin values for streaming modenet/bluetooth/l2cap_core.c+1 -00 replies
24/25Bluetooth: Remove unused ERTM control field macrosinclude/net/bluetooth/l2cap.h+0 -1680 replies
25/25Bluetooth: Enable ERTM by defaultnet/bluetooth/l2cap_core.c+1 -11 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/25] ERTM state machine changes, part 3

This completes the switch to the new ERTM state machine. The patch set needs to be merged all at once, since ERTM will only work with all of the changes applied.

There was no way to replace the state machine incrementally, since this is switching ERTM to a whole different design everything needs to be swapped out at once. I checked with Marcel on this approach in advance.

We're running PTS on this code this week, I will let the list know about the test results.

Mat Martineau (25):
Bluetooth: Change default state of ERTM disable flag
Bluetooth: Add a new L2CAP ERTM transmit state machine.
Bluetooth: Refactor l2cap_streaming_send
Bluetooth: Refactor l2cap_ertm_send
Bluetooth: Refactor l2cap_send_sframe
Bluetooth: Consolidate common receive code for ERTM and streaming
mode
Bluetooth: Add streaming mode receive and incoming packet classifier
Bluetooth: Remove receive code that has been superceded
Bluetooth: Refactor l2cap_send_ack
Bluetooth: Use the transmit state machine for busy state changes
Bluetooth: Update l2cap_send_i_or_rr_or_rnr to fit the spec better
Bluetooth: Add the ERTM receive state machine
Bluetooth: Add implementation for retransmitting all unacked frames
Bluetooth: Send SREJ frames when packets go missing
Bluetooth: Reassemble all available data when retransmissions
succeed.
Bluetooth: Handle SREJ requests to resend unacked frames
Bluetooth: Handle incoming REJ frames
Bluetooth: Use new header structures in l2cap_send_rr_or_rnr
Bluetooth: Check rules when setting retransmit or monitor timers
Bluetooth: Use the ERTM transmit state machine from timeout handlers
Bluetooth: Simplify the ERTM ack timeout
Bluetooth: Remove unneccesary inline
Bluetooth: Set txwin values for streaming mode
Bluetooth: Remove unused ERTM control field macros
Bluetooth: Enable ERTM by default

 include/net/bluetooth/l2cap.h |  180 ----
 net/bluetooth/l2cap_core.c    | 1977 ++++++++++++++++++++++++++---------------
 2 files changed, 1262 insertions(+), 895 deletions(-)
Signature · 6 lines
1.7.10

--
Mat Martineau
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum