diff options
author | Eyal Birger <eyal.birger@gmail.com> | 2015-03-01 07:58:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-02 00:19:29 -0500 |
commit | 49a6fe055739a77ef910c283efb99928423c97a0 (patch) | |
tree | 86912cf70564f5ae5891621a761f6c834110bb5f /include/net | |
parent | 287f3a943fef58c5c73e42545169443be379222f (diff) |
net: bluetooth: compact struct bt_skb_cb by inlining struct hci_req_ctrl
struct hci_req_ctrl is never used outside of struct bt_skb_cb;
Inlining it frees 8 bytes on a 64 bit system in skb->cb[] allowing
the addition of more ancillary data.
Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/bluetooth.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index e00455aab18c..09893668e6ea 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h | |||
@@ -275,21 +275,17 @@ struct hci_dev; | |||
275 | 275 | ||
276 | typedef void (*hci_req_complete_t)(struct hci_dev *hdev, u8 status, u16 opcode); | 276 | typedef void (*hci_req_complete_t)(struct hci_dev *hdev, u8 status, u16 opcode); |
277 | 277 | ||
278 | struct hci_req_ctrl { | ||
279 | bool start; | ||
280 | u8 event; | ||
281 | hci_req_complete_t complete; | ||
282 | }; | ||
283 | |||
284 | struct bt_skb_cb { | 278 | struct bt_skb_cb { |
285 | __u8 pkt_type; | 279 | __u8 pkt_type; |
286 | __u8 incoming; | 280 | __u8 incoming; |
287 | __u16 opcode; | 281 | __u16 opcode; |
288 | __u16 expect; | 282 | __u16 expect; |
289 | __u8 force_active; | 283 | __u8 force_active; |
284 | bool req_start; | ||
285 | u8 req_event; | ||
286 | hci_req_complete_t req_complete; | ||
290 | struct l2cap_chan *chan; | 287 | struct l2cap_chan *chan; |
291 | struct l2cap_ctrl control; | 288 | struct l2cap_ctrl control; |
292 | struct hci_req_ctrl req; | ||
293 | bdaddr_t bdaddr; | 289 | bdaddr_t bdaddr; |
294 | __le16 psm; | 290 | __le16 psm; |
295 | }; | 291 | }; |