summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2012-10-17 11:03:40 +0200
committerMichal Simek <michal.simek@xilinx.com>2013-04-30 11:39:14 +0200
commit986f00003ce9cfdceca2f49068b8d443316501d3 (patch)
tree5b35e5fcfeb4bc63da7795e9db1222935d2afb49 /drivers
parent1415107e46460f988e19a5fc59e18f368e72ef19 (diff)
downloadu-boot-imx-986f00003ce9cfdceca2f49068b8d443316501d3.zip
u-boot-imx-986f00003ce9cfdceca2f49068b8d443316501d3.tar.gz
u-boot-imx-986f00003ce9cfdceca2f49068b8d443316501d3.tar.bz2
net: gem: Remove WRAP bit from TX buffer description
Removing this bit causes that frame is sent only once. (With wrap big one packet has been sent several times which dramatically decrease throughput) TRM: (Table 16-3: Tx Buffer Descriptor Entry) Signed-off-by: Michal Simek <monstr@monstr.eu> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/zynq_gem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c
index 3596065..7188b9e 100644
--- a/drivers/net/zynq_gem.c
+++ b/drivers/net/zynq_gem.c
@@ -310,8 +310,7 @@ static int zynq_gem_send(struct eth_device *dev, void *ptr, int len)
memset((void *) &(priv->tx_bd), 0, sizeof(struct emac_bd));
priv->tx_bd.addr = (u32)ptr;
- priv->tx_bd.status = len | ZYNQ_GEM_TXBUF_LAST_MASK |
- ZYNQ_GEM_TXBUF_WRAP_MASK;
+ priv->tx_bd.status = len | ZYNQ_GEM_TXBUF_LAST_MASK;
/* Start transmit */
setbits_le32(&regs->nwctrl, ZYNQ_GEM_NWCTRL_STARTTX_MASK);