From: Michal Simek Date: Wed, 17 Oct 2012 09:03:40 +0000 (+0200) Subject: net: gem: Remove WRAP bit from TX buffer description X-Git-Tag: v2013.07-rc1~105 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=986f00003ce9cfdceca2f49068b8d443316501d3;p=u-boot 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 Signed-off-by: Michal Simek Reviewed-by: Tom Rini --- diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 3596065694..7188b9ee0e 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(®s->nwctrl, ZYNQ_GEM_NWCTRL_STARTTX_MASK);