]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: 4-byte alignment in mwifiex_process_sta_txpd()
authorYogesh Ashok Powar <yogeshp@marvell.com>
Fri, 8 Jul 2011 00:37:09 +0000 (17:37 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Jul 2011 15:47:16 +0000 (11:47 -0400)
commita5449b244f5428cfa76eccdb777465b44fe00d82
tree5b45b7448b5ffb0043a27dee8e34902e8a7ad002
parent36d3f9c3c6d835757a65c9c51dcb6e452a2cbd06
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