aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorEyal Birger <eyal.birger@gmail.com>2015-03-01 07:58:26 -0500
committerDavid S. Miller <davem@davemloft.net>2015-03-02 00:19:29 -0500
commit6368c235777456ddaeaa61360186d8d03a61cb18 (patch)
treeb0b3fb3a82eaf8bac83640333cd1b2eea92ada95 /include/net
parent49a6fe055739a77ef910c283efb99928423c97a0 (diff)
net: bluetooth: compact struct bt_skb_cb by converting boolean fields to bit fields
Convert boolean fields incoming and req_start to bit fields and move force_active in order save space in bt_skb_cb in an effort to use a portion of skb->cb[] for storing skb->dropcount. Signed-off-by: Eyal Birger <eyal.birger@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/bluetooth.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index 09893668e6ea..4500bf88ff55 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -277,11 +277,11 @@ typedef void (*hci_req_complete_t)(struct hci_dev *hdev, u8 status, u16 opcode);
277 277
278struct bt_skb_cb { 278struct bt_skb_cb {
279 __u8 pkt_type; 279 __u8 pkt_type;
280 __u8 incoming; 280 __u8 force_active;
281 __u16 opcode; 281 __u16 opcode;
282 __u16 expect; 282 __u16 expect;
283 __u8 force_active; 283 __u8 incoming:1;
284 bool req_start; 284 __u8 req_start:1;
285 u8 req_event; 285 u8 req_event;
286 hci_req_complete_t req_complete; 286 hci_req_complete_t req_complete;
287 struct l2cap_chan *chan; 287 struct l2cap_chan *chan;