]> 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)
commit11faf0735a64d3cb578a55561c2dee0258a7f16c
tree5b45b7448b5ffb0043a27dee8e34902e8a7ad002
parent5344c896ae2502b9ce509001093a1ab7f0e65240
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