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>
This commit is contained in:

committed by
John W. Linville

parent
5b06c85c3b
commit
5a6e59991b
@@ -109,7 +109,6 @@ enum skb_frame_desc_flags {
|
||||
* this structure should not exceed the size of that array (48 bytes).
|
||||
*
|
||||
* @flags: Frame flags, see &enum skb_frame_desc_flags.
|
||||
* @frame_type: Frame type, see &enum rt2x00_dump_type.
|
||||
* @data: Pointer to data part of frame (Start of ieee80211 header).
|
||||
* @desc: Pointer to descriptor part of the frame.
|
||||
* Note that this pointer could point to something outside
|
||||
@@ -121,14 +120,12 @@ enum skb_frame_desc_flags {
|
||||
struct skb_frame_desc {
|
||||
unsigned int flags;
|
||||
|
||||
unsigned int frame_type;
|
||||
unsigned short data_len;
|
||||
unsigned short desc_len;
|
||||
|
||||
void *data;
|
||||
void *desc;
|
||||
|
||||
unsigned int data_len;
|
||||
unsigned int desc_len;
|
||||
|
||||
struct queue_entry *entry;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user