mwifiex: 4-byte alignment in mwifiex_process_sta_txpd()
commite156103cee78a1dd1c0d14efe08aa36fc9285013
authorYogesh Ashok Powar <yogeshp@marvell.com>
Fri, 8 Jul 2011 00:37:09 +0000 (7 17:37 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Jul 2011 15:47:16 +0000 (8 11:47 -0400)
tree5b45b7448b5ffb0043a27dee8e34902e8a7ad002
parent38869d79e5b498bd35c9967231dfb01cdd301bf5
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 <prakity@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Tested-by: Philip Rakity <prakity@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/decl.h
drivers/net/wireless/mwifiex/sta_tx.c