From: Yogesh Ashok Powar Date: Fri, 8 Jul 2011 00:37:09 +0000 (-0700) Subject: mwifiex: 4-byte alignment in mwifiex_process_sta_txpd() X-Git-Tag: v3.1-rc1~316^2~124^2^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e156103cee78a1dd1c0d14efe08aa36fc9285013;p=pandora-kernel.git mwifiex: 4-byte alignment in mwifiex_process_sta_txpd() In XMIT path, the skb that we get from the kernel itself is not aligned with 4-byte boundary on some embedded platforms. Had it not been the presence of tx_pkt_offset field in txpd, 4 byte memory alignment was not possible without memmove of entire skb. And that would have increased MIPS instead of reducing. With this patch few memory cycles can be saved while fetching interface header and txpd structure because of 4 bytes memory alignment. Reported-by: Philip Rakity Signed-off-by: Yogesh Ashok Powar Tested-by: Philip Rakity Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed