Skip to content

Completely remove socket dependency from l2cap_core.c

Gustavo Padovan linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16Bluetooth: Add src and dst info to struct l2cap_chaninclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c net/bluetooth/l2cap_sock.c +1 more+33 -371 reply
2/16Bluetooth: Remove sk_sndtimeo from l2cap_core.cinclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c net/bluetooth/l2cap_sock.c+5 -41 reply
3/16Bluetooth: extend state_change() call to report errors tooinclude/net/bluetooth/l2cap.h net/bluetooth/a2mp.c net/bluetooth/l2cap_core.c +1 more+9 -71 reply
4/16Bluetooth: add l2cap_state_change_and_error()net/bluetooth/l2cap_core.c+10 -81 reply
5/16Bluetooth: Add missing braces to an "else if"net/bluetooth/l2cap_core.c+2 -11 reply
6/16Bluetooth: use l2cap_chan_ready() instead of duplicate codenet/bluetooth/l2cap_core.c+1 -61 reply
7/16Bluetooth: duplicate DEFER_SETUP flag on l2cap_chaninclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c net/bluetooth/l2cap_sock.c+13 -111 reply
8/16Bluetooth: Improving locking in l2cap_conn_start()net/bluetooth/l2cap_core.c+3 -101 reply
9/16Bluetooth: lock socket in defer_cb callnet/bluetooth/l2cap_sock.c+6 -20 replies
10/16Bluetooth: Remove socket lock from state_change() in l2cap_corenet/bluetooth/l2cap_core.c net/bluetooth/l2cap_sock.c+11 -251 reply
11/16Bluetooth: remove parent socket usage from l2cap_core.cnet/bluetooth/l2cap_core.c net/bluetooth/l2cap_sock.c+8 -121 reply
12/16Bluetooth: Use abstract chan->data in comparisoninclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c+2 -30 replies
13/16Bluetooth: Move l2cap_wait_ack() to l2cap_sock.cinclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c net/bluetooth/l2cap_sock.c+34 -330 replies
14/16Bluetooth: Create l2cap->ops->resume()include/net/bluetooth/l2cap.h net/bluetooth/a2mp.c net/bluetooth/l2cap_core.c +1 more+20 -50 replies
15/16Bluetooth: Create l2cap->ops->set_shutdown()include/net/bluetooth/l2cap.h net/bluetooth/a2mp.c net/bluetooth/l2cap_core.c +1 more+17 -60 replies
16/16Bluetooth: Remove sk member from struct l2cap_chaninclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_sock.c+2 -50 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/16] Completely remove socket dependency from l2cap_core.c

From: Gustavo Padovan <[email protected]>

This is the last series of patches to completely remove the l2cap socket usage in the l2cap_core.c file. We now have a C API to access L2CAP and as a next step we should convert RFCOMM to use this API.

Gustavo Padovan (16):
Bluetooth: Add src and dst info to struct l2cap_chan
Bluetooth: Remove sk_sndtimeo from l2cap_core.c
Bluetooth: extend state_change() call to report errors too
Bluetooth: add l2cap_state_change_and_error()
Bluetooth: Add missing braces to an "else if"
Bluetooth: use l2cap_chan_ready() instead of duplicate code
Bluetooth: duplicate DEFER_SETUP flag on l2cap_chan
Bluetooth: Improving locking in l2cap_conn_start()
Bluetooth: lock socket in defer_cb call
Bluetooth: Remove socket lock from state_change() in l2cap_core
Bluetooth: remove parent socket usage from l2cap_core.c
Bluetooth: Use abstract chan->data in comparison
Bluetooth: Move l2cap_wait_ack() to l2cap_sock.c
Bluetooth: Create l2cap->ops->resume()
Bluetooth: Create l2cap->ops->set_shutdown()
Bluetooth: Remove sk member from struct l2cap_chan

 include/net/bluetooth/l2cap.h |  22 ++++-
 net/bluetooth/a2mp.c          |   4 +-
 net/bluetooth/l2cap_core.c    | 200 ++++++++++++------------------------------
 net/bluetooth/l2cap_sock.c    |  96 +++++++++++++++++---
 net/bluetooth/rfcomm/core.c   |  15 ++--
 5 files changed, 169 insertions(+), 168 deletions(-)
Signature · 1 line
1.8.1.2