diff options
author | Yogesh Ashok Powar <yogeshp@marvell.com> | 2011-07-07 17:37:09 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-08 11:47:16 -0400 |
commit | e156103cee78a1dd1c0d14efe08aa36fc9285013 (patch) | |
tree | 5b45b7448b5ffb0043a27dee8e34902e8a7ad002 /drivers/net/wireless/mwifiex/decl.h | |
parent | 38869d79e5b498bd35c9967231dfb01cdd301bf5 (diff) | |
download | op-kernel-dev-e156103cee78a1dd1c0d14efe08aa36fc9285013.zip op-kernel-dev-e156103cee78a1dd1c0d14efe08aa36fc9285013.tar.gz |
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>
Diffstat (limited to 'drivers/net/wireless/mwifiex/decl.h')
-rw-r--r-- | drivers/net/wireless/mwifiex/decl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/decl.h b/drivers/net/wireless/mwifiex/decl.h index 0e90b09..94ddc90 100644 --- a/drivers/net/wireless/mwifiex/decl.h +++ b/drivers/net/wireless/mwifiex/decl.h @@ -30,7 +30,9 @@ #define MWIFIEX_MAX_BSS_NUM (1) -#define MWIFIEX_MIN_DATA_HEADER_LEN 32 /* (sizeof(mwifiex_txpd)) */ +#define MWIFIEX_MIN_DATA_HEADER_LEN 36 /* sizeof(mwifiex_txpd) + * + 4 byte alignment + */ #define MWIFIEX_MAX_TX_BASTREAM_SUPPORTED 2 #define MWIFIEX_MAX_RX_BASTREAM_SUPPORTED 16 |