diff options
| author | Johan Hedberg <johan.hedberg@intel.com> | 2015-03-30 16:21:01 -0400 |
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2015-03-30 17:20:53 -0400 |
| commit | a4368ff3ed3b57e4b5e36d83b75604f68bbcdaad (patch) | |
| tree | fadfd6e1b967980891816b1773cf871afebe4065 /include | |
| parent | 20fa110a54d8070a7d68fb44a6c0ea2d8b09fddc (diff) | |
Bluetooth: Refactor L2CAP variables into l2cap_ctrl
We're getting very close to the maximum possible size of bt_skb_cb. To
prepare to shrink the struct with the help of a union this patch moves
all L2CAP related variables into the l2cap_ctrl struct. To later add
other 'ctrl' structs the L2CAP one is renamed simple 'l2cap' instead
of 'control'.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/bluetooth/bluetooth.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index 33a5e00025aa..d8367cc7c76e 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h | |||
| @@ -269,6 +269,9 @@ struct l2cap_ctrl { | |||
| 269 | __u16 reqseq; | 269 | __u16 reqseq; |
| 270 | __u16 txseq; | 270 | __u16 txseq; |
| 271 | __u8 retries; | 271 | __u8 retries; |
| 272 | __le16 psm; | ||
| 273 | bdaddr_t bdaddr; | ||
| 274 | struct l2cap_chan *chan; | ||
| 272 | }; | 275 | }; |
| 273 | 276 | ||
| 274 | struct hci_dev; | 277 | struct hci_dev; |
| @@ -284,10 +287,7 @@ struct bt_skb_cb { | |||
| 284 | __u8 req_start:1; | 287 | __u8 req_start:1; |
| 285 | u8 req_event; | 288 | u8 req_event; |
| 286 | hci_req_complete_t req_complete; | 289 | hci_req_complete_t req_complete; |
| 287 | struct l2cap_chan *chan; | 290 | struct l2cap_ctrl l2cap; |
| 288 | struct l2cap_ctrl control; | ||
| 289 | bdaddr_t bdaddr; | ||
| 290 | __le16 psm; | ||
| 291 | }; | 291 | }; |
| 292 | #define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb)) | 292 | #define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb)) |
| 293 | 293 | ||
