projects
/
openwrt
/
staging
/
981213.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0fb66e
)
ramips_eth: simplify tx descriptor initialization
author
Gabor Juhos
<juhosg@openwrt.org>
Sun, 31 Jan 2010 12:48:46 +0000
(12:48 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Sun, 31 Jan 2010 12:48:46 +0000
(12:48 +0000)
SVN-Revision: 19443
target/linux/ramips/files/drivers/net/ramips.c
patch
|
blob
|
history
diff --git
a/target/linux/ramips/files/drivers/net/ramips.c
b/target/linux/ramips/files/drivers/net/ramips.c
index 1fd9180a39928cd0b18cedf62dd6b6115f216562..3061bccc07893a0ef45f9ff99fc6f256e3bbe4ac 100644
(file)
--- a/
target/linux/ramips/files/drivers/net/ramips.c
+++ b/
target/linux/ramips/files/drivers/net/ramips.c
@@
-88,9
+88,8
@@
ramips_alloc_dma(struct raeth_priv *re)
memset(re->tx, 0, NUM_TX_DESC * sizeof(struct ramips_tx_dma));
for (i = 0; i < NUM_TX_DESC; i++) {
- re->tx[i].txd2 |= TX_DMA_LSO | TX_DMA_DONE;
- re->tx[i].txd4 &= (TX_DMA_QN_MASK | TX_DMA_PN_MASK);
- re->tx[i].txd4 |= TX_DMA_QN(3) | TX_DMA_PN(1);
+ re->tx[i].txd2 = TX_DMA_LSO | TX_DMA_DONE;
+ re->tx[i].txd4 = TX_DMA_QN(3) | TX_DMA_PN(1);
}
/* setup rx ring */