rt2x00: Decrease alignment headroom
authorIvo van Doorn <ivdoorn@gmail.com>
Fri, 4 Jul 2008 12:56:07 +0000 (14:56 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Jul 2008 18:16:04 +0000 (14:16 -0400)
We only need 4 bytes of headroom for alignment
purposes in the RX frame. It was previously higher
for optimization purposes which are no longer
possible due to DMA mappings.

v2: Fix patch error

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00queue.c

index 8e86611791f03181a6cb659c44a82dc32677b523..3ddce538ef4af3bcfffddc4fc7ddff9b341d094e 100644 (file)
@@ -45,10 +45,11 @@ struct sk_buff *rt2x00queue_alloc_rxskb(struct rt2x00_dev *rt2x00dev,
        frame_size = entry->queue->data_size + entry->queue->desc_size;
 
        /*
-        * Reserve a few bytes extra headroom to allow drivers some moving
-        * space (e.g. for alignment), while keeping the skb aligned.
+        * The payload should be aligned to a 4-byte boundary,
+        * this means we need at least 3 bytes for moving the frame
+        * into the correct offset.
         */
-       reserved_size = 8;
+       reserved_size = 4;
 
        /*
         * Allocate skbuffer.