aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-15 18:33:40 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-15 18:33:40 +0000
commit064855314b6650debf9ab84cf51b145629393960 (patch)
tree3db4ef9356d6507c65fea5de5ae36e4693790c9a /target/linux/ramips
parent8c95385d78c3923396aad26cdbcba2c7fe27258a (diff)
downloadupstream-064855314b6650debf9ab84cf51b145629393960.tar.gz
upstream-064855314b6650debf9ab84cf51b145629393960.tar.bz2
upstream-064855314b6650debf9ab84cf51b145629393960.zip
ramips: raeth: add '__packed __aligned(4)' annotation to dma descritor structures
This helps GCC to generare more efficient code. SVN-Revision: 30553
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/files/drivers/net/ramips_eth.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips_eth.h b/target/linux/ramips/files/drivers/net/ramips_eth.h
index a74732d841..1d151df687 100644
--- a/target/linux/ramips/files/drivers/net/ramips_eth.h
+++ b/target/linux/ramips/files/drivers/net/ramips_eth.h
@@ -195,7 +195,7 @@ struct ramips_rx_dma {
unsigned int rxd2;
unsigned int rxd3;
unsigned int rxd4;
-};
+} __packed __aligned(4);
#define TX_DMA_PLEN0_MASK ((0x3fff) << 16)
#define TX_DMA_PLEN0(_x) (((_x) & 0x3fff) << 16)
@@ -211,7 +211,7 @@ struct ramips_tx_dma {
unsigned int txd2;
unsigned int txd3;
unsigned int txd4;
-};
+} __packed __aligned(4);
struct raeth_priv
{