aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00queue.h
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-05-10 07:41:32 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-21 21:47:30 -0400
commit5a6e59991b82580c3ca00115603b85762ec76104 (patch)
treeb466507f3c2044127712ba4a082d18255103e57e /drivers/net/wireless/rt2x00/rt2x00queue.h
parent5b06c85c3b96fa8db632f1ee94f99a2bd0215f3a (diff)
rt2x00: trim skb_frame_desc to 32 bytes
Remove frame_type from skb_frame_desc and pass it as argument to rt2x00debug_dump_frame(). Change data_len and desc_len to unsigned short to save another 4 bytes in skb_frame_desc. Note that this was the only location where the data_len and desc_len was not yet treated as unsigned short. This trim is required to help mac80211 with adding the TX control and TX status informtation into the skb->cb structure. When that happens, drivers will have approximately 40 bytes left to use freely. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00queue.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00queue.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.h b/drivers/net/wireless/rt2x00/rt2x00queue.h
index d1707a7ca41f..c3493ed7f4c3 100644
--- a/drivers/net/wireless/rt2x00/rt2x00queue.h
+++ b/drivers/net/wireless/rt2x00/rt2x00queue.h
@@ -109,7 +109,6 @@ enum skb_frame_desc_flags {
109 * this structure should not exceed the size of that array (48 bytes). 109 * this structure should not exceed the size of that array (48 bytes).
110 * 110 *
111 * @flags: Frame flags, see &enum skb_frame_desc_flags. 111 * @flags: Frame flags, see &enum skb_frame_desc_flags.
112 * @frame_type: Frame type, see &enum rt2x00_dump_type.
113 * @data: Pointer to data part of frame (Start of ieee80211 header). 112 * @data: Pointer to data part of frame (Start of ieee80211 header).
114 * @desc: Pointer to descriptor part of the frame. 113 * @desc: Pointer to descriptor part of the frame.
115 * Note that this pointer could point to something outside 114 * Note that this pointer could point to something outside
@@ -121,14 +120,12 @@ enum skb_frame_desc_flags {
121struct skb_frame_desc { 120struct skb_frame_desc {
122 unsigned int flags; 121 unsigned int flags;
123 122
124 unsigned int frame_type; 123 unsigned short data_len;
124 unsigned short desc_len;
125 125
126 void *data; 126 void *data;
127 void *desc; 127 void *desc;
128 128
129 unsigned int data_len;
130 unsigned int desc_len;
131
132 struct queue_entry *entry; 129 struct queue_entry *entry;
133}; 130};
134 131